/** * Returns the geometric bounds of this GlyphVector. The geometric * bounds is the bounds of the geometry of the glyph vector, * disregarding stroking. */ public Rectangle2D getGeometricBounds() { Rectangle2D ret = null; for (GVTGlyphVector gv : gvs) { Rectangle2D b = gv.getGeometricBounds(); if (ret == null) ret = b; //else ret = ret.createUnion(b); else ret.add(b); } return ret; }
/** * Returns the geometric bounds of this GlyphVector. The geometric * bounds is the bounds of the geometry of the glyph vector, * disregarding stroking. */ public Rectangle2D getGeometricBounds() { Rectangle2D ret = null; for (GVTGlyphVector gv : gvs) { Rectangle2D b = gv.getGeometricBounds(); if (ret == null) ret = b; //else ret = ret.createUnion(b); else ret.add(b); } return ret; }
/** * Returns the geometric bounds of this GlyphVector. The geometric * bounds is the bounds of the geometry of the glyph vector, * disregarding stroking. */ public Rectangle2D getGeometricBounds() { Rectangle2D ret = null; for (int idx=0; idx<gvs.length; idx++) { Rectangle2D b = gvs[idx].getGeometricBounds(); if (ret == null) ret = b; //else ret = ret.createUnion(b); else ret.add(b); } return ret; }
/** * 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); }