|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSynchronizedLabelCache
public class SynchronizedLabelCache
Allow multiple thread to modify LabelCache.
Constructor Summary | |
---|---|
SynchronizedLabelCache()
|
|
SynchronizedLabelCache(LabelCacheDefault default1)
|
Method Summary | |
---|---|
void |
clear()
Clears the cache completely |
void |
clear(String layerId)
Clears the cache of all information relating to the layer identified. |
void |
disableLayer(String layerId)
Leaves the label information in the cache but ignores it when calculating what labels are drawn. |
void |
enableLayer(String layerId)
Enable a layer after being disabled. |
void |
end(Graphics2D graphics,
Rectangle displayArea)
Called to indicate that the map is done rendering. |
void |
endLayer(String layerId,
Graphics2D graphics,
Rectangle displayArea)
Called to indicate that a layer is done rendering. |
List |
orderedLabels()
return a list with all the values in priority order. |
void |
put(String layerId,
TextSymbolizer symbolizer,
SimpleFeature feature,
LiteShape2 shape,
NumberRange scaleRange)
Puts a Label in the cache. |
void |
start()
Called by renderer to indicate that the rendering process is starting. |
void |
startLayer(String layerId)
Called by renderer to indication the start of rendering a layer. |
void |
stop()
Tells the cache to stop labelling. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronizedLabelCache()
public SynchronizedLabelCache(LabelCacheDefault default1)
Method Detail |
---|
public void start()
LabelCache
start
in interface LabelCache
public void clear()
LabelCache
clear
in interface LabelCache
public void clear(String layerId)
LabelCache
clear
in interface LabelCache
layerId
- id of the layerpublic void enableLayer(String layerId)
LabelCache
enableLayer
in interface LabelCache
layerId
- layer to activate.public void end(Graphics2D graphics, Rectangle displayArea)
LabelCache
end
in interface LabelCache
graphics
- the graphics to draw on.displayArea
- The size of the display area.public void endLayer(String layerId, Graphics2D graphics, Rectangle displayArea)
LabelCache
endLayer
in interface LabelCache
layerId
- an id for the layergraphics
- the graphics to draw on.displayArea
- The size of the display areapublic void put(String layerId, TextSymbolizer symbolizer, SimpleFeature feature, LiteShape2 shape, NumberRange scaleRange)
LabelCache
put
in interface LabelCache
layerId
- id indicating the layer the feature is part ofsymbolizer
- The symbolizer containing the style informationfeature
- the feature that has the information required for the symbolizer to
calculate the required render information.shape
- the shape to be labeled. This is in screen coordinates.scaleRange
- the scaleRange that the symbolizer is legalpublic void startLayer(String layerId)
LabelCache
startLayer
in interface LabelCache
layerId
- an id for the layerpublic void stop()
LabelCache
stop
in interface LabelCache
public void disableLayer(String layerId)
LabelCache
disableLayer
in interface LabelCache
layerId
- id of the layer to disable.public List orderedLabels()
LabelCache
orderedLabels
in interface LabelCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |