Exemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         *
         * @param path
         * @param matrix
         * @param fillStyle
         * @param mode
         */
        public void DrawPath(GraphicsPathFP path, MatrixFP matrix,
                             BrushFP fs, int mode)
        {
            _transformMatrix = matrix;
            DrawPath(path, fs, mode);
            _transformMatrix = null;
        }
Exemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * Constructor.
         * @param brush
         * @param ff_width
         * @param startlinecap
         * @param endlinecap
         * @param linejoin
         */
        public PenFP(BrushFP brush, int ffWidth, int startlinecap,
                     int endlinecap, int linejoin)
        {
            Brush    = brush;
            Width    = ffWidth;
            StartCap = startlinecap;
            EndCap   = endlinecap;
            LineJoin = linejoin;
        }
Exemplo n.º 3
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         *
         * @param path
         * @param style
         * @param mode
         */
        public void DrawPath(GraphicsPathFP path, BrushFP style, int mode)
        {
            _scanIndex = 0;
            _drawMode  = mode;
            path.Visit(this);
            RadixSort(Scanbuf, ScanbufTmp, _scanIndex);
            _fillStyle = style;
            if (_transformMatrix != null)
            {
                _fillStyle.SetGraphicsMatrix(_transformMatrix);
            }
            DrawBuffer();
            _fillStyle = null;
        }
Exemplo n.º 4
0
        ////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       Name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 13JUN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * constrcutor.
         * @param brush   the brush.
         * @param ff_width the width of this pen.
         * @param linecap  the start cap style of this pen.
         * @param linejoin the end cap style of this pen.
         */
        public PenFP(BrushFP brush, int ffWidth, int linecap, int linejoin)
            : this(brush, ffWidth, linecap, linecap, linejoin)
        {
        }
Exemplo n.º 5
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * Constructor.
  * @param brush
  * @param ff_width
  * @param startlinecap
  * @param endlinecap
  * @param linejoin
  */
 public PenFP(BrushFP brush, int ffWidth, int startlinecap,
         int endlinecap, int linejoin)
 {
     Brush = brush;
     Width = ffWidth;
     StartCap = startlinecap;
     EndCap = endlinecap;
     LineJoin = linejoin;
 }
Exemplo n.º 6
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * constrcutor.
  * @param brush   the brush.
  * @param ff_width the width of this pen.
  * @param linecap  the start cap style of this pen.
  * @param linejoin the end cap style of this pen.
  */
 public PenFP(BrushFP brush, int ffWidth, int linecap, int linejoin)
     : this(brush, ffWidth, linecap, linecap, linejoin)
 {
 }
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  *
  * @param path
  * @param matrix
  * @param fillStyle
  * @param mode
  */
 public void DrawPath(GraphicsPathFP path, MatrixFP matrix,
         BrushFP fs, int mode)
 {
     _transformMatrix = matrix;
     DrawPath(path, fs, mode);
     _transformMatrix = null;
 }
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       Name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 13JUN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  *
  * @param path
  * @param style
  * @param mode
  */
 public void DrawPath(GraphicsPathFP path, BrushFP style, int mode)
 {
     _scanIndex = 0;
     _drawMode = mode;
     path.Visit(this);
     RadixSort(Scanbuf, ScanbufTmp, _scanIndex);
     _fillStyle = style;
     if (_transformMatrix != null)
     {
         _fillStyle.SetGraphicsMatrix(_transformMatrix);
     }
     DrawBuffer();
     _fillStyle = null;
 }