protected void paintIndicators ( Graphics2D gfx , Rectangle clip ) { // make sure the indicators are ready if ( ! _indicatorsLaidOut ) { for ( Map . Entry < SceneObject , SceneObjectIndicator > entry : _indicators . entrySet ( ) ) { SceneObjectIndicator indic = entry . getValue ( ) ; if ( ! indic . isLaidOut ( ) ) { indic . layout ( gfx , entry . getKey ( ) , _vbounds ) ; dirtyIndicator ( indic ) ; } } _indicatorsLaidOut = true ; } if ( checkShowFlag ( SHOW_TIPS ) ) { // show all the indicators for ( SceneObjectIndicator indic : _indicators . values ( ) ) { paintIndicator ( gfx , clip , indic ) ; } } else { // show maybe one indicator SceneObjectIndicator indic = _indicators . get ( _hobject ) ; if ( indic != null ) { paintIndicator ( gfx , clip , indic ) ; } } }
Paint all the appropriate indicators for our scene objects .