org.openstreetmap.josm.gui.mappaint
Class LabelCompositionStrategy.StaticLabelCompositionStrategy
java.lang.Object
org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy
org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy.StaticLabelCompositionStrategy
- Enclosing class:
- LabelCompositionStrategy
public static class LabelCompositionStrategy.StaticLabelCompositionStrategy
- extends LabelCompositionStrategy
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
defaultLabel
private java.lang.String defaultLabel
LabelCompositionStrategy.StaticLabelCompositionStrategy
public LabelCompositionStrategy.StaticLabelCompositionStrategy(java.lang.String defaultLabel)
compose
public java.lang.String compose(OsmPrimitive primitive)
- Description copied from class:
LabelCompositionStrategy
- Replies the text value to be rendered as label for the primitive
primitive
.
- Specified by:
compose
in class LabelCompositionStrategy
- Parameters:
primitive
- the primitive
- Returns:
- the text value to be rendered or null, if primitive is null or
if no suitable value could be composed
getDefaultLabel
public java.lang.String getDefaultLabel()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
JOSM