Exemplo n.º 1
0
        //----------------------------------------------------------------------------------------------------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();
            }
        }
Exemplo n.º 2
0
 //----------------------------------------------------------------------------------------------------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;
 }
Exemplo n.º 3
0
        //----------------------------------------------------------------------------------------------------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));
        }
Exemplo n.º 4
0
 //----------------------------------------------------------------------------------------------------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]);
     }
 }
Exemplo n.º 5
0
 //----------------------------------------------------------------------------------------------------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))
 {
 }
Exemplo n.º 6
0
 //----------------------------------------------------------------------------------------------------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)
 {
 }
Exemplo n.º 7
0
 //----------------------------------------------------------------------------------------------------x
 /// <summary>Creates a new graphics state object.</summary>
 internal GraphicsState(RepObj repObj, PenProp penProp, BrushProp brushProp)
 {
     _repObj    = repObj;
     _penProp   = penProp;
     _brushProp = brushProp;
 }
Exemplo n.º 8
0
 //----------------------------------------------------------------------------------------------------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;
 }