gistoolkit.display.labeler
Class PolygonLabeler

java.lang.Object
  extended bygistoolkit.display.labeler.SimpleLabeler
      extended bygistoolkit.display.labeler.PolygonLabeler
All Implemented Interfaces:
Labeler

public class PolygonLabeler
extends SimpleLabeler

Labeler for drawing polygon labels on the screen.


Field Summary
 
Fields inherited from class gistoolkit.display.labeler.SimpleLabeler
CENTER, EAST, NORTH, SOUTH, WEST
 
Constructor Summary
PolygonLabeler()
          Creates new PolygonLabeler
 
Method Summary
protected  boolean drawLabel(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter)
          Draw the label for the record on the graphics context
 boolean drawLabel(java.lang.String inString, Shape inShape, java.awt.Graphics inGraphics, Converter inConverter, OverlapManager inOverlapManager)
          Draw the label for the record on the graphics context
 java.lang.String getLabelerName()
          The name for this labeler, returns "Polygon Labeler"
 Node getNode()
          get the configuration information for this labeler
 void setNode(Node inNode)
          Set the configuration information for this labeler
 
Methods inherited from class gistoolkit.display.labeler.SimpleLabeler
beginLabel, drawLabel, drawLabelHighlight, drawString, endLabel, getAllowDuplicates, getAllowOverlaps, getBounds, getLabelColumn, getLabelOffset, getLabelOrientation, getLabelPosition, getOverlapManager, getStrings, isDuplicate, isOverLaps, isOverLaps, removeDuplicate, setAllowDuplicates, setAllowOverlaps, setLabelColumn, setLabelOffset, setLabelOrientation, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolygonLabeler

public PolygonLabeler()
Creates new PolygonLabeler

Method Detail

getLabelerName

public java.lang.String getLabelerName()
The name for this labeler, returns "Polygon Labeler"

Specified by:
getLabelerName in interface Labeler
Specified by:
getLabelerName in class SimpleLabeler

drawLabel

protected boolean drawLabel(Record inRecord,
                            java.awt.Graphics inGraphics,
                            Converter inConverter)
Draw the label for the record on the graphics context

Specified by:
drawLabel in class SimpleLabeler

drawLabel

public boolean drawLabel(java.lang.String inString,
                         Shape inShape,
                         java.awt.Graphics inGraphics,
                         Converter inConverter,
                         OverlapManager inOverlapManager)
Draw the label for the record on the graphics context


getNode

public Node getNode()
get the configuration information for this labeler

Specified by:
getNode in interface Labeler
Overrides:
getNode in class SimpleLabeler

setNode

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

Specified by:
setNode in interface Labeler
Overrides:
setNode in class SimpleLabeler
Throws:
java.lang.Exception