|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.labeler.SimpleLabeler
gistoolkit.display.labeler.FeatureLabeler
Simple Labeler to be extended by more advanced renderers.
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 |
public static final java.lang.String FEATURE_RENDERER_NODE
Constructor Detail |
public FeatureLabeler()
Method Detail |
public java.lang.String getLabelerName()
getLabelerName
in interface Labeler
getLabelerName
in class SimpleLabeler
public void setLabelColumn(int inLabelColumn)
setLabelColumn
in class SimpleLabeler
public void setLabelOffset(int inOffset)
setLabelOffset
in class SimpleLabeler
public void setLabelOrientation(int inOrientation)
setLabelOrientation
in class SimpleLabeler
protected boolean drawLabel(Record inRecord, java.awt.Graphics inGraphics, Converter inConverter)
drawLabel
in class SimpleLabeler
public LabelerPanel getEditPanel()
public Node getNode()
getNode
in interface Labeler
getNode
in class SimpleLabeler
public void setNode(Node inNode) throws java.lang.Exception
setNode
in interface Labeler
setNode
in class SimpleLabeler
java.lang.Exception
public void beginLabel()
beginLabel
in interface Labeler
beginLabel
in class SimpleLabeler
public void endLabel()
endLabel
in interface Labeler
endLabel
in class SimpleLabeler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |