/** * Returns the position to used when drawing a text run after this one. * It takes into account the text path layout if there is one. */ public Point2D getTextPathAdvance() { syncLayout(); if (textPath != null) { return textPathAdvance; } else { return getAdvance2D(); } }
/** * Returns the outline of the completed glyph layout. */ public Shape getOutline() { syncLayout(); return gv.getOutline(); }
/** * Returns the rectangular bounds of the completed glyph layout. */ public Rectangle2D getBounds2D() { syncLayout(); return gv.getBounds2D(aci); }
/** * Returns the rectangular bounds of the completed glyph layout. */ public Rectangle2D getBounds2D() { syncLayout(); return gv.getBounds2D(aci); }
/** * Paints the text layout using the * specified Graphics2D and rendering context. * @param g2d the Graphics2D to use */ public void draw(Graphics2D g2d) { syncLayout(); gv.draw(g2d, aci); }
/** * Returns the outline of the completed glyph layout. */ public Shape getOutline() { syncLayout(); return gv.getOutline(); }
/** * Returns the position to used when drawing a text run after this one. * It takes into account the text path layout if there is one. */ public Point2D getTextPathAdvance() { syncLayout(); if (textPath != null) { return textPathAdvance; } else { return getAdvance2D(); } }
/** * Paints the text layout using the * specified Graphics2D and rendering context. * @param g2d the Graphics2D to use */ public void draw(Graphics2D g2d) { syncLayout(); gv.draw(g2d, aci); }
/** * Paints the text layout using the * specified Graphics2D and rendering context. * @param g2d the Graphics2D to use */ public void draw(Graphics2D g2d) { syncLayout(); gv.draw(g2d, aci); }
/** * Returns the outline of the completed glyph layout. */ public Shape getOutline() { syncLayout(); return gv.getOutline(); }
/** * Returns the rectangular bounds of the completed glyph layout. */ public Rectangle2D getBounds2D() { syncLayout(); return gv.getBounds2D(aci); }
/** * Returns the position to used when drawing a text run after this one. * It takes into account the text path layout if there is one. */ public Point2D getTextPathAdvance() { syncLayout(); if (textPath != null) { return textPathAdvance; } else { return getAdvance2D(); } }
/** * Returns the rectangular bounds of the completed glyph layout, * inclusive of "decoration" (underline, overline, etc.) */ public Rectangle2D getGeometricBounds() { syncLayout(); Rectangle2D gvB, decB; gvB = gv.getGeometricBounds(); decB = getDecorationOutline(DECORATION_ALL).getBounds2D(); return gvB.createUnion(decB); }
/** * Returns the rectangular bounds of the completed glyph layout, * inclusive of "decoration" (underline, overline, etc.) */ public Rectangle2D getGeometricBounds() { syncLayout(); Rectangle2D gvB, decB; gvB = gv.getGeometricBounds(); decB = getDecorationOutline(DECORATION_ALL).getBounds2D(); return gvB.createUnion(decB); }
/** * Returns the rectangular bounds of the completed glyph layout, * inclusive of "decoration" (underline, overline, etc.) */ public Rectangle2D getGeometricBounds() { syncLayout(); Rectangle2D gvB, decB; gvB = gv.getGeometricBounds(); decB = getDecorationOutline(DECORATION_ALL).getBounds2D(); return gvB.createUnion(decB); }
/** * Returns the outline of the specified decorations on the glyphs, * @param decorationType an integer indicating the type(s) of decorations * included in this shape. May be the result of "OR-ing" several * values together: * e.g. <code>DECORATION_UNDERLINE | DECORATION_STRIKETHROUGH</code> */ public Shape getDecorationOutline(int decorationType) { syncLayout(); Shape g = new GeneralPath(); if ((decorationType & DECORATION_UNDERLINE) != 0) { ((GeneralPath) g).append(getUnderlineShape(), false); } if ((decorationType & DECORATION_STRIKETHROUGH) != 0) { ((GeneralPath) g).append(getStrikethroughShape(), false); } if ((decorationType & DECORATION_OVERLINE) != 0) { ((GeneralPath) g).append(getOverlineShape(), false); } return g; }
/** * Returns the outline of the specified decorations on the glyphs, * @param decorationType an integer indicating the type(s) of decorations * included in this shape. May be the result of "OR-ing" several * values together: * e.g. <code>DECORATION_UNDERLINE | DECORATION_STRIKETHROUGH</code> */ public Shape getDecorationOutline(int decorationType) { syncLayout(); Shape g = new GeneralPath(); if ((decorationType & DECORATION_UNDERLINE) != 0) { ((GeneralPath) g).append(getUnderlineShape(), false); } if ((decorationType & DECORATION_STRIKETHROUGH) != 0) { ((GeneralPath) g).append(getStrikethroughShape(), false); } if ((decorationType & DECORATION_OVERLINE) != 0) { ((GeneralPath) g).append(getOverlineShape(), false); } return g; }
/** * Returns the outline of the specified decorations on the glyphs, * @param decorationType an integer indicating the type(s) of decorations * included in this shape. May be the result of "OR-ing" several * values together: * e.g. <code>DECORATION_UNDERLINE | DECORATION_STRIKETHROUGH</code> */ public Shape getDecorationOutline(int decorationType) { syncLayout(); Shape g = new GeneralPath(); if ((decorationType & DECORATION_UNDERLINE) != 0) { ((GeneralPath) g).append(getUnderlineShape(), false); } if ((decorationType & DECORATION_STRIKETHROUGH) != 0) { ((GeneralPath) g).append(getStrikethroughShape(), false); } if ((decorationType & DECORATION_OVERLINE) != 0) { ((GeneralPath) g).append(getOverlineShape(), false); } return g; }