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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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); }
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; }
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(); }
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(); }
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(); }
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); }