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

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

public static class LabelCompositionStrategy.TagLookupCompositionStrategy
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 defaultLabelTag
           
 
Constructor Summary
LabelCompositionStrategy.TagLookupCompositionStrategy(java.lang.String defaultLabelTag)
           
 
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 getDefaultLabelTag()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultLabelTag

private java.lang.String defaultLabelTag
Constructor Detail

LabelCompositionStrategy.TagLookupCompositionStrategy

public LabelCompositionStrategy.TagLookupCompositionStrategy(java.lang.String defaultLabelTag)
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

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