コード例 #1
0
ファイル: My_Line.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Line(EntityDrawningCore core) : base(core)
 {
     draw       = Draw;
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
コード例 #2
0
 public TextProperties(My_Text figure, EntityDrawningCore core)
 {
     InitializeComponent();
     this.figure = figure;
     this.core   = core;
     LoadData();
 }
コード例 #3
0
 public BrushProperies(My_Figure figure, EntityDrawningCore core)
 {
     InitializeComponent();
     this.brush  = figure.brush;
     this.figure = figure;
     this.core   = core;
     LoadData();
 }
コード例 #4
0
 public My_RectangleFigure(EntityDrawningCore core)
     : base(core)
 {
     rect       = new Rectangle();
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
コード例 #5
0
 public My_History(EntityDrawningCore core)
 {
     this.core = core;
     history   = new List <My_Picture>();
     current   = core.Picture.Clone();
     savedItem = current;
     history.Add(current);
 }
コード例 #6
0
 public PenProperties(My_Figure figure, EntityDrawningCore core)
 {
     InitializeComponent();
     this.pen    = figure.pen;
     this.figure = figure;
     this.core   = core;
     LoadData();
 }
コード例 #7
0
        public My_RectangleFigure(EntityDrawningCore core, Rectangle rect)
            : base(core)
        {
            this.rect = rect;

            mouse_move = MouseMove;
            mouse_down = MouseDown;
            mouse_up   = MouseUp;
        }
コード例 #8
0
 public My_EllipsePart(EntityDrawningCore core)
     : base(core)
 {
     draw       = Draw;
     rect       = new Rectangle();
     mouse_move = MouseMoveCreateNew;
     mouse_down = MouseDownCreateNew;
     mouse_up   = MouseUpCreateNew;
 }
コード例 #9
0
 public My_EllipsePart(EntityDrawningCore core, Rectangle rect)
     : base(core)
 {
     draw       = Draw;
     this.rect  = rect;
     mouse_move = MouseMove;
     mouse_down = MouseDown;
     mouse_up   = MouseUp;
 }
コード例 #10
0
        public My_MultypointFigure(EntityDrawningCore core)
            : base(core)
        {
            points = new List <My_Point>();

            mouse_move = MouseMoveCreateNew;
            mouse_down = MouseDownCreateNew;
            mouse_up   = MouseUpCreateNew;
        }
コード例 #11
0
        public My_FileAnalyzer(string filename, EntityDrawningCore core)
        {
            this.filename = filename;
            this.core     = core;
            figures       = new List <My_Figure>();
            Parser parser = new Parser();

            parser.Parsing(filename);
            entities = parser.entities;
        }
コード例 #12
0
 public EntityDrawningForm()
 {
     InitializeComponent();
     core            = new EntityDrawningCore(this);
     this.MouseDown += core.MouseDown;
     this.MouseMove += core.MouseMove;
     this.MouseUp   += core.MouseUp;
     this.Paint     += core.Draw;
     this.KeyDown   += core.KeyDown;
     this.KeyUp     += core.KeyUp;
 }
コード例 #13
0
ファイル: My_Line.cs プロジェクト: cuijialang/HDL_ANTLR4
        public My_Line(EntityDrawningCore core, Point point1, Point point2)
            : base(core)
        {
            this.point1 = point1;
            this.point2 = point2;

            draw       = Draw;
            mouse_move = MouseMove;
            mouse_down = MouseDown;
            mouse_up   = MouseUp;
        }
コード例 #14
0
        public My_Path(EntityDrawningCore core)
            : base(core)
        {
            this.Figures = new List <My_Figure>();

            zIndex = -1;

            mouse_move = MouseMoveCreateNew;
            mouse_down = MouseDownCreateNew;
            mouse_up   = MouseUpCreateNew;
            draw       = Draw;
        }
コード例 #15
0
ファイル: My_Text.cs プロジェクト: cuijialang/HDL_ANTLR4
        public My_Text(EntityDrawningCore core) : base(core)
        {
            Text  = "Hello World";
            Font  = new Font("Times New Roman", 10);
            brush = new My_SolidBrush(Color.Black);
            pen   = new My_Pen(Color.Empty);

            draw       = Draw;
            mouse_move = MouseMoveCreateNew;
            mouse_down = MouseDownCreateNew;
            mouse_up   = MouseUpCreateNew;
        }
コード例 #16
0
 public PaperProperties(EntityDrawningCore core, My_Paper paper)
 {
     InitializeComponent();
     this.core                    = core;
     this.paper                   = paper;
     colorDialogBG.Color          = paper.BGColor;
     colorDialogLine.Color        = paper.LineColor;
     colorDialogSelectColor.Color = EntityDrawningCore.SelectedColor;
     labelBGColor.Text            = paper.BGColor.ToKnownColor().ToString();
     labelLineColor.Text          = paper.LineColor.ToKnownColor().ToString();
     labelSelectColor.Text        = EntityDrawningCore.SelectedColor.ToKnownColor().ToString();
     checkBoxShowBorder.Checked   = paper.DrawBorder;
     checkBoxShowGrid.Checked     = paper.DrawGrig;
 }
コード例 #17
0
ファイル: My_Text.cs プロジェクト: cuijialang/HDL_ANTLR4
        public My_Text(EntityDrawningCore core, string Text, Point pt)
            : base(core)
        {
            this.core    = core;
            this.Text    = Text;
            Font         = new Font("Times New Roman", 10);
            brush        = new My_SolidBrush(Color.Black);
            center_point = pt;
            pen          = new My_Pen(Color.Empty);

            draw       = Draw;
            mouse_move = MouseMove;
            mouse_down = MouseDown;
            mouse_up   = MouseUp;
        }
コード例 #18
0
ファイル: My_Port.cs プロジェクト: cuijialang/HDL_ANTLR4
        public My_Port(EntityDrawningCore core, PortType type, bool Inverse)
            : base(core)
        {
            this.Inverse = Inverse;
            this.type    = type;
            Name         = "New_Port";

            TextLabel       = new My_Text(core, Name, new Point(0, 0));
            TextLabel.Owner = this;

            vhdPort = new vhdPort();

            draw       = Draw;
            mouse_move = MouseMoveCreateNew;
            mouse_down = MouseDownCreateNew;
            mouse_up   = MouseUpCreateNew;
        }
コード例 #19
0
 public My_Paper(EntityDrawningCore core)
 {
     this.core = core;
     if (core.Form != null)
     {
         this.form    = core.Form;
         this.BGColor = form.BackColor;
     }
     else
     {
         this.BGColor = Color.Black;
     }
     this.scale = 1;
     DrawBorder = true;
     DrawGrig   = true;
     LineColor  = Color.Green;
 }
コード例 #20
0
ファイル: My_Port.cs プロジェクト: cuijialang/HDL_ANTLR4
        public My_Port(EntityDrawningCore core, String Name, PortType type, bool Inverse, vhdPort vhdPort, Point point1, Point point2)
            : base(core)
        {
            this.Inverse = Inverse;
            this.type    = type;
            this.Name    = Name;
            this.point1  = point1;
            this.point2  = point2;
            this.vhdPort = vhdPort;

            TextLabel       = new My_Text(core, Name, new Point(0, 0));
            TextLabel.Owner = this;

            draw       = Draw;
            mouse_move = MouseMove;
            mouse_down = MouseDown;
            mouse_up   = MouseUp;
        }
コード例 #21
0
ファイル: My_Ellipse.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Ellipse(EntityDrawningCore core)
     : base(core)
 {
     draw = Draw;
 }
コード例 #22
0
 public My_SplineBezier(EntityDrawningCore core)
     : base(core)
 {
     draw     = DrawCreateNew;
     mouse_up = MouseUpCreateNew;
 }
コード例 #23
0
ファイル: My_Picture.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Picture(EntityDrawningCore core)
 {
     figureList = new List <My_Figure>();
     this.core  = core;
 }
コード例 #24
0
ファイル: My_Polyline.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Polyline(EntityDrawningCore core)
     : base(core)
 {
     draw = DrawCreateNew;
 }
コード例 #25
0
ファイル: My_Rectangle.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Rectangle(EntityDrawningCore core)
     : base(core)
 {
     draw = Draw;
 }
コード例 #26
0
ファイル: My_Image.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Image(EntityDrawningCore core, Rectangle rect, Bitmap bitmap)
     : base(core, rect)
 {
     this.bitmap = bitmap;
     draw        = Draw;
 }
コード例 #27
0
ファイル: My_Arc.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Arc(EntityDrawningCore core)
     : base(core)
 {
     draw = Draw;
 }
コード例 #28
0
ファイル: My_Ellipse.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Ellipse(EntityDrawningCore core, Rectangle rect)
     : base(core, rect)
 {
     draw = Draw;
 }
コード例 #29
0
 public GroupSelector(EntityDrawningCore core)
 {
     this.core = core;
     rect      = new Rectangle(new Point(0, 0), new Size(0, 0));
 }
コード例 #30
0
ファイル: My_Curve.cs プロジェクト: cuijialang/HDL_ANTLR4
 public My_Curve(EntityDrawningCore core)
     : base(core)
 {
     draw     = DrawCreateNew;
     mouse_up = MouseUpCreateNew;
 }