org.geotools.renderer
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.

Version:
$Id: Renderer.java 17703 2006-01-23 00:12:44Z desruisseaux $
Author:
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

interactive

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

render

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.

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

isInteractive

public boolean isInteractive()
Getter for property interactive.

Returns:
Value of property interactive.

setInteractive

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

Parameters:
interactive - New value of property interactive.

setOutput

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


pixelToWorld

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


Copyright © GeoTools. All Rights Reserved.