returns the bounds of an aligned string . concode_field_sep PlaceHolder placeHolder concode_field_sep Rectangle2D drawAlignedString concode_elem_sep Rectangle2D getTextBounds concode_elem_sep Rectangle2D getTextBounds concode_elem_sep float[] deriveTextBoundsAnchorOffsets concode_elem_sep float[] deriveTextBoundsAnchorOffsets
Rectangle2D function ( String arg0 , Graphics2D arg1 , float arg2 , float arg3 , TextAnchor arg4 ) { Rectangle2D loc0 = new Rectangle2D . Double ( ) ; float [ ] loc1 = deriveTextBoundsAnchorOffsets ( arg1 , arg0 , arg4 , loc0 ) ; loc0 . setRect ( arg2 + loc1 [ 0 ] , arg3 + loc1 [ 1 ] + loc1 [ 2 ] , loc0 . getWidth ( ) , loc0 . getHeight ( ) ) ; return loc0 ; }