info.aduna.gee.spectacle.gee
Class DefaultLabelDispenser
java.lang.Object
info.aduna.gee.spectacle.gee.DefaultLabelDispenser
- All Implemented Interfaces:
- LabelDispenser
public class DefaultLabelDispenser
- extends Object
- implements LabelDispenser
Implementation of the LabelDispenser interface that simply dispenses
sequentially numbered labels, starting at 1.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLabelDispenser
public DefaultLabelDispenser()
- Constructor.
getNewLabel
public String getNewLabel(Object classification)
- Specified by:
getNewLabel in interface LabelDispenser
- Parameters:
classification - the classification to get a label for
- Returns:
- a new label for the specified description
- See Also:
LabelDispenser.getNewLabel(java.lang.Object)
getLabelClassification
public Object getLabelClassification(String label)
- Specified by:
getLabelClassification in interface LabelDispenser
- Parameters:
label - the label to get the classification for
- Returns:
- the classification for the specified label or null when not a valid label
- See Also:
LabelDispenser.getLabelClassification(java.lang.String)
getLabelDescription
public String getLabelDescription(String label)
- Specified by:
getLabelDescription in interface LabelDispenser
- Parameters:
label - the label to get the description for
- Returns:
- the description for the specified label or null when not a valid label
- See Also:
LabelDispenser.getLabelDescription(java.lang.String)
getLabels
public Properties getLabels()
- Specified by:
getLabels in interface LabelDispenser
- Returns:
- the complete mapping of all labels to their descriptions
- See Also:
LabelDispenser.getLabels()
Copyright © 1997-2008 Aduna. All Rights Reserved.