public CoordinateVector SetStyle(CoordinateVectorStyle style)
 {
     if (style != null)
     {
         Style = style;
     }
     return(this);
 }
        public void AddItem(CoordinateVectorStyle style, string name)
        {
            if (items.Exists(item =>
                             item.GetType() == typeof(CoordinatePlaneLegendVector) &&
                             style == ((CoordinatePlaneLegendVector)item).VectorStyle))
            {
                return;
            }

            items.Add(new CoordinatePlaneLegendVector(name, style, Style));
        }
 public CoordinateVector(CoordinatePoint from, CoordinatePoint to, CoordinateVectorStyle style)
 {
     From  = from;
     To    = to;
     Style = style;
 }
 public CoordinateVector(CoordinatePoint from, CoordinatePoint to)
 {
     From  = from;
     To    = to;
     Style = new CoordinateVectorStyle();
 }
示例#5
0
 public CoordinatePlaneLegendVector(string name, CoordinateVectorStyle vectorStyle, CoordinatePlaneLegendStyle legendStyle)
 {
     this.name   = name;
     VectorStyle = vectorStyle;
     Style       = legendStyle;
 }
示例#6
0
 public CoordinatePlane AddVector(CoordinatePoint from, CoordinatePoint to, CoordinateVectorStyle style)
 {
     entities.Add(new CoordinateVector(from, to, style));
     return(this);
 }
示例#7
0
 public CoordinatePlane AddVector(PointF from, PointF to, CoordinateVectorStyle style)
 {
     entities.Add(new CoordinateVector(Style.GetDefaultStyledPoint(from.X, from.Y), Style.GetDefaultStyledPoint(to.X, to.Y), style));
     return(this);
 }
示例#8
0
 public CoordinatePlane AddVector(float xFrom, float yFrom, float xTo, float yTo, CoordinateVectorStyle style)
 {
     entities.Add(new CoordinateVector(Style.GetDefaultStyledPoint(xFrom, yFrom), Style.GetDefaultStyledPoint(xTo, yTo), style));
     return(this);
 }
示例#9
0
 public CoordinatePlane AddLegendItem(CoordinateVectorStyle style, string name)
 {
     Legend.AddItem(style, name);
     UpdatePlane();
     return(this);
 }