gistoolkit.display.labeler
Class FeatureLabeler

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

public class FeatureLabeler
extends SimpleLabeler

Simple Labeler to be extended by more advanced renderers.

Author:
ithaqua

Field Summary
static java.lang.String FEATURE_RENDERER_NODE
          Name for the Feature Renderer for the configuration file.
 
Fields inherited from class gistoolkit.display.labeler.SimpleLabeler
CENTER, EAST, NORTH, SOUTH, WEST
 
Constructor Summary
FeatureLabeler()
          Creates new BasicLabeler
 
Method Summary
 void beginLabel()
          Called before the layer is initially labeled to allow the labeler to prepare for labeling.
protected  boolean drawLabel(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter)
          Draw the label for the record on the graphics context
 void endLabel()
          Called after the layer has completed labeling.
 LabelerPanel getEditPanel()
          Return the edit panel used to edit this labeler
 java.lang.String getLabelerName()
          A name for this labeler, returns "Feature Labeler".
 Node getNode()
          get the configuration information for this labeler
 void setLabelColumn(int inLabelColumn)
          Set the number of the column to label by.
 void setLabelOffset(int inOffset)
          Set the distance from the label point that the label will be placed.
 void setLabelOrientation(int inOrientation)
          Set the orientation of the labels relative to their anchor.
 void setNode(Node inNode)
          Set the configuration information for this labeler
 
Methods inherited from class gistoolkit.display.labeler.SimpleLabeler
drawLabel, drawLabelHighlight, drawString, getAllowDuplicates, getAllowOverlaps, getBounds, getLabelColumn, getLabelOffset, getLabelOrientation, getLabelPosition, getOverlapManager, getStrings, isDuplicate, isOverLaps, isOverLaps, removeDuplicate, setAllowDuplicates, setAllowOverlaps, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FEATURE_RENDERER_NODE

public static final java.lang.String FEATURE_RENDERER_NODE
Name for the Feature Renderer for the configuration file.

See Also:
Constant Field Values
Constructor Detail

FeatureLabeler

public FeatureLabeler()
Creates new BasicLabeler

Method Detail

getLabelerName

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

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

setLabelColumn

public void setLabelColumn(int inLabelColumn)
Set the number of the column to label by.

Overrides:
setLabelColumn in class SimpleLabeler

setLabelOffset

public void setLabelOffset(int inOffset)
Set the distance from the label point that the label will be placed.

Overrides:
setLabelOffset in class SimpleLabeler

setLabelOrientation

public void setLabelOrientation(int inOrientation)
Set the orientation of the labels relative to their anchor.

Overrides:
setLabelOrientation 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

getEditPanel

public LabelerPanel getEditPanel()
Return the edit panel used to edit this labeler


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

beginLabel

public void beginLabel()
Called before the layer is initially labeled to allow the labeler to prepare for labeling.

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

endLabel

public void endLabel()
Called after the layer has completed labeling.

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