gistoolkit.display.renderer
Class RasterRenderer

java.lang.Object
  extended bygistoolkit.display.renderer.SimpleRenderer
      extended bygistoolkit.display.renderer.RasterRenderer
All Implemented Interfaces:
java.awt.image.ImageObserver, Renderer

public class RasterRenderer
extends SimpleRenderer
implements java.awt.image.ImageObserver

Created to render rastor images on the screen, typically used for imagery.


Field Summary
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
RasterRenderer()
          Creates new RastorRenderer
 
Method Summary
 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.
 boolean drawShapePoints(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter, Shader inShader)
           
 Node getNode()
          Get the configuration information for this renderer
 java.lang.String getRendererName()
          The name for this renderer, always returns "Raster Renderer"
 boolean imageUpdate(java.awt.Image p1, int p2, int p3, int p4, int p5, int p6)
          I am really hoping that this never gets called
 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

RasterRenderer

public RasterRenderer()
Creates new RastorRenderer

Method Detail

getRendererName

public java.lang.String getRendererName()
The name for this renderer, always returns "Raster 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)
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
Overrides:
drawShape in class SimpleRenderer

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

drawShapePoints

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

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

imageUpdate

public boolean imageUpdate(java.awt.Image p1,
                           int p2,
                           int p3,
                           int p4,
                           int p5,
                           int p6)
I am really hoping that this never gets called

Specified by:
imageUpdate in interface java.awt.image.ImageObserver

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.