Class LabelCompositionStrategy.StaticLabelCompositionStrategy
java.lang.Object
org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy.StaticLabelCompositionStrategy
- All Implemented Interfaces:
LabelCompositionStrategy
- Enclosing interface:
- LabelCompositionStrategy
public static class LabelCompositionStrategy.StaticLabelCompositionStrategy
extends Object
implements LabelCompositionStrategy
Strategy where the label is given by a static text specified in the MapCSS style file.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy, LabelCompositionStrategy.StaticLabelCompositionStrategy, LabelCompositionStrategy.TagLookupCompositionStrategy -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompose(IPrimitive primitive) Replies the text value to be rendered as label for the primitiveprimitive.booleaninthashCode()toString()
-
Field Details
-
defaultLabel
-
-
Constructor Details
-
StaticLabelCompositionStrategy
-
-
Method Details
-
compose
Description copied from interface:LabelCompositionStrategyReplies the text value to be rendered as label for the primitiveprimitive.- Specified by:
composein interfaceLabelCompositionStrategy- 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
-
toString
-
hashCode
-
equals
-