public void layout ( Graphics2D gfx , Font font ) { _label . setFont ( font ) ; layout ( gfx , BORDER_THICKNESS ) ; openBounds . width = _size . width ; openBounds . height = _size . height ; // and closed up, we're just a circle closedBounds . height = closedBounds . width = _size . height ; }
Computes the dimensions of this label based on the specified font and in the specified graphics context .