Lines Matching defs:sg2d

47     public void drawString(SunGraphics2D sg2d, String s,
50 FontInfo info = sg2d.getFontInfo();
52 SurfaceData.outlineTextRenderer.drawString(sg2d, s, x, y);
57 if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
59 sg2d.transform.transform(origin, 0, origin, 0, 1);
63 devx = (float)(x + info.originX + sg2d.transX);
64 devy = (float)(y + info.originY + sg2d.transY);
72 drawGlyphList(sg2d, gl);
76 TextLayout tl = new TextLayout(s, sg2d.getFont(),
77 sg2d.getFontRenderContext());
78 tl.draw(sg2d, (float)x, (float)y);
82 public void drawChars(SunGraphics2D sg2d,
86 FontInfo info = sg2d.getFontInfo();
90 sg2d, data, offset, length, ix, iy);
93 if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
95 sg2d.transform.transform(origin, 0, origin, 0, 1);
99 x = ix + info.originX + sg2d.transX;
100 y = iy + info.originY + sg2d.transY;
104 drawGlyphList(sg2d, gl);
109 sg2d.getFont(),
110 sg2d.getFontRenderContext());
111 tl.draw(sg2d, ix, iy);
116 public void drawGlyphVector(SunGraphics2D sg2d, GlyphVector gv,
120 FontInfo info = sg2d.getGVFontInfo(gv.getFont(), frc);
122 SurfaceData.outlineTextRenderer.drawGlyphVector(sg2d, gv, x, y);
125 if (sg2d.transformState >= sg2d.TRANSFORM_TRANSLATESCALE) {
127 sg2d.transform.transform(origin, 0, origin, 0, 1);
131 x += sg2d.transX; // don't use the glyph info origin, already in gv.
132 y += sg2d.transY;
137 drawGlyphList(sg2d, gl, info.aaHint);
141 protected abstract void drawGlyphList(SunGraphics2D sg2d, GlyphList gl);
143 protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl,
145 drawGlyphList(sg2d, gl);