Package org.geotools.renderer
Interface Renderer
-
public interface Renderer
Base interface for renderer. This is very much work in progress. Note: this interface will changes in future versions.- Author:
- James Macgill
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isInteractive()
Getter for property interactive.Coordinate
pixelToWorld(int x, int y, Envelope map)
void
render(FeatureCollection<? extends FeatureType,? extends Feature> fc, Envelope viewport, Style style)
Renders the provided features using the specified style.void
setInteractive(boolean interactive)
Setter for property interactive.void
setOutput(Graphics g, Rectangle r)
sets the output graphics for the renderer and the size of the graphic.
-
-
-
Method Detail
-
render
void render(FeatureCollection<? extends FeatureType,? extends Feature> fc, 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.- Parameters:
fc
- The feature collection to renderviewport
- The visible extent to be renderedstyle
- The style definition to apply to each feature
-
isInteractive
boolean isInteractive()
Getter for property interactive.- Returns:
- Value of property interactive.
-
setInteractive
void setInteractive(boolean interactive)
Setter for property interactive.- Parameters:
interactive
- New value of property interactive.
-
setOutput
void setOutput(Graphics g, Rectangle r)
sets the output graphics for the renderer and the size of the graphic.
-
pixelToWorld
Coordinate pixelToWorld(int x, int y, Envelope map)
-
-