gistoolkit.display.renderer
Class SimpleRenderer

java.lang.Object
  extended bygistoolkit.display.renderer.SimpleRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
FeatureRenderer, LineRenderer, MultiLineRenderer, MultiPointRenderer, MultiPolygonRenderer, PointRenderer, PolygonRenderer, RasterRenderer

public abstract class SimpleRenderer
extends java.lang.Object
implements Renderer

Author:
ithaqua

Constructor Summary
SimpleRenderer()
           
 
Method Summary
 void beginDraw()
          Called before the layer is initially drawn to allow the renderer to prepare for rendering.
 boolean drawShape(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
          Draw the shape.
 boolean drawShapeHighlight(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
          Highlight the shape.
 void endDraw()
          Called after the layer has completed rendering.
 Node getNode()
          Get the configuration information for this renderer
abstract  java.lang.String getRendererName()
          Returns a descriptive name for this renderer.
 void setNode(Node inNode)
          Set the configuration information for this renderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRenderer

public SimpleRenderer()
Method Detail

beginDraw

public void beginDraw()
Called before the layer is initially drawn to allow the renderer to prepare for rendering.

Specified by:
beginDraw in interface Renderer

drawShape

public boolean drawShape(Record inRecord,
                         java.awt.Graphics inGraphics,
                         Converter inConverter,
                         Shader inShader)
Draw the shape. The renderer should return true if it successfully drew the shape, and false if it did not.

Specified by:
drawShape in interface Renderer

drawShapeHighlight

public boolean drawShapeHighlight(Record inRecord,
                                  java.awt.Graphics inGraphics,
                                  Converter inConverter,
                                  Shader inShader)
Highlight the shape. The renderer should return true if it successfully drew the shape, and false if it did not.

Specified by:
drawShapeHighlight in interface Renderer

endDraw

public void endDraw()
Called after the layer has completed rendering.

Specified by:
endDraw in interface Renderer

getNode

public Node getNode()
Get the configuration information for this renderer

Specified by:
getNode in interface Renderer

getRendererName

public abstract java.lang.String getRendererName()
Returns a descriptive name for this renderer.

Specified by:
getRendererName in interface Renderer

setNode

public void setNode(Node inNode)
             throws java.lang.Exception
Set the configuration information for this renderer

Specified by:
setNode in interface Renderer
Throws:
java.lang.Exception