gistoolkit.display.renderer
Class PointRenderer

java.lang.Object
  extended bygistoolkit.display.renderer.SimpleRenderer
      extended bygistoolkit.display.renderer.PointRenderer
All Implemented Interfaces:
Renderer
Direct Known Subclasses:
PointImageRenderer

public class PointRenderer
extends SimpleRenderer

Created to render Points in a single color.


Constructor Summary
PointRenderer()
          MonoShader constructor comment.
 
Method Summary
protected  boolean drawPoint(java.awt.Graphics inGraphics, Point inPoint, Converter inConverter)
          Draw the point.
protected  boolean drawPointPoints(java.awt.Graphics inGraphics, Point inPoint, Converter inConverter)
          Draw the point.
 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
 Node getNode()
          Get the configuration information for this renderer
 java.lang.String getRendererName()
          The name for this renderer, always returns "Point 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

PointRenderer

public PointRenderer()
MonoShader constructor comment.

Method Detail

getRendererName

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


drawPoint

protected boolean drawPoint(java.awt.Graphics inGraphics,
                            Point inPoint,
                            Converter inConverter)
Draw the point.


drawPointPoints

protected boolean drawPointPoints(java.awt.Graphics inGraphics,
                                  Point inPoint,
                                  Converter inConverter)
Draw the point.


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.