public void render ( Graphics2D gfx ) { Component host = _host . getComponent ( ) ; int x = _bounds . x , y = _bounds . y ; if ( _centerLabel != null ) { // render the centerpiece label _centerLabel . paint ( gfx , x + _centerLabel . closedBounds . x , y + _centerLabel . closedBounds . y , this ) ; } // render each of our items in turn int icount = _items . size ( ) ; for ( int i = 0 ; i < icount ; i ++ ) { RadialMenuItem item = _items . get ( i ) ; if ( ! item . isIncluded ( this ) ) { continue ; } // we have to wait and render the active item last if ( item != _activeItem ) { item . render ( host , this , gfx , x + item . closedBounds . x , y + item . closedBounds . y ) ; } } if ( _activeItem != null ) { _activeItem . render ( host , this , gfx , x + _activeItem . closedBounds . x , y + _activeItem . closedBounds . y ) ; } // render our bounds // gfx.setColor(Color.green); // gfx.draw(_bounds); // gfx.setColor(Color.blue); // gfx.draw(_tbounds); }
Renders the current configuration of this menu .