Lines Matching refs:sg2d

83     protected abstract void validateContext(SunGraphics2D sg2d);
84 protected abstract void validateContextAA(SunGraphics2D sg2d);
86 public void drawLine(SunGraphics2D sg2d,
89 int transx = sg2d.transX;
90 int transy = sg2d.transY;
93 validateContext(sg2d);
105 public void drawRect(SunGraphics2D sg2d,
110 validateContext(sg2d);
113 buf.putInt(x + sg2d.transX);
114 buf.putInt(y + sg2d.transY);
122 public void fillRect(SunGraphics2D sg2d,
127 validateContext(sg2d);
130 buf.putInt(x + sg2d.transX);
131 buf.putInt(y + sg2d.transY);
139 public void drawRoundRect(SunGraphics2D sg2d,
143 draw(sg2d, new RoundRectangle2D.Float(x, y, width, height,
147 public void fillRoundRect(SunGraphics2D sg2d,
151 fill(sg2d, new RoundRectangle2D.Float(x, y, width, height,
155 public void drawOval(SunGraphics2D sg2d,
158 draw(sg2d, new Ellipse2D.Float(x, y, width, height));
161 public void fillOval(SunGraphics2D sg2d,
164 fill(sg2d, new Ellipse2D.Float(x, y, width, height));
167 public void drawArc(SunGraphics2D sg2d,
171 draw(sg2d, new Arc2D.Float(x, y, width, height,
176 public void fillArc(SunGraphics2D sg2d,
180 fill(sg2d, new Arc2D.Float(x, y, width, height,
185 protected void drawPoly(final SunGraphics2D sg2d,
201 drawLine(sg2d, xPoints[0], yPoints[0], xPoints[1], yPoints[1]);
207 validateContext(sg2d);
221 buf.putInt(sg2d.transX);
222 buf.putInt(sg2d.transY);
233 sg2d.transX, sg2d.transY);
246 public void drawPolyline(SunGraphics2D sg2d,
250 drawPoly(sg2d, xPoints, yPoints, nPoints, false);
253 public void drawPolygon(SunGraphics2D sg2d,
257 drawPoly(sg2d, xPoints, yPoints, nPoints, true);
260 public void fillPolygon(SunGraphics2D sg2d,
264 fill(sg2d, new Polygon(xPoints, yPoints, nPoints));
280 void validate(SunGraphics2D sg2d) {
281 Region clip = sg2d.getCompClip();
284 sg2d.strokeHint);
360 protected void drawPath(SunGraphics2D sg2d,
365 validateContext(sg2d);
366 drawHandler.validate(sg2d);
373 protected void fillPath(SunGraphics2D sg2d,
378 validateContext(sg2d);
379 drawHandler.validate(sg2d);
393 protected void fillSpans(SunGraphics2D sg2d, SpanIterator si,
398 validateContext(sg2d);
410 public void fillParallelogram(SunGraphics2D sg2d,
419 validateContext(sg2d);
433 public void drawParallelogram(SunGraphics2D sg2d,
443 validateContext(sg2d);
460 public void fillParallelogram(SunGraphics2D sg2d,
469 validateContextAA(sg2d);
483 public void drawParallelogram(SunGraphics2D sg2d,
493 validateContextAA(sg2d);
510 public void draw(SunGraphics2D sg2d, Shape s) {
511 if (sg2d.strokeState == sg2d.STROKE_THIN) {
513 if (sg2d.transformState < sg2d.TRANSFORM_TRANSLATESCALE) {
515 drawPolygon(sg2d, p.xpoints, p.ypoints, p.npoints);
521 if (sg2d.transformState <= sg2d.TRANSFORM_INT_TRANSLATE) {
527 transx = sg2d.transX;
528 transy = sg2d.transY;
530 p2df = new Path2D.Float(s, sg2d.transform);
534 drawPath(sg2d, p2df, transx, transy);
535 } else if (sg2d.strokeState < sg2d.STROKE_CUSTOM) {
536 ShapeSpanIterator si = LoopPipe.getStrokeSpans(sg2d, s);
538 fillSpans(sg2d, si, 0, 0);
543 fill(sg2d, sg2d.stroke.createStrokedShape(s));
547 public void fill(SunGraphics2D sg2d, Shape s) {
550 if (sg2d.strokeState == sg2d.STROKE_THIN) {
554 if (sg2d.transformState <= sg2d.TRANSFORM_INT_TRANSLATE) {
560 transx = sg2d.transX;
561 transy = sg2d.transY;
563 p2df = new Path2D.Float(s, sg2d.transform);
567 fillPath(sg2d, p2df, transx, transy);
572 if (sg2d.transformState <= sg2d.TRANSFORM_INT_TRANSLATE) {
578 transx = sg2d.transX;
579 transy = sg2d.transY;
582 at = sg2d.transform;
586 ShapeSpanIterator ssi = LoopPipe.getFillSSI(sg2d);
590 Region clip = sg2d.getCompClip();
596 fillSpans(sg2d, ssi, transx, transy);