gistoolkit.display.renderer
Class FeatureRenderer

java.lang.Object
  extended bygistoolkit.display.renderer.SimpleRenderer
      extended bygistoolkit.display.renderer.FeatureRenderer
All Implemented Interfaces:
Renderer

public class FeatureRenderer
extends SimpleRenderer

General calss for rendering all types of features in the GIS toolkit.


Constructor Summary
FeatureRenderer()
          MonoShader constructor comment.
 
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)
          Draws the line by drawing lines between the points.
 boolean drawShapeHighlight(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
          Draws the Line in the highlight color.
 boolean drawShapePoints(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
          Draws the Shapes
 void endDraw()
          Called after the layer has completed rendering.
 Node getNode()
          Get the configuration information for this renderer
 java.lang.String getRendererName()
          The name for this renderer, always returns "Feature Renderer"
 void load(java.util.Properties inProperties)
          Read the properties for the initialization of the rendere from the properties sent in.
 void setNode(Node inNode)
          Set the configuration information for this renderer
 java.lang.String toString()
          For display in lists and such.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureRenderer

public FeatureRenderer()
MonoShader constructor comment.

Method Detail

getRendererName

public java.lang.String getRendererName()
The name for this renderer, always returns "Feature Renderer"

Specified by:
getRendererName in interface Renderer
Specified by:
getRendererName in class SimpleRenderer

drawShape

public boolean drawShape(Record inRecord,
                         java.awt.Graphics inGraphics,
                         Converter inConverter,
                         Shader inShader)
Draws the line by drawing lines between the points.

Specified by:
drawShape in interface Renderer
Overrides:
drawShape in class SimpleRenderer

drawShapeHighlight

public boolean drawShapeHighlight(Record inRecord,
                                  java.awt.Graphics inGraphics,
                                  Converter inConverter,
                                  Shader inShader)
Draws the Line in the highlight color.

Specified by:
drawShapeHighlight in interface Renderer
Overrides:
drawShapeHighlight in class SimpleRenderer

drawShapePoints

public boolean drawShapePoints(Record inRecord,
                               java.awt.Graphics inGraphics,
                               Converter inConverter,
                               Shader inShader)
Draws the Shapes


load

public void load(java.util.Properties inProperties)
          throws java.lang.Exception
Read the properties for the initialization of the rendere from the properties sent in.

Throws:
java.lang.Exception

getNode

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

Specified by:
getNode in interface Renderer
Overrides:
getNode in class SimpleRenderer

setNode

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

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

toString

public java.lang.String toString()
For display in lists and such.


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
Overrides:
beginDraw in class SimpleRenderer

endDraw

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

Specified by:
endDraw in interface Renderer
Overrides:
endDraw in class SimpleRenderer