Example #1
0
 public DrawEllipse(int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled)
 {
     Rectangle = new Rectangle(x, y, width, height);
     DrawPen   = DrawingPens.SetCurrentPen(pType);
     PenType   = pType;
     FillColor = fillColor;
     Filled    = filled;
     Initialize();
 }
Example #2
0
 public DrawPolygon(int x1, int y1, int x2, int y2, DrawingPens.PenType p)
 {
     pointArray = new ArrayList();
     pointArray.Add(new Point(x1, y1));
     pointArray.Add(new Point(x2, y2));
     DrawPen = DrawingPens.SetCurrentPen(p);
     PenType = p;
     LoadCursor();
     Initialize();
 }
Example #3
0
 public DrawEllipse(int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled)
 {
     Rectangle = new Rectangle(x, y, width, height);
     Center    = new Point(x + (width / 2), y + (height / 2));
     TipText   = String.Format("Ellipse Center @ {0}, {1}", Center.X, Center.Y);
     DrawPen   = DrawingPens.SetCurrentPen(pType);
     PenType   = pType;
     FillColor = fillColor;
     Filled    = filled;
     Initialize();
 }
Example #4
0
 public DrawPoint(int x1, int y1, DrawingPens.PenType p)
 {
     Point.X = x1;
     Point.Y = y1;
     DrawPen = DrawingPens.SetCurrentPen(p);
     PenType = p;
     ZOrder  = 0;
     TipText = String.Format("Point @ {0}-{1}", x1, y1);
     Console.WriteLine(TipText);
     Initialize();
 }
Example #5
0
        public DrawPolyLine(int x1, int y1, int x2, int y2, Color lineColor, int lineWidth, DrawingPens.PenType penType)
        {
            pointArray = new ArrayList();
            pointArray.Add(new Point(x1, y1));
            pointArray.Add(new Point(x2, y2));
            Color    = lineColor;
            PenWidth = lineWidth;
            PenType  = penType;

            LoadCursor();
            Initialize();
        }
Example #6
0
 public DrawLine(int x1, int y1, int x2, int y2, DrawingPens.PenType p)
 {
     startPoint.X = x1;
     startPoint.Y = y1;
     endPoint.X   = x2;
     endPoint.Y   = y2;
     DrawPen      = DrawingPens.SetCurrentPen(p);
     PenType      = p;
     ZOrder       = 0;
     TipText      = String.Format("Line Start @ {0}-{1}, End @ {2}-{3}", x1, y1, x2, y2);
     Initialize();
 }
Example #7
0
        public DrawConnector(int x1, int y1, int x2, int y2, DrawingPens.PenType p)
        {
            pointArray = new ArrayList();
            pointArray.Add(new Point(x1, y1));
            pointArray.Add(new Point(x2, y2));
            TipText = String.Format("Start @ {0}-{1}, End @ {2}, {3}", x1, y1, x2, y2);
            DrawPen = DrawingPens.SetCurrentPen(p);
            PenType = p;

            LoadCursor();
            Initialize();
        }
Example #8
0
        public DrawLine(int x1, int y1, int x2, int y2, DrawingPens.PenType p)
        {
            startPoint.X = x1;
            startPoint.Y = y1;
            endPoint.X   = x2;
            endPoint.Y   = y2;
            DrawPen      = DrawingPens.SetCurrentPen(p);
            PenType      = p;
            ZOrder       = 0;

            Initialize();
        }
Example #9
0
 public DrawRectangle(int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled)
 {
     Center           = new Point(x + (width / 2), y + (height / 2));
     rectangle.X      = x;
     rectangle.Y      = y;
     rectangle.Width  = width;
     rectangle.Height = height;
     DrawPen          = DrawingPens.SetCurrentPen(pType);
     PenType          = pType;
     FillColor        = fillColor;
     Filled           = filled;
     TipText          = String.Format("Rectangle Center @ {0}, {1}", Center.X, Center.Y);
 }
Example #10
0
        public DrawPath(int x1, int y1, int x2, int y2, DrawingPens.PenType p, DrawArea owner)
        {
            pointArray = new ArrayList();
            pointArray.Add(new Point(x1, y1));
            pointArray.Add(new Point(x2, y2));
            DrawPen = DrawingPens.SetCurrentPen(p);
            PenType = p;

            LoadCursor();
            Initialize();

            this.owner = owner;
        }
Example #11
0
 public DrawEllipse(int x, int y, int width, int height, Color lineColor, Color fillColor, bool filled, int lineWidth, DrawingPens.PenType penType, LineCap endCap)
 {
     Rectangle = new Rectangle(x, y, width, height);
     Center    = new Point(x + (width / 2), y + (height / 2));
     TipText   = String.Format("Ellipse Center @ {0}, {1}", Center.X, Center.Y);
     Color     = lineColor;
     FillColor = fillColor;
     Filled    = filled;
     PenWidth  = lineWidth;
     PenType   = penType;
     EndCap    = endCap;
     Initialize();
 }
Example #12
0
 public DrawEllipse(PageList _parent, int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled)
     : base(_parent)
 {
     Resizeable = true;
     rectangle  = new Rectangle(x, y, width, height);
     Center     = new Point(x + (width / 2), y + (height / 2));
     TipText    = String.Format("Ellipse Center @ {0}, {1}", Center.X, Center.Y);
     //DrawPen = DrawingPens.SetCurrentPen(pType);
     //PenType = pType;
     //FillColor = fillColor;
     //Filled = filled;
     ShapeType = STATIC_OBJ_TYPE.ID_ELLIPS;
     Initialize();
 }
        public DrawConnector(int x1, int y1, int x2, int y2, Color lineColor, int lineWidth, DrawingPens.PenType penType, LineCap endCap)
        {
            pointArray = new ArrayList();
            pointArray.Add(new Point(x1, y1));
            pointArray.Add(new Point(x2, y2));
            TipText  = String.Format("Start @ {0}-{1}, End @ {2}, {3}", x1, y1, x2, y2);
            Color    = lineColor;
            PenWidth = lineWidth;
            PenType  = penType;
            EndCap   = endCap;

            LoadCursor();
            Initialize();
        }
Example #14
0
 public DrawRectangle(int x, int y, int width, int height, Color lineColor, Color fillColor, bool filled, int lineWidth, DrawingPens.PenType penType, LineCap endCap)
 {
     Center           = new Point(x + (width / 2), y + (height / 2));
     rectangle.X      = x;
     rectangle.Y      = y;
     rectangle.Width  = width;
     rectangle.Height = height;
     Color            = lineColor;
     FillColor        = fillColor;
     Filled           = filled;
     PenWidth         = lineWidth;
     EndCap           = endCap;
     PenType          = penType;
     TipText          = String.Format("Rectangle Center @ {0}, {1}", Center.X, Center.Y);
 }
        public DrawLine(int x1, int y1, int x2, int y2, Color lineColor, int lineWidth, DrawingPens.PenType penType, LineCap endCap)
        {
            startPoint.X = x1;
            startPoint.Y = y1;
            endPoint.X   = x2;
            endPoint.Y   = y2;
            Color        = lineColor;
            PenWidth     = lineWidth;
            PenType      = penType;
            EndCap       = endCap;
            ZOrder       = 0;
            TipText      = String.Format("Line Start @ {0}-{1}, End @ {2}-{3}", x1, y1, x2, y2);

            Initialize();
        }
Example #16
0
 public DrawVariable(int x, int y, int width, int height, DrawingPens.PenType pType, Color fillColor, bool filled)
 {
     VarName          = "VarName";
     VarDescription   = "Description";
     Resizeable       = false;
     Center           = new Point(x + (width / 2), y + (height / 2));
     rectangle.X      = x;
     rectangle.Y      = y;
     rectangle.Width  = width;
     rectangle.Height = height;
     DrawPen          = DrawingPens.SetCurrentPen(pType);
     PenType          = pType;
     FillColor        = fillColor;
     Filled           = filled;
     TipText          = String.Format("Rectangle Center @ {0}, {1}", Center.X, Center.Y);
 }