org.openstreetmap.josm.gui.mappaint
Class LineTextElemStyle

java.lang.Object
  extended by org.openstreetmap.josm.gui.mappaint.ElemStyle
      extended by org.openstreetmap.josm.gui.mappaint.LineTextElemStyle
All Implemented Interfaces:
StyleKeys

public class LineTextElemStyle
extends ElemStyle


Field Summary
private  TextElement text
           
 
Fields inherited from class org.openstreetmap.josm.gui.mappaint.ElemStyle
isModifier, major_z_index, object_z_index, z_index
 
Fields inherited from interface org.openstreetmap.josm.gui.mappaint.StyleKeys
COLOR, DASHES, DASHES_BACKGROUND_COLOR, DASHES_BACKGROUND_OPACITY, DASHES_OFFSET, FILL_COLOR, FILL_IMAGE, FILL_OPACITY, ICON_IMAGE, MODIFIER, OBJECT_Z_INDEX, OFFSET, OPACITY, REAL_WIDTH, TEXT, TEXT_POSITION, WIDTH, Z_INDEX
 
Constructor Summary
protected LineTextElemStyle(Cascade c, TextElement text)
           
 
Method Summary
static LineTextElemStyle create(Environment env)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void paintPrimitive(OsmPrimitive primitive, MapPaintSettings paintSettings, MapPainter painter, boolean selected, boolean member)
          draws a primitive
 java.lang.String toString()
           
 
Methods inherited from class org.openstreetmap.josm.gui.mappaint.ElemStyle
getFont, getWidth, isProperLineStyle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

text

private TextElement text
Constructor Detail

LineTextElemStyle

protected LineTextElemStyle(Cascade c,
                            TextElement text)
Method Detail

create

public static LineTextElemStyle create(Environment env)

paintPrimitive

public void paintPrimitive(OsmPrimitive primitive,
                           MapPaintSettings paintSettings,
                           MapPainter painter,
                           boolean selected,
                           boolean member)
Description copied from class: ElemStyle
draws a primitive

Specified by:
paintPrimitive in class ElemStyle
selected - true, if primitive is selected
member - true, if primitive is not selected and member of a selected relation

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ElemStyle

hashCode

public int hashCode()
Overrides:
hashCode in class ElemStyle

toString

public java.lang.String toString()
Overrides:
toString in class ElemStyle


JOSM