//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object with a border line.</summary> /// <param name="penProp">Pen properties of the border line</param> /// <param name="brushProp">Brush properties of the rectangle</param> /// <param name="rWidth">Width of the rectangle</param> /// <param name="rHeight">Height of the rectangle</param> public RepRect(PenProp penProp, BrushProp brushProp, Double rWidth, Double rHeight) { #if DEVELOPER // bs if (penProp != null) { this.graphicsState.penProp = penProp.penProp_Registered; } if (brushProp != null) { this.graphicsState.brushProp = brushProp.brushProp_Registered; } #else if (penProp != null) { this.penProp = penProp.penProp_Registered; } if (brushProp != null) { this.brushProp = brushProp.brushProp_Registered; } #endif this.rWidth = rWidth; this.rHeight = rHeight; if (penProp == null) { oRepObjX = brushProp.report.formatter.oCreate_RepRect(); } else { oRepObjX = penProp.report.formatter.oCreate_RepRect(); } }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object with a border line.</summary> /// <param name="penProp">Pen properties of the border line</param> /// <param name="brushProp">Brush properties of the rectangle</param> /// <param name="rXPoints">X-coodinate of points, relative to the start point.</param> /// <param name="rYPoints">Y-coodinate of points, relative to the start point.</param> public RepPoly(PenProp penProp, BrushProp brushProp, Double[] rXPoints, Double[] rYPoints) { graphicsState.penProp = penProp.penProp_Registered; graphicsState.brushProp = brushProp.brushProp_Registered; this.rXPoints = rXPoints; this.rYPoints = rYPoints; }
//----------------------------------------------------------------------------------------------------x /// <summary>Determines whether the specified object is equal to the current object.</summary> /// <param name="o">The object to compare with the current object.</param> /// <returns>true if the specified Object is equal to the current Object; otherwise, false.</returns> public override Boolean Equals(Object o) { if (o == null) { return(false); } BrushProp bp = (BrushProp)o; return(Equals(_color, bp._color)); }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object with a border line and millimeter values.</summary> /// <param name="penProp">Pen properties of the border line</param> /// <param name="brushProp">Brush properties of the rectangle</param> /// <param name="rXPoints">X-coodinate of points, relative to the start point, in millimeters.</param> /// <param name="rYPoints">Y-coodinate of points, relative to the start point, in millimeters.</param> public RepPolyMM(PenProp penProp, BrushProp brushProp, Double[] rXPoints, Double[] rYPoints) : base(penProp, brushProp, null, null) { this.rXPoints = (Double[])Array.CreateInstance(typeof(Double), rXPoints.Length); this.rYPoints = (Double[])Array.CreateInstance(typeof(Double), rYPoints.Length); for (int i = 0; i < rXPoints.Length; i++) { this.rXPoints[i] = RT.rPointFromMM(rXPoints[i]); this.rYPoints[i] = RT.rPointFromMM(rYPoints[i]); } }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object with a border line and millimeter values.</summary> /// <param name="penProp">Pen properties of the border line</param> /// <param name="brushProp">Brush properties of the rectangle</param> /// <param name="rWidth">Width of the rectangle</param> /// <param name="rHeight">Height of the rectangle</param> public RepRectMM(PenProp penProp, BrushProp brushProp, Double rWidth, Double rHeight) : base(penProp, brushProp, RT.rPointFromMM(rWidth), RT.rPointFromMM(rHeight)) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object without a border line.</summary> /// <param name="brushProp">Brush properties of the rectangle</param> /// <param name="rWidth">Width of the rectangle</param> /// <param name="rHeight">Height of the rectangle</param> public RepRect(BrushProp brushProp, Double rWidth, Double rHeight) : this(null, brushProp, rWidth, rHeight) { }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new graphics state object.</summary> internal GraphicsState(RepObj repObj, PenProp penProp, BrushProp brushProp) { _repObj = repObj; _penProp = penProp; _brushProp = brushProp; }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new filled rectangle object without a border line.</summary> /// <param name="brushProp">Brush properties of the rectangle</param> /// <param name="rXPoints">X-coodinate of points, relative to the start point.</param> /// <param name="rYPoints">Y-coodinate of points, relative to the start point.</param> public RepPoly(BrushProp brushProp, Double[] rXPoints, Double[] rYPoints) { graphicsState.brushProp = brushProp.brushProp_Registered; this.rWidth = rWidth; this.rHeight = rHeight; }