Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public NumericYAxis(string name, SeriesCollection series, bool rightSide, PenDescription borderPen)
 {
     this.name      = name;
     this.series    = series;
     this.rightSide = rightSide;
     this.borderPen = borderPen;
 }
Ejemplo n.º 3
0
        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(); };
        }
Ejemplo n.º 4
0
 public TriangleUpSymbol(PenDescription f, BrushDescription b, float size) : base(f, b, size)
 {
 }
Ejemplo n.º 5
0
 public DiamondSymbol(PenDescription f, BrushDescription b, float size) : base(f, b, size)
 {
 }
Ejemplo n.º 6
0
 public CrossSymbol(PenDescription f, float size) : base(f, size)
 {
 }
Ejemplo n.º 7
0
 public SquareSymbol(PenDescription f, BrushDescription b, float size) : base(f, b, size)
 {
 }
Ejemplo n.º 8
0
 public PenBrushSymbol(PenDescription f, BrushDescription b, float size)
     : base(f, size)
 {
     this.br = b.CreateBrush();
 }
Ejemplo n.º 9
0
 public PenSymbol(PenDescription f, float size)
     : base(size)
 {
     p = f.CreatePen();
 }