org.openstreetmap.josm.gui.mappaint
Class AreaElemStyle

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

public class AreaElemStyle
extends ElemStyle


Field Summary
 java.awt.Color color
          If fillImage == null, color is the fill-color, otherwise an arbitrary color value sampled from the fillImage
 MapImage fillImage
           
 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 AreaElemStyle(Cascade c, java.awt.Color color, MapImage fillImage, TextElement text)
           
 
Method Summary
static AreaElemStyle create(Cascade c)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void paintPrimitive(OsmPrimitive osm, 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

color

public java.awt.Color color
If fillImage == null, color is the fill-color, otherwise an arbitrary color value sampled from the fillImage


fillImage

public MapImage fillImage

text

public TextElement text
Constructor Detail

AreaElemStyle

protected AreaElemStyle(Cascade c,
                        java.awt.Color color,
                        MapImage fillImage,
                        TextElement text)
Method Detail

create

public static AreaElemStyle create(Cascade c)

paintPrimitive

public void paintPrimitive(OsmPrimitive osm,
                           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