Lines Matching refs:sg2d

64     private final void validateSurface(SunGraphics2D sg2d) {
65 XRSurfaceData xrsd = (XRSurfaceData) sg2d.surfaceData;
66 xrsd.validateAsDestination(sg2d, sg2d.getCompClip());
67 xrsd.maskBuffer.validateCompositeState(sg2d.composite, sg2d.transform,
68 sg2d.paint, sg2d);
71 public void drawLine(SunGraphics2D sg2d, int x1, int y1, int x2, int y2) {
75 validateSurface(sg2d);
76 int transx = sg2d.transX;
77 int transy = sg2d.transY;
79 XRSurfaceData xrsd = (XRSurfaceData) sg2d.surfaceData;
89 public void drawRect(SunGraphics2D sg2d,
91 draw(sg2d, new Rectangle2D.Float(x, y, width, height));
94 public void drawPolyline(SunGraphics2D sg2d,
104 draw(sg2d, p2d);
107 public void drawPolygon(SunGraphics2D sg2d,
109 draw(sg2d, new Polygon(xpoints, ypoints, npoints));
112 public synchronized void fillRect(SunGraphics2D sg2d,
116 validateSurface(sg2d);
118 XRSurfaceData xrsd = (XRSurfaceData) sg2d.surfaceData;
120 x += sg2d.transform.getTranslateX();
121 y += sg2d.transform.getTranslateY();
131 public void fillPolygon(SunGraphics2D sg2d,
133 fill(sg2d, new Polygon(xpoints, ypoints, npoints));
136 public void drawRoundRect(SunGraphics2D sg2d,
139 draw(sg2d, new RoundRectangle2D.Float(x, y, width, height,
143 public void fillRoundRect(SunGraphics2D sg2d, int x, int y,
146 fill(sg2d, new RoundRectangle2D.Float(x, y, width, height,
150 public void drawOval(SunGraphics2D sg2d,
152 draw(sg2d, new Ellipse2D.Float(x, y, width, height));
155 public void fillOval(SunGraphics2D sg2d,
157 fill(sg2d, new Ellipse2D.Float(x, y, width, height));
160 public void drawArc(SunGraphics2D sg2d,
163 draw(sg2d, new Arc2D.Float(x, y, width, height,
167 public void fillArc(SunGraphics2D sg2d,
170 fill(sg2d, new Arc2D.Float(x, y, width, height,
186 void validate(SunGraphics2D sg2d) {
187 Region clip = sg2d.getCompClip();
189 clip.getHiX(), clip.getHiY(), sg2d.strokeHint);
190 validateSurface(sg2d);
206 protected void drawPath(SunGraphics2D sg2d, Path2D.Float p2df,
210 validateSurface(sg2d);
211 drawHandler.validate(sg2d);
213 tileManager.fillMask(((XRSurfaceData) sg2d.surfaceData));
219 protected void fillPath(SunGraphics2D sg2d, Path2D.Float p2df,
223 validateSurface(sg2d);
224 drawHandler.validate(sg2d);
226 tileManager.fillMask(((XRSurfaceData) sg2d.surfaceData));
232 protected void fillSpans(SunGraphics2D sg2d, SpanIterator si,
236 validateSurface(sg2d);
244 tileManager.fillMask(((XRSurfaceData) sg2d.surfaceData));
250 public void draw(SunGraphics2D sg2d, Shape s) {
251 if (sg2d.strokeState == SunGraphics2D.STROKE_THIN) {
254 if (sg2d.transformState <= SunGraphics2D.TRANSFORM_INT_TRANSLATE) {
260 transx = sg2d.transX;
261 transy = sg2d.transY;
263 p2df = new Path2D.Float(s, sg2d.transform);
267 drawPath(sg2d, p2df, transx, transy);
268 } else if (sg2d.strokeState < SunGraphics2D.STROKE_CUSTOM) {
269 ShapeSpanIterator si = LoopPipe.getStrokeSpans(sg2d, s);
271 fillSpans(sg2d, si, 0, 0);
276 fill(sg2d, sg2d.stroke.createStrokedShape(s));
280 public void fill(SunGraphics2D sg2d, Shape s) {
283 if (sg2d.strokeState == SunGraphics2D.STROKE_THIN) {
287 if (sg2d.transformState <= SunGraphics2D.TRANSFORM_INT_TRANSLATE) {
293 transx = sg2d.transX;
294 transy = sg2d.transY;
296 p2df = new Path2D.Float(s, sg2d.transform);
300 fillPath(sg2d, p2df, transx, transy);
305 if (sg2d.transformState <= SunGraphics2D.TRANSFORM_INT_TRANSLATE) {
308 transx = sg2d.transX;
309 transy = sg2d.transY;
312 at = sg2d.transform;
316 ShapeSpanIterator ssi = LoopPipe.getFillSSI(sg2d);
320 Region clip = sg2d.getCompClip();
326 fillSpans(sg2d, ssi, transx, transy);