org.openstreetmap.josm.gui.mappaint
Class MultiCascade
java.lang.Object
org.openstreetmap.josm.gui.mappaint.MultiCascade
- All Implemented Interfaces:
- StyleKeys
public class MultiCascade
- extends java.lang.Object
- implements StyleKeys
Several layers / cascades, e.g. one for the main Line and one for each overlay.
The range is (0,Infinity) at first and it shrinks in the process when
StyleSources apply zoom level dependent properties.
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layers
private java.util.Map<java.lang.String,Cascade> layers
range
public Range range
MultiCascade
public MultiCascade()
getOrCreateCascade
public Cascade getOrCreateCascade(java.lang.String layer)
- Return the cascade with the given name. If it doesn't exist, create
a new layer with that name and return it. The new layer will be
a clone of the "*" layer, if it exists.
getCascade
public Cascade getCascade(java.lang.String layer)
- Read-only version of getOrCreateCascade. For convenience, it returns an
empty cascade for non-existing layers. However this empty (read-only) cascade
is not added to this MultiCascade object.
getLayers
public java.util.Collection<java.util.Map.Entry<java.lang.String,Cascade>> getLayers()
hasLayer
public boolean hasLayer(java.lang.String layer)
JOSM