Lines Matching refs:sg2d

77     public void drawLine(SunGraphics2D sg2d,
80 if (!drawGeneralLine(sg2d, x1, y1, x2, y2)) {
81 super.drawLine(sg2d, x1, y1, x2, y2);
85 public void drawRect(SunGraphics2D sg2d,
89 if (sg2d.strokeState < SunGraphics2D.STROKE_CUSTOM) {
90 BasicStroke bs = ((BasicStroke) sg2d.stroke);
96 drawRectangle(sg2d, x, y, w, h, lw);
103 drawLine(sg2d, x, y, x+w, y+h);
107 super.drawRect(sg2d, x, y, w, h);
111 public void fillRect(SunGraphics2D sg2d,
115 fillRectangle(sg2d, x, y, w, h);
119 public void draw(SunGraphics2D sg2d, Shape s) {
120 if (sg2d.strokeState < SunGraphics2D.STROKE_CUSTOM) {
121 BasicStroke bs = ((BasicStroke) sg2d.stroke);
133 drawRectangle(sg2d, x, y, w, h, lw);
139 if (drawGeneralLine(sg2d,
148 outpipe.draw(sg2d, s);
151 public void fill(SunGraphics2D sg2d, Shape s) {
159 fillRectangle(sg2d, x, y, w, h);
164 outpipe.fill(sg2d, s);
177 public boolean drawGeneralLine(SunGraphics2D sg2d,
181 if (sg2d.strokeState == SunGraphics2D.STROKE_CUSTOM ||
182 sg2d.strokeState == SunGraphics2D.STROKE_THINDASHED)
186 BasicStroke bs = (BasicStroke) sg2d.stroke;
200 switch (sg2d.transformState) {
205 sg2d.transform.transform(coords, 0, coords, 0, 2);
215 double tx = sg2d.transform.getTranslateX();
216 double ty = sg2d.transform.getTranslateY();
232 if (sg2d.strokeHint != SunHints.INTVAL_STROKE_PURE) {
233 if (sg2d.strokeState == SunGraphics2D.STROKE_THIN &&
236 // PixelDrawPipes will add sg2d.transXY so we need to factor
238 int ix1 = (int) Math.floor(x1 - sg2d.transX);
239 int iy1 = (int) Math.floor(y1 - sg2d.transY);
240 int ix2 = (int) Math.floor(x2 - sg2d.transX);
241 int iy2 = (int) Math.floor(y2 - sg2d.transY);
242 ((PixelDrawPipe)outrenderer).drawLine(sg2d, ix1, iy1, ix2, iy2);
250 if (sg2d.transformState >= SunGraphics2D.TRANSFORM_TRANSLATESCALE) {
261 sg2d.transform.deltaTransform(unitvector, 0, unitvector, 0, 1);
287 outrenderer.fillParallelogram(sg2d, ux1, uy1, ux2, uy2,
292 public void fillRectangle(SunGraphics2D sg2d,
298 AffineTransform txform = sg2d.transform;
310 sg2d.strokeState < SunGraphics2D.STROKE_CUSTOM &&
311 sg2d.strokeHint != SunHints.INTVAL_STROKE_PURE)
322 outrenderer.fillParallelogram(sg2d, rx, ry, rx+rw, ry+rh,
326 public void drawRectangle(SunGraphics2D sg2d,
334 AffineTransform txform = sg2d.transform;
349 if (sg2d.strokeState < SunGraphics2D.STROKE_CUSTOM &&
350 sg2d.strokeHint != SunHints.INTVAL_STROKE_PURE)
369 fillOuterParallelogram(sg2d,
374 outrenderer.drawParallelogram(sg2d,
388 public void fillOuterParallelogram(SunGraphics2D sg2d,
426 outrenderer.fillParallelogram(sg2d, ux1, uy1, ux2, uy2,