org.openstreetmap.josm.gui.mappaint
Class LinePatternElemStyle

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

public class LinePatternElemStyle
extends ElemStyle

similar to mapnik's LinePatternSymbolizer


Field Summary
 MapImage pattern
           
 
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
LinePatternElemStyle(Cascade c, MapImage pattern)
           
 
Method Summary
static LinePatternElemStyle create(Environment env)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isProperLineStyle()
           
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

pattern

public MapImage pattern
Constructor Detail

LinePatternElemStyle

public LinePatternElemStyle(Cascade c,
                            MapImage pattern)
Method Detail

create

public static LinePatternElemStyle 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

isProperLineStyle

public boolean isProperLineStyle()
Overrides:
isProperLineStyle in class ElemStyle

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