|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.renderer.j2d.Renderer org.geotools.renderer.j2d.StyledMapRenderer
A renderer for rendering . This renderer
listen for and invokes RenderedLayer.repaint()
automatically on changes.
Field Summary |
Fields inherited from class org.geotools.renderer.j2d.Renderer |
hints, listeners |
Constructor Summary | |
StyledMapRenderer(java.awt.Component owner)
Construct a new renderer for the specified component. |
|
StyledMapRenderer(java.awt.Component owner,
RenderedLayerFactory factory)
Construct a new renderer using the specified factory. |
Method Summary | |
protected void |
addLayer(MapLayer layer)
Add a layer to this renderer. |
void |
insertLayer(MapLayer layer,
int position)
Add a layer to this renderer. |
void |
removeAllLayers()
Remove all layers from this renderer. |
void |
removeLayer(MapLayer layer)
Remove a layer from this renderer. |
void |
setMapContext(MapContext mapContext)
Set a new context as the current one. |
Methods inherited from class org.geotools.renderer.j2d.Renderer |
addLayer, addPropertyChangeListener, addPropertyChangeListener, dispose, getAction, getCoordinateSystem, getLayerCount, getLayers, getLocale, getName, getOffscreenBuffered, getPreferredArea, getPreferredPixelSize, getRenderingHint, getScale, getToolTipText, paint, paint, paint, removeLayer, removePropertyChangeListener, removePropertyChangeListener, setCoordinateSystem, setOffscreenBuffered, setRenderingHint, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StyledMapRenderer(java.awt.Component owner)
owner
- The widget that own this renderer, or null
if none.public StyledMapRenderer(java.awt.Component owner, RenderedLayerFactory factory)
owner
- The widget that own this renderer, or null
if none.factory
- DOCUMENT ME!Method Detail |
public void setMapContext(MapContext mapContext) throws org.opengis.referencing.operation.TransformException, java.io.IOException, IllegalAttributeException
mapContext
- The new context, ornull
for removing any previous context.
org.opengis.referencing.operation.TransformException
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!protected void addLayer(MapLayer layer) throws org.opengis.referencing.operation.TransformException, java.io.IOException, IllegalAttributeException
Layer
may be converted into an arbitrary
amount of RenderedLayer
s. Those rendered layers will have values as 4.0, 4.1, 4.2, etc. where 4 is the layer number,
and .0, .1, .2... is the rendered layer number for this particular layer.
layer
- The layer to add.
org.opengis.referencing.operation.TransformException
- if some feature in the layer use an incompatible coordinate
system.
java.io.IOException
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!
java.lang.AssertionError
- DOCUMENT ME!public void insertLayer(MapLayer layer, int position) throws org.opengis.referencing.operation.TransformException, java.io.IOException, IllegalAttributeException
Layer
may be converted into an arbitrary
amount of RenderedLayer
s. Those rendered layers will have values as 4.0, 4.1, 4.2, etc. where 4 is the layer number,
and .0, .1, .2... is the rendered layer number for this particular layer.
layer
- The layer to add.position
- DOCUMENT ME!
org.opengis.referencing.operation.TransformException
- if some feature in the layer use an incompatible coordinate
system.
java.io.IOException
- DOCUMENT ME!
IllegalAttributeException
- DOCUMENT ME!
java.lang.AssertionError
- DOCUMENT ME!public void removeLayer(MapLayer layer)
null
or not found in this renderer.
layer
- The layer to remove.public void removeAllLayers()
removeAllLayers
in class Renderer
Renderer.addLayer(org.geotools.renderer.j2d.RenderedLayer)
,
Renderer.removeLayer(org.geotools.renderer.j2d.RenderedLayer)
,
Renderer.getLayers()
,
Renderer.getLayerCount()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |