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