org.openstreetmap.josm.gui.mappaint
Class NodeElemStyle
java.lang.Object
org.openstreetmap.josm.gui.mappaint.ElemStyle
org.openstreetmap.josm.gui.mappaint.NodeElemStyle
- All Implemented Interfaces:
- StyleKeys
public class NodeElemStyle
- extends ElemStyle
applies for Nodes and turn restriction relations
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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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
NodeElemStyle
protected NodeElemStyle(Cascade c,
MapImage mapImage,
NodeElemStyle.Symbol symbol,
float default_major_z_index)
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 selectedmember
- 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