org.openstreetmap.josm.gui.mappaint
Class LabelCompositionStrategy.StaticLabelCompositionStrategy

java.lang.Object
  extended by org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy
      extended by org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy.StaticLabelCompositionStrategy
Enclosing class:
LabelCompositionStrategy

public static class LabelCompositionStrategy.StaticLabelCompositionStrategy
extends LabelCompositionStrategy


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy
LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy, LabelCompositionStrategy.StaticLabelCompositionStrategy, LabelCompositionStrategy.TagLookupCompositionStrategy
 
Field Summary
private  java.lang.String defaultLabel
           
 
Constructor Summary
LabelCompositionStrategy.StaticLabelCompositionStrategy(java.lang.String defaultLabel)
           
 
Method Summary
 java.lang.String compose(OsmPrimitive primitive)
          Replies the text value to be rendered as label for the primitive primitive.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDefaultLabel()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultLabel

private java.lang.String defaultLabel
Constructor Detail

LabelCompositionStrategy.StaticLabelCompositionStrategy

public LabelCompositionStrategy.StaticLabelCompositionStrategy(java.lang.String defaultLabel)
Method Detail

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