|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.mappaint.Environment
public class Environment
Field Summary | |
---|---|
OsmPrimitive |
child
The same for parent selector. |
private Condition.Context |
context
|
java.lang.Integer |
index
index of node in parent way or member in parent relation. |
java.lang.String |
layer
|
MultiCascade |
mc
|
OsmPrimitive |
osm
|
OsmPrimitive |
parent
If not null, this is the matching parent object if an condition or an expression is evaluated in a Selector.LinkSelector (within a child selector) |
StyleSource |
source
|
Constructor Summary | |
---|---|
Environment()
Creates a new uninitialized environment |
|
Environment(Environment other)
Creates a clone of the environment other |
|
Environment(OsmPrimitive osm,
MultiCascade mc,
java.lang.String layer,
StyleSource source)
|
Method Summary | |
---|---|
void |
clearSelectorMatchingInformation()
|
Condition.Context |
getContext()
Replies the current context. |
java.lang.String |
getRole()
|
boolean |
hasParentRelation()
|
boolean |
isLinkContext()
|
Environment |
withChild(OsmPrimitive child)
|
Environment |
withContext(Condition.Context context)
|
Environment |
withIndex(int index)
|
Environment |
withLinkContext()
|
Environment |
withParent(OsmPrimitive parent)
|
Environment |
withPrimitive(OsmPrimitive osm)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public OsmPrimitive osm
public MultiCascade mc
public java.lang.String layer
public StyleSource source
private Condition.Context context
public OsmPrimitive parent
Selector.LinkSelector
(within a child selector)
public OsmPrimitive child
public java.lang.Integer index
Constructor Detail |
---|
public Environment()
public Environment(OsmPrimitive osm, MultiCascade mc, java.lang.String layer, StyleSource source)
public Environment(Environment other) throws java.lang.IllegalArgumentException
other
other
- the other environment. Must not be null.
java.lang.IllegalArgumentException
Method Detail |
---|
public Environment withPrimitive(OsmPrimitive osm)
public Environment withParent(OsmPrimitive parent)
public Environment withChild(OsmPrimitive child)
public Environment withIndex(int index)
public Environment withContext(Condition.Context context)
public Environment withLinkContext()
public boolean isLinkContext()
public boolean hasParentRelation()
public Condition.Context getContext()
public java.lang.String getRole()
public void clearSelectorMatchingInformation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |