gistoolkit.display.renderer
Class PolygonRenderer

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

public class PolygonRenderer
extends SimpleRenderer

Created to render shapes in a single colors, default colors are black border, no fill.


Constructor Summary
PolygonRenderer()
          MonoShader constructor comment.
 
Method Summary
 boolean drawShape(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
          Draws the Shapes
 boolean drawShapeHighlight(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
          Draws the Shapes
 boolean drawShapePoints(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
          Draws the Shapes
 Node getNode()
          Get the configuration information for this renderer
 java.lang.String getRendererName()
          The name for this renderer, always returns "Polygon 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 gistoolkit.display.renderer.SimpleRenderer
beginDraw, endDraw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolygonRenderer

public PolygonRenderer()
MonoShader constructor comment.

Method Detail

getRendererName

public java.lang.String getRendererName()
The name for this renderer, always returns "Polygon 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 Shapes

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 Shapes

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.