gistoolkit.display.renderer
Class LineRenderer

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

public class LineRenderer
extends SimpleRenderer

Created to render Lines in a single color, default color is black.


Constructor Summary
LineRenderer()
          MonoShader constructor comment.
 
Method Summary
protected  boolean drawLine(java.awt.Graphics inGraphics, LineString inLineString, Converter inConverter)
          Draws the actual line, the draw shape routine calls this routine.
protected  boolean drawLinePoints(java.awt.Graphics inGraphics, LineString inLineString, Converter inConverter)
          Draws the Shapes
 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 "Line 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

LineRenderer

public LineRenderer()
MonoShader constructor comment.

Method Detail

getRendererName

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


drawLine

protected boolean drawLine(java.awt.Graphics inGraphics,
                           LineString inLineString,
                           Converter inConverter)
Draws the actual line, the draw shape routine calls this routine.


drawLinePoints

protected boolean drawLinePoints(java.awt.Graphics inGraphics,
                                 LineString inLineString,
                                 Converter inConverter)
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.