question: calculates the dimensions of the text fragment . concode_field_sep Paint paint concode_elem_sep long serialVersionUID concode_elem_sep String text concode_elem_sep LogContext logger concode_elem_sep Font DEFAULT_FONT concode_elem_sep Paint DEFAULT_PAINT concode_elem_sep float baselineOffset concode_elem_sep Font font concode_field_sep float getBaselineOffset concode_elem_sep String getText concode_elem_sep int hashCode concode_elem_sep void writeObject concode_elem_sep boolean equals concode_elem_sep Font getFont concode_elem_sep void draw concode_elem_sep Paint getPaint concode_elem_sep float calculateBaselineOffset concode_elem_sep void readObject
target: Size2D function ( final Graphics2D arg0 ) { final FontMetrics loc0 = arg0 . getFontMetrics ( this . font ) ; final Rectangle2D loc1 = TextUtilities . getTextBounds ( this . text , arg0 , loc0 ) ; final Size2D loc2 = new Size2D ( loc1 . getWidth ( ) , loc1 . getHeight ( ) ) ; return loc2 ; }