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.

Version:
$Id: Renderer.java 30649 2008-06-12 19:44:08Z acuster $
Author:
James Macgill

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<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> 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.
 

Method Detail

render

void render(FeatureCollection<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> 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

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(java.awt.Graphics g,
               java.awt.Rectangle r)
sets the output graphics for the renderer and the size of the graphic.


pixelToWorld

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


Copyright © 1996-2010 Geotools. All Rights Reserved.