/** * 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; }