org.geotools.renderer.lite
Interface LabelCache

All Known Implementing Classes:
LabelCacheDefault

public interface LabelCache

An interface for a label cache.

Since:
0.9.0
Author:
jeichar

Method Summary
 void end(java.awt.Graphics2D graphics, java.awt.Rectangle displayArea)
          Called to indicate that the map is done rendering.
 void endLayer(java.awt.Graphics2D graphics, java.awt.Rectangle displayArea)
          Called to indicate that a layer is done rendering.
 void put(TextSymbolizer symbolizer, Feature feature, LiteShape2 shape, javax.media.jai.util.Range scaleRange)
          Puts a TextStyle and its associated shape in the cache.
 void start()
          Called by renderer to indicate that the rendering process is starting.
 void startLayer()
          Called by renderer to indication the start of rendering a layer.
 void stop()
          Tells the cache to stop labelling.
 

Method Detail

start

public void start()
Called by renderer to indicate that the rendering process is starting.


startLayer

public void startLayer()
Called by renderer to indication the start of rendering a layer.


put

public void put(TextSymbolizer symbolizer,
                Feature feature,
                LiteShape2 shape,
                javax.media.jai.util.Range scaleRange)
Puts a TextStyle and its associated shape in the cache.

Parameters:
shape - the shape to be labeled

endLayer

public void endLayer(java.awt.Graphics2D graphics,
                     java.awt.Rectangle displayArea)
Called to indicate that a layer is done rendering. The method may draw labels if appropriate for the labeling algorithm

Parameters:
graphics - the graphics to draw on.
displayArea - The size of the display area.

end

public void end(java.awt.Graphics2D graphics,
                java.awt.Rectangle displayArea)
Called to indicate that the map is done rendering. The method may draw labels if appropriate for the labeling algorithm

Parameters:
graphics - the graphics to draw on.
displayArea - The size of the display area.

stop

public void stop()
Tells the cache to stop labelling.



Copyright © GeoTools. All Rights Reserved.