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(); }
public CoordinatePlaneLegendVector(string name, CoordinateVectorStyle vectorStyle, CoordinatePlaneLegendStyle legendStyle) { this.name = name; VectorStyle = vectorStyle; Style = legendStyle; }
public CoordinatePlane AddVector(CoordinatePoint from, CoordinatePoint to, CoordinateVectorStyle style) { entities.Add(new CoordinateVector(from, to, style)); return(this); }
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); }
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); }
public CoordinatePlane AddLegendItem(CoordinateVectorStyle style, string name) { Legend.AddItem(style, name); UpdatePlane(); return(this); }