@ Api public void render ( Paintable paintable , RenderGroup renderGroup , RenderStatus status ) { if ( ! graphics . isReady ( ) || ! mapViewRenderer . isViewPortKnown ( ) || ! mapModelRenderer . isReadyToDraw ( ) ) { return ; } PaintableGroup group = null ; if ( renderGroup != null ) { group = getGroup ( renderGroup ) ; } if ( paintable == null ) { paintable = this . mapModel ; } if ( RenderStatus . DELETE . equals ( status ) ) { List < Painter > painters = painterVisitor . getPaintersForObject ( paintable ) ; if ( painters != null ) { for ( Painter painter : painters ) { painter . deleteShape ( paintable , group , graphics ) ; } } } else { if ( RenderStatus . ALL . equals ( status ) ) { paintable . accept ( painterVisitor , group , mapModel . getMapView ( ) . getBounds ( ) , true ) ; if ( paintable == this . mapModel ) { // Paint the world space paintable objects: for ( WorldPaintable worldPaintable : worldPaintables . values ( ) ) { worldPaintable . transform ( mapModel . getMapView ( ) . getWorldViewTransformer ( ) ) ; worldPaintable . accept ( painterVisitor , getGroup ( RenderGroup . WORLD ) , mapModel . getMapView ( ) . getBounds ( ) , true ) ; } } } else if ( RenderStatus . UPDATE . equals ( status ) ) { if ( paintable == this . mapModel ) { // Paint the world space paintable objects: for ( WorldPaintable worldPaintable : worldPaintables . values ( ) ) { worldPaintable . transform ( mapModel . getMapView ( ) . getWorldViewTransformer ( ) ) ; worldPaintable . accept ( painterVisitor , getGroup ( RenderGroup . WORLD ) , mapModel . getMapView ( ) . getBounds ( ) , false ) ; } } paintable . accept ( painterVisitor , group , mapModel . getMapView ( ) . getBounds ( ) , false ) ; } } }
The main rendering method . Renders some paintable object in the given group using the given status .