123 sg2d.transform.transform(origin, 0, origin, 0, 1);
124 x = (float) origin[0];
125 y = (float) origin[1];
126 } else {
127 x += sg2d.transX; // don't use the glyph info origin, already in gv.
128 y += sg2d.transY;
129 }
130
131 GlyphList gl = GlyphList.getInstance();
132 gl.setFromGlyphVector(info, gv, x, y);
133 drawGlyphList(sg2d, gl, info.aaHint);
134 gl.dispose();
135 }
136
137 protected abstract void drawGlyphList(SunGraphics2D sg2d, GlyphList gl);
138
139 protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl,
140 int aaHint) {
141 drawGlyphList(sg2d, gl);
142 }
143 }
|
123 sg2d.transform.transform(origin, 0, origin, 0, 1);
124 x = (float) origin[0];
125 y = (float) origin[1];
126 } else {
127 x += sg2d.transX; // don't use the glyph info origin, already in gv.
128 y += sg2d.transY;
129 }
130
131 GlyphList gl = GlyphList.getInstance();
132 gl.setFromGlyphVector(info, gv, x, y);
133 drawGlyphList(sg2d, gl, info.aaHint);
134 gl.dispose();
135 }
136
137 protected abstract void drawGlyphList(SunGraphics2D sg2d, GlyphList gl);
138
139 protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl,
140 int aaHint) {
141 drawGlyphList(sg2d, gl);
142 }
143
144 public String toString() {
145 return getClass().getSimpleName();
146 }
147 }
|