/** * Sets the transform of the specified glyph within this GlyphVector. */ public void setGlyphTransform(int glyphIndex, AffineTransform newTX) { int idx = getGVIdx(glyphIndex); gvs[idx].setGlyphTransform(glyphIndex-off[idx], newTX); }
/** * Sets the position of the specified glyph within this GlyphVector. */ public void setGlyphPosition(int glyphIndex, Point2D newPos) { int idx = getGVIdx(glyphIndex); // System.out.println("setting: " + idx + " - " + (glyphIndex-off[idx]) + // " -> " + newPos); gvs[idx].setGlyphPosition(glyphIndex-off[idx], newPos); }
/** * Returns the logical bounds of the specified glyph within this * GlyphVector. */ public Shape getGlyphLogicalBounds(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphLogicalBounds(glyphIndex-off[idx]); }
protected void updateLineMetrics(int end) { GVTLineMetrics glm = font.getLineMetrics (aci, fontStart, end, frc); float ascent = glm.getAscent(); float descent = glm.getDescent(); float fontSz = font.getSize(); if (ascent > maxAscent) maxAscent = ascent; if (descent > maxDescent) maxDescent = descent; if (fontSz > maxFontSize) maxFontSize = fontSz; }
/** * Returns the position of the specified glyph within this GlyphVector. */ public Point2D getGlyphPosition(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphPosition(glyphIndex-off[idx]); }
/** * Gets the transform of the specified glyph within this GlyphVector. */ public AffineTransform getGlyphTransform(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphTransform(glyphIndex-off[idx]); }
/** * Returns the visual bounds of the specified glyph within the GlyphVector. */ public Shape getGlyphVisualBounds(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphVisualBounds(glyphIndex-off[idx]); }
/** * Tells the glyph vector whether or not to draw the specified glyph. */ public void setGlyphVisible(int glyphIndex, boolean visible) { int idx = getGVIdx(glyphIndex); gvs[idx].setGlyphVisible(glyphIndex-off[idx], visible); }
/** * Returns true if specified glyph will be drawn. */ public boolean isGlyphVisible(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].isGlyphVisible(glyphIndex-off[idx]); }
/** * Returns the metrics of the glyph at the specified index into this * GlyphVector. */ public GVTGlyphMetrics getGlyphMetrics(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphMetrics(glyphIndex-off[idx]); }
/** * Returns a Shape whose interior corresponds to the visual representation * of the specified glyph within this GlyphVector. */ public Shape getGlyphOutline(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphOutline(glyphIndex-off[idx]); }
/** * Returns the glyphcode of the specified glyph. */ public int getGlyphCode(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphCode(glyphIndex-off[idx]); }
/** * Returns the justification information for the glyph at the specified * index into this GlyphVector. */ public GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphJustificationInfo(glyphIndex-off[idx]); }
protected void updateLineMetrics(int end) { GVTLineMetrics glm = font.getLineMetrics (aci, fontStart, end, frc); float ascent = glm.getAscent(); float descent = glm.getDescent(); float fontSz = font.getSize(); if (ascent > maxAscent) maxAscent = ascent; if (descent > maxDescent) maxDescent = descent; if (fontSz > maxFontSize) maxFontSize = fontSz; }
/** * Gets the transform of the specified glyph within this GlyphVector. */ public AffineTransform getGlyphTransform(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphTransform(glyphIndex-off[idx]); }
/** * Sets the position of the specified glyph within this GlyphVector. */ public void setGlyphPosition(int glyphIndex, Point2D newPos) { int idx = getGVIdx(glyphIndex); // System.out.println("setting: " + idx + " - " + (glyphIndex-off[idx]) + // " -> " + newPos); gvs[idx].setGlyphPosition(glyphIndex-off[idx], newPos); }
/** * Returns the logical bounds of the specified glyph within this * GlyphVector. */ public Shape getGlyphLogicalBounds(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphLogicalBounds(glyphIndex-off[idx]); }
/** * Returns true if specified glyph will be drawn. */ public boolean isGlyphVisible(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].isGlyphVisible(glyphIndex-off[idx]); }
/** * Returns the metrics of the glyph at the specified index into this * GlyphVector. */ public GVTGlyphMetrics getGlyphMetrics(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphMetrics(glyphIndex-off[idx]); }
/** * Gets the transform of the specified glyph within this GlyphVector. */ public AffineTransform getGlyphTransform(int glyphIndex) { int idx = getGVIdx(glyphIndex); return gvs[idx].getGlyphTransform(glyphIndex-off[idx]); }