org.openstreetmap.josm.gui.mappaint
Class NodeElemStyle

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

public class NodeElemStyle
extends ElemStyle

applies for Nodes and turn restriction relations


Nested Class Summary
static class NodeElemStyle.Symbol
           
static class NodeElemStyle.SymbolShape
           
 
Field Summary
static StyleCache.StyleList DEFAULT_NODE_STYLELIST
           
static StyleCache.StyleList DEFAULT_NODE_STYLELIST_TEXT
           
 MapImage mapImage
           
static NodeElemStyle SIMPLE_NODE_ELEMSTYLE
           
 NodeElemStyle.Symbol symbol
           
 
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 NodeElemStyle(Cascade c, MapImage mapImage, NodeElemStyle.Symbol symbol, float default_major_z_index)
           
 
Method Summary
static NodeElemStyle create(Environment env)
           
private static NodeElemStyle create(Environment env, float default_major_z_index, boolean allowDefault)
           
private static MapImage createIcon(Environment env)
           
private static NodeElemStyle.Symbol createSymbol(Environment env)
           
 boolean equals(java.lang.Object obj)
           
 BoxTextElemStyle.BoxProvider getBoxProvider()
           
 int hashCode()
           
 void paintPrimitive(OsmPrimitive primitive, MapPaintSettings settings, 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

mapImage

public MapImage mapImage

symbol

public NodeElemStyle.Symbol symbol

SIMPLE_NODE_ELEMSTYLE

public static final NodeElemStyle SIMPLE_NODE_ELEMSTYLE

DEFAULT_NODE_STYLELIST

public static final StyleCache.StyleList DEFAULT_NODE_STYLELIST

DEFAULT_NODE_STYLELIST_TEXT

public static final StyleCache.StyleList DEFAULT_NODE_STYLELIST_TEXT
Constructor Detail

NodeElemStyle

protected NodeElemStyle(Cascade c,
                        MapImage mapImage,
                        NodeElemStyle.Symbol symbol,
                        float default_major_z_index)
Method Detail

create

public static NodeElemStyle create(Environment env)

create

private static NodeElemStyle create(Environment env,
                                    float default_major_z_index,
                                    boolean allowDefault)

createIcon

private static MapImage createIcon(Environment env)

createSymbol

private static NodeElemStyle.Symbol createSymbol(Environment env)

paintPrimitive

public void paintPrimitive(OsmPrimitive primitive,
                           MapPaintSettings settings,
                           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

getBoxProvider

public BoxTextElemStyle.BoxProvider getBoxProvider()

hashCode

public int hashCode()
Overrides:
hashCode in class ElemStyle

equals

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

toString

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


JOSM