コード例 #1
0
ファイル: DrawImage.cs プロジェクト: ehsanamid/Engineering
 public DrawImage(PageList _parent)
     : base(_parent)
 {
     Resizeable = true;
     SetRectangle(0, 0, 1, 1);
     Initialize();
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
 }
コード例 #2
0
ファイル: DrawImage.cs プロジェクト: ehsanamid/Engineering
 public DrawImage(PageList _parent, int x, int y)
     : base(_parent)
 {
     Resizeable        = true;
     _rectangle.X      = x;
     _rectangle.Y      = y;
     _rectangle.Width  = 1;
     _rectangle.Height = 1;
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     Initialize();
 }
コード例 #3
0
ファイル: DrawPolyLine.cs プロジェクト: ehsanamid/Engineering
 public DrawPolyLine(PageList _parent)
     : base(_parent)
 {
     Resizeable = true;
     //pointArray = new ArrayList();
     ShapeType = STATIC_OBJ_TYPE.ID_POLYLINE;
     shapeoutline.LineStyle = Common.LastLineStyle;
     Propertylist.Add("BorderWidth,Line Width,DINT");
     Propertylist.Add("BorderColor,Line Color,Color");
     Propertylist.Add("BorderBlinking,Line Blinking,BOOL");
     //LoadCursor();
     Initialize();
 }
コード例 #4
0
 public DrawPolygon(PageList _parent)
     : base(_parent)
 {
     _shapeoutline = new ShapeOutline(this);
     _shapefill    = new ShapeFill(this);
     Resizeable    = true;
     //pointArray = new ArrayList();
     ShapeType              = STATIC_OBJ_TYPE.ID_POLYGON;
     shapefill.FillColor    = Common.LastFillColor;
     shapeoutline.LineStyle = Common.LastLineStyle;
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     //LoadCursor();
     Initialize();
 }
コード例 #5
0
ファイル: DrawCurve.cs プロジェクト: ehsanamid/Engineering
 public DrawCurve(PageList _parent, int x1, int y1, int x2, int y2)
     : base(_parent)
 {
     Resizeable = true;
     //pointArray = new ArrayList();
     pointArray.Add(new Point(x1, y1));
     pointArray.Add(new Point(x2, y2));
     ShapeType = STATIC_OBJ_TYPE.ID_CURVE;
     //shapefill.FillColor = Common.LastFillColor;
     shapeoutline.LineStyle = Common.LastLineStyle;
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     //LoadCursor();
     Initialize();
 }
コード例 #6
0
ファイル: DrawImage.cs プロジェクト: ehsanamid/Engineering
 public DrawImage(PageList _parent, int x, int y, Bitmap image)
     : base(_parent)
 {
     Resizeable        = true;
     _rectangle.X      = x;
     _rectangle.Y      = y;
     _rectangle.Width  = 1;
     _rectangle.Height = 1;
     _image            = (Bitmap)image.Clone();
     SetRectangle(rectangle.X, rectangle.Y, image.Width, image.Height);
     Center  = new Point(x + (image.Width / 2), y + (image.Height / 2));
     TipText = String.Format("Image Center @ {0}, {1}", Center.X, Center.Y);
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     Initialize();
 }
コード例 #7
0
 public DrawRectangle(PageList _parent)
     : base(_parent)
 {
     _shapeoutline = new ShapeOutline(this);
     _shapefill    = new ShapeFill(this);
     Resizeable    = true;
     SetRectangle(0, 0, 1, 1);
     ShapeType              = STATIC_OBJ_TYPE.ID_RECT;
     shapefill.FillColor    = Common.LastFillColor;
     shapeoutline.LineStyle = Common.LastLineStyle;
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     Propertylist.Add("Color1,Fill Color 1,Color");
     Propertylist.Add("Color2,Fill Color 2,Color");
     Propertylist.Add("Blinking,Blinking,BOOL");
     Propertylist.Add("Visible,Visible,BOOL");
 }
コード例 #8
0
ファイル: DrawText.cs プロジェクト: ehsanamid/Engineering
 public DrawText(PageList _parent)
     : base(_parent)
 {
     _shapeoutline = new ShapeOutline(this);
     _shapefill    = new ShapeFill(this);
     Resizeable    = true;
     //SetRectangle(0, 0, 1,1);
     _theText               = "";
     this.ShapeType         = STATIC_OBJ_TYPE.ID_TEXT;
     shapefill.FillColor    = Common.LastFillColor;
     shapeoutline.LineStyle = Common.LastLineStyle;
     Propertylist.Add("Text,Text,STRING");
     Propertylist.Add("TextColor,Text Color,Color");
     Propertylist.Add("TextBlinking,Text Blinking,BOOL");
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     Propertylist.Add("Color1,Fill Color,Color");
     Propertylist.Add("Visible,Visible,BOOL");
     Initialize();
 }
コード例 #9
0
ファイル: DrawLine.cs プロジェクト: ehsanamid/Engineering
        public DrawLine(PageList _parent, int x1, int y1, int x2, int y2)
            : base(_parent)
        {
            _shapeoutline          = new ShapeOutline(this);
            ShapeType              = STATIC_OBJ_TYPE.ID_LINE;
            shapeoutline.LineStyle = Common.LastLineStyle;
            Resizeable             = true;
            startPoint.X           = x1;
            startPoint.Y           = y1;
            endPoint.X             = x2;
            endPoint.Y             = y2;


            ArrowSize = 1;
            Propertylist.Add("Border Width,Line Width,DINT");
            Propertylist.Add("BorderColor,Line Color,Color");
            Propertylist.Add("BorderBlinking,Line Blinking,BOOL");
            Propertylist.Add("Visible,Visible,BOOL");

            oIndex  = 0;
            TipText = String.Format("Line Start @ {0}-{1}, End @ {2}-{3}", x1, y1, x2, y2);
            Initialize();
        }
コード例 #10
0
ファイル: DrawLine.cs プロジェクト: ehsanamid/Engineering
        public DrawLine(PageList _parent)
            : base(_parent)
        {
            _shapeoutline          = new ShapeOutline(this);
            ShapeType              = STATIC_OBJ_TYPE.ID_LINE;
            shapeoutline.LineStyle = Common.LastLineStyle;
            Resizeable             = true;
            startPoint.X           = 0;
            startPoint.Y           = 0;
            endPoint.X             = 1;
            endPoint.Y             = 1;
            oIndex = 0;


            ArrowSize = 1;

            Propertylist.Add("Border Width,Line Width,DINT");
            Propertylist.Add("BorderColor,Line Color,Color");
            Propertylist.Add("BorderBlinking,Line Blinking,BOOL");
            Propertylist.Add("Visible,Visible,BOOL");

            Initialize();
        }
コード例 #11
0
 public DrawRectangle(PageList _parent, int x, int y, int width, int height)
     : base(_parent)
 {
     _shapeoutline          = new ShapeOutline(this);
     _shapefill             = new ShapeFill(this);
     Resizeable             = true;
     Center                 = new Point(x + (width / 2), y + (height / 2));
     _rectangle.X           = x;
     _rectangle.Y           = y;
     _rectangle.Width       = width;
     _rectangle.Height      = height;
     ShapeType              = STATIC_OBJ_TYPE.ID_RECT;
     shapefill.FillColor    = Common.LastFillColor;
     shapeoutline.LineStyle = Common.LastLineStyle;
     TipText                = String.Format("_rectangle Center @ {0}, {1}", Center.X, Center.Y);
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     Propertylist.Add("Color1,Fill Color 1,Color");
     Propertylist.Add("Color2,Fill Color 2,Color");
     Propertylist.Add("Blinking,Blinking,BOOL");
     Propertylist.Add("Visible,Visible,BOOL");
 }
コード例 #12
0
ファイル: DrawText.cs プロジェクト: ehsanamid/Engineering
 public DrawText(PageList _parent, int x, int y, string textToDraw, Font textFont, Color textColor)
     : base(_parent)
 {
     _shapeoutline          = new ShapeOutline(this);
     _shapefill             = new ShapeFill(this);
     Resizeable             = true;
     _rectangle.X           = x;
     _rectangle.Y           = y;
     _theText               = textToDraw;
     _font                  = textFont;
     TextColor              = textColor;
     this.ShapeType         = STATIC_OBJ_TYPE.ID_TEXT;
     shapefill.FillColor    = Common.LastFillColor;
     shapeoutline.LineStyle = Common.LastLineStyle;
     Propertylist.Add("Text,Text,STRING");
     Propertylist.Add("TextColor,Text Color,Color");
     Propertylist.Add("TextBlinking,Text Blinking,BOOL");
     Propertylist.Add("BorderWidth,Border Width,DINT");
     Propertylist.Add("BorderColor,Border Color,Color");
     Propertylist.Add("BorderBlinking,Border Blinking,BOOL");
     Propertylist.Add("Color1,Fill Color,Color");
     Propertylist.Add("Visible,Visible,BOOL");
     Initialize();
 }