org.openstreetmap.josm.gui.mappaint
Class LabelCompositionStrategy.TagLookupCompositionStrategy
java.lang.Object
org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy
org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy.TagLookupCompositionStrategy
- Enclosing class:
- LabelCompositionStrategy
public static class LabelCompositionStrategy.TagLookupCompositionStrategy
- extends LabelCompositionStrategy
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
defaultLabelTag
private java.lang.String defaultLabelTag
LabelCompositionStrategy.TagLookupCompositionStrategy
public LabelCompositionStrategy.TagLookupCompositionStrategy(java.lang.String defaultLabelTag)
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
getDefaultLabelTag
public java.lang.String getDefaultLabelTag()
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