public static Symbol CreateSymbol(SymbolType type, PenDescription f, BrushDescription b, float size) { switch (type) { case SymbolType.Square: return(new SquareSymbol(f, b, size)); case SymbolType.Circle: return(new CircleSymbol(f, b, size)); case SymbolType.XCross: return(new XCrossSymbol(f, size)); case SymbolType.Cross: return(new CrossSymbol(f, size)); case SymbolType.Diamond: return(new DiamondSymbol(f, b, size)); case SymbolType.TriangleUp: return(new TriangleUpSymbol(f, b, size)); case SymbolType.TriangleDown: return(new TriangleDownSymbol(f, b, size)); case SymbolType.TriangleLeft: return(new TriangleLeftSymbol(f, b, size)); case SymbolType.TriangleRight: return(new TriangleRightSymbol(f, b, size)); } return(null); }
public NumericYAxis(string name, SeriesCollection series, bool rightSide, PenDescription borderPen) { this.name = name; this.series = series; this.rightSide = rightSide; this.borderPen = borderPen; }
public SymbolDescription(SymbolType type, PenDescription f, BrushDescription b, float size) { this.type = type; this.foreground = f; this.background = b; this.size = size; this.foreground.OnPenDescriptionChanged += delegate() { raiseChanged(); }; this.background.OnBrushDescriptionChanged += delegate() { raiseChanged(); }; }
public TriangleUpSymbol(PenDescription f, BrushDescription b, float size) : base(f, b, size) { }
public DiamondSymbol(PenDescription f, BrushDescription b, float size) : base(f, b, size) { }
public CrossSymbol(PenDescription f, float size) : base(f, size) { }
public SquareSymbol(PenDescription f, BrushDescription b, float size) : base(f, b, size) { }
public PenBrushSymbol(PenDescription f, BrushDescription b, float size) : base(f, size) { this.br = b.CreateBrush(); }
public PenSymbol(PenDescription f, float size) : base(size) { p = f.CreatePen(); }