Interface Renderer

All Known Implementing Classes:
LiteRenderer, LiteRenderer2

public interface Renderer

Base interface for renderer. This is very much work in progress. Note: this interface will changes in future versions.

$Id: 17703 2006-01-23 00:12:44Z desruisseaux $
James Macgill

Field Summary
static boolean interactive
          Deprecated. This flag should not be there.
Method Summary
 boolean isInteractive()
          Getter for property interactive.
 com.vividsolutions.jts.geom.Coordinate pixelToWorld(int x, int y, com.vividsolutions.jts.geom.Envelope map)
 void render(FeatureCollection fc, com.vividsolutions.jts.geom.Envelope viewport, Style style)
          Renders the provided features using the specified style.
 void setInteractive(boolean interactive)
          Setter for property interactive.
 void setOutput(java.awt.Graphics g, java.awt.Rectangle r)
          sets the output graphics for the renderer and the size of the graphic.

Field Detail


public static final boolean interactive
Deprecated. This flag should not be there.

Flag which determines if the renderer is interactive or not. An interactive renderer will return rather than waiting for time consuming operations to complete (e.g. Image Loading). A non-interactive renderer (e.g. a SVG or PDF renderer) will block for these operations.

See Also:
Constant Field Values
Method Detail


public void render(FeatureCollection fc,
                   com.vividsolutions.jts.geom.Envelope viewport,
                   Style style)
Renders the provided features using the specified style. The features should fill the viewport but may well extend beyond it. Features should be cropped (if appropriate) to the specified viewport.

fc - The feature collection to render
viewport - The visible extent to be rendered
style - The style definition to apply to each feature


public boolean isInteractive()
Getter for property interactive.

Value of property interactive.


public void setInteractive(boolean interactive)
Setter for property interactive.

interactive - New value of property interactive.


public void setOutput(java.awt.Graphics g,
                      java.awt.Rectangle r)
sets the output graphics for the renderer and the size of the graphic.


public com.vividsolutions.jts.geom.Coordinate pixelToWorld(int x,
                                                           int y,
                                                           com.vividsolutions.jts.geom.Envelope map)

Copyright © GeoTools. All Rights Reserved.