src/java.desktop/macosx/classes/sun/java2d/CompositeCRenderer.java

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.java2d;
  27 
  28 import java.awt.*;
  29 import java.awt.font.*;
  30 import java.awt.geom.*;
  31 import java.awt.image.*;
  32 
  33 import sun.awt.image.*;
  34 import sun.java2d.loops.*;
  35 import sun.java2d.pipe.*;
  36 
  37 public class CompositeCRenderer extends CRenderer implements PixelDrawPipe, PixelFillPipe, ShapeDrawPipe, DrawImagePipe, TextPipe {
  38     final static int fPadding = 4;
  39     final static int fPaddingHalf = fPadding / 2;
  40 
  41     private static AffineTransform sIdentityMatrix = new AffineTransform();
  42 
  43     AffineTransform ShapeTM = new AffineTransform();
  44     Rectangle2D ShapeBounds = new Rectangle2D.Float();
  45 
  46     Line2D line = new Line2D.Float();
  47     Rectangle2D rectangle = new Rectangle2D.Float();
  48     RoundRectangle2D roundrectangle = new RoundRectangle2D.Float();
  49     Ellipse2D ellipse = new Ellipse2D.Float();
  50     Arc2D arc = new Arc2D.Float();
  51 
  52     public synchronized void drawLine(SunGraphics2D sg2d, int x1, int y1, int x2, int y2) {
  53         // create shape corresponding to this primitive
  54         line.setLine(x1, y1, x2, y2);
  55 
  56         draw(sg2d, line);
  57     }
  58 
  59     public synchronized void drawRect(SunGraphics2D sg2d, int x, int y, int width, int height) {




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.java2d;
  27 
  28 import java.awt.*;
  29 import java.awt.font.*;
  30 import java.awt.geom.*;
  31 import java.awt.image.*;
  32 
  33 import sun.awt.image.*;
  34 import sun.java2d.loops.*;
  35 import sun.java2d.pipe.*;
  36 
  37 public class CompositeCRenderer extends CRenderer implements PixelDrawPipe, PixelFillPipe, ShapeDrawPipe, DrawImagePipe, TextPipe {
  38     static final int fPadding = 4;
  39     static final int fPaddingHalf = fPadding / 2;
  40 
  41     private static AffineTransform sIdentityMatrix = new AffineTransform();
  42 
  43     AffineTransform ShapeTM = new AffineTransform();
  44     Rectangle2D ShapeBounds = new Rectangle2D.Float();
  45 
  46     Line2D line = new Line2D.Float();
  47     Rectangle2D rectangle = new Rectangle2D.Float();
  48     RoundRectangle2D roundrectangle = new RoundRectangle2D.Float();
  49     Ellipse2D ellipse = new Ellipse2D.Float();
  50     Arc2D arc = new Arc2D.Float();
  51 
  52     public synchronized void drawLine(SunGraphics2D sg2d, int x1, int y1, int x2, int y2) {
  53         // create shape corresponding to this primitive
  54         line.setLine(x1, y1, x2, y2);
  55 
  56         draw(sg2d, line);
  57     }
  58 
  59     public synchronized void drawRect(SunGraphics2D sg2d, int x, int y, int width, int height) {