|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.renderer.lite.StreamingRenderer
A streaming implementation of the GTRenderer interface.
| Field Summary | |
static org.geotools.renderer.lite.StreamingRenderer.DefaultRenderListener |
DEFAULT_LISTENER
This listener is added to the list of listeners automatically. |
int |
defaultImageType
This is used to control what type of image the system will draw into. |
protected LabelCache |
labelCache
|
java.util.HashMap |
symbolizerAssociationHT
|
| Constructor Summary | |
StreamingRenderer()
Creates a new instance of LiteRenderer without a context. |
|
| Method Summary | |
void |
addRenderListener(RenderListener listener)
adds a listener that responds to error events of feature rendered events. |
MapContext |
getContext()
|
double |
getGeneralizationDistance()
Returns the generalization distance in the screen space. |
java.awt.RenderingHints |
getJava2DHints()
|
java.util.Map |
getRendererHints()
|
void |
paint(java.awt.Graphics2D graphics,
java.awt.Rectangle paintArea,
java.awt.geom.AffineTransform worldToScreen)
Renders features based on the map layers and their styles as specified in the map context using setContext.
|
void |
paint(java.awt.Graphics2D graphics,
java.awt.Rectangle paintArea,
com.vividsolutions.jts.geom.Envelope mapArea)
Renders features based on the map layers and their styles as specified in the map context using setContext.
|
void |
paint(java.awt.Graphics2D graphics,
java.awt.Rectangle paintArea,
com.vividsolutions.jts.geom.Envelope mapArea,
java.awt.geom.AffineTransform worldToScreen)
Renders features based on the map layers and their styles as specified in the map context using setContext.
|
void |
removeRenderListener(RenderListener listener)
Removes a render listener. |
void |
setContext(MapContext context)
|
void |
setJava2DHints(java.awt.RenderingHints hints)
|
void |
setRendererHints(java.util.Map hints)
|
void |
stopRendering()
If you call this method from another thread than the one that called paint or
render the rendering will be forcefully stopped before termination |
protected org.opengis.coverage.SampleDimension |
transformColormap(int band,
org.opengis.coverage.SampleDimension dimension,
java.util.Map[] colorMaps)
Transform the supplied RGB colors. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.HashMap symbolizerAssociationHT
public static final org.geotools.renderer.lite.StreamingRenderer.DefaultRenderListener DEFAULT_LISTENER
public int defaultImageType
protected LabelCache labelCache
| Constructor Detail |
public StreamingRenderer()
| Method Detail |
public void addRenderListener(RenderListener listener)
addRenderListener in interface GTRendererlistener - the listener to add.RenderListenerpublic void removeRenderListener(RenderListener listener)
removeRenderListener in interface GTRendererlistener - the listener to remove.RenderListenerpublic void stopRendering()
paint or
render the rendering will be forcefully stopped before termination
stopRendering in interface GTRenderer
public void paint(java.awt.Graphics2D graphics,
java.awt.Rectangle paintArea,
java.awt.geom.AffineTransform worldToScreen)
setContext.
This version of the method assumes that the size of the output area
and the transformation from coordinates to pixels are known.
The latter determines the map scale. The viewport (the visible
part of the map) will be calculated internally.
paint in interface GTRenderergraphics - The graphics object to draw to.paintArea - The size of the output area in output units (eg: pixels).worldToScreen - A transform which converts World coordinates to Screen coordinates.
public void paint(java.awt.Graphics2D graphics,
java.awt.Rectangle paintArea,
com.vividsolutions.jts.geom.Envelope mapArea)
setContext.
This version of the method assumes that the area of the visible part
of the map and the size of the output area are known. The transform
between the two is calculated internally.
paint in interface GTRenderergraphics - The graphics object to draw to.paintArea - The size of the output area in output units (eg: pixels).
public void paint(java.awt.Graphics2D graphics,
java.awt.Rectangle paintArea,
com.vividsolutions.jts.geom.Envelope mapArea,
java.awt.geom.AffineTransform worldToScreen)
setContext.
This version of the method assumes that paint area, enelope and
worldToScreen transform are already computed. Use this method to
avoid recomputation. Note however that no check is performed that
they are really in sync!
paint in interface GTRenderergraphics - The graphics object to draw to.paintArea - The size of the output area in output units (eg: pixels).worldToScreen - A transform which converts World coordinates to Screen coordinates.
protected org.opengis.coverage.SampleDimension transformColormap(int band,
org.opengis.coverage.SampleDimension dimension,
java.util.Map[] colorMaps)
public double getGeneralizationDistance()
public void setJava2DHints(java.awt.RenderingHints hints)
setJava2DHints in interface GTRendererpublic java.awt.RenderingHints getJava2DHints()
getJava2DHints in interface GTRendererpublic void setRendererHints(java.util.Map hints)
setRendererHints in interface GTRendererpublic java.util.Map getRendererHints()
getRendererHints in interface GTRendererpublic void setContext(MapContext context)
setContext in interface GTRendererpublic MapContext getContext()
getContext in interface GTRenderer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||