| org.geotools.renderer.GTRenderer
All known Subclasses: org.geotools.renderer.lite.StreamingRenderer, org.geotools.renderer.shape.ShapefileRenderer,
GTRenderer | public interface GTRenderer (Code) | | Typical usage:
Rectangle paintArea = new Rectangle(width, height);
Envelope mapArea = map.getAreaOfInterest();
renderer = new StreamingRenderer();
renderer.setContext(map);
RenderingHints hints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
renderer.setJava2DHints(hints);
Map rendererParams = new HashMap();
rendererParams.put("optimizedDataLoadingEnabled",new Boolean(true) );
renderer.paint(graphic, paintArea, mapArea);
author: David Blasby author: Simone Giannecchini |
Method Summary | |
public void | addRenderListener(RenderListener listener) | public MapContext | getContext() | public RenderingHints | getJava2DHints() | public Map | getRendererHints() | public void | paint(Graphics2D graphics, Rectangle paintArea, AffineTransform worldToScreen) Renders features based on the map layers and their styles as specified
in the map context using 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. | public void | paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea) Renders features based on the map layers and their styles as specified
in the map context using 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. | public void | paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea) Renders features based on the map layers and their styles as specified in
the map context using setContext . | public void | paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea, AffineTransform worldToScreen) Renders features based on the map layers and their styles as specified
in the map context using setContext .
This version of the method assumes that paint area, enelope and
worldToScreen transform are already computed and in sync. | public void | paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea, AffineTransform worldToScreen) Renders features based on the map layers and their styles as specified in
the map context using setContext . | public void | removeRenderListener(RenderListener listener) | public void | setContext(MapContext context) | public void | setJava2DHints(RenderingHints hints) | public void | setRendererHints(Map hints) | public void | stopRendering() |
getRendererHints | public Map getRendererHints()(Code) | | |
paint | public void paint(Graphics2D graphics, Rectangle paintArea, AffineTransform worldToScreen)(Code) | | Renders features based on the map layers and their styles as specified
in the map context using 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.
Parameters: graphics - The graphics object to draw to. Parameters: paintArea - The size of the output area in output units (eg: pixels). Parameters: worldToScreen - A transform which converts World coordinates to Screen coordinates. |
paint | public void paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea)(Code) | | Renders features based on the map layers and their styles as specified
in the map context using 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.
Parameters: graphics - The graphics object to draw to. Parameters: paintArea - The size of the output area in output units (eg: pixels). Parameters: mapArea - the map's visible area (viewport) in map coordinates. |
paint | public void paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea)(Code) | | Renders features based on the map layers and their styles as specified in
the map context using 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.
Parameters: graphics - The graphics object to draw to. Parameters: paintArea - The size of the output area in output units (eg: pixels). Parameters: mapArea - the map's visible area (viewport) in map coordinates. |
paint | public void paint(Graphics2D graphics, Rectangle paintArea, Envelope mapArea, AffineTransform worldToScreen)(Code) | | Renders features based on the map layers and their styles as specified
in the map context using setContext .
This version of the method assumes that paint area, enelope and
worldToScreen transform are already computed and in sync. Use this method
to avoid recomputation. Note however that no check is performed that
they are really synchronized!
Parameters: graphics - The graphics object to draw to. Parameters: paintArea - The size of the output area in output units (eg: pixels). Parameters: mapArea - the map's visible area (viewport) in map coordinates. Parameters: worldToScreen - A transform which converts World coordinates to Screen coordinates. |
paint | public void paint(Graphics2D graphics, Rectangle paintArea, ReferencedEnvelope mapArea, AffineTransform worldToScreen)(Code) | | Renders features based on the map layers and their styles as specified in
the map context using setContext . This version of
the method assumes that paint area, enelope and worldToScreen transform
are already computed and in sync. Use this method to avoid recomputation.
Note however that no check is performed that they are really
synchronized!
Parameters: graphics - The graphics object to draw to. Parameters: paintArea - The size of the output area in output units (eg: pixels). Parameters: mapArea - the map's visible area (viewport) in map coordinates. Parameters: worldToScreen - A transform which converts World coordinates to Screencoordinates. |
setRendererHints | public void setRendererHints(Map hints)(Code) | | |
stopRendering | public void stopRendering()(Code) | | |
|
|