Class Selector.LinkSelector
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Selector.AbstractSelector
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Selector.LinkSelector
-
- All Implemented Interfaces:
Selector
- Enclosing interface:
- Selector
public static class Selector.LinkSelector extends Selector.AbstractSelector
In a child selector, conditions on the link between a parent and a child object. See wiki
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Selector
Selector.AbstractSelector, Selector.ChildOrParentSelector, Selector.ChildOrParentSelectorType, Selector.GeneralSelector, Selector.LinkSelector
-
-
Field Summary
-
Fields inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Selector
BASE_ANY, BASE_AREA, BASE_CANVAS, BASE_META, BASE_NODE, BASE_RELATION, BASE_SETTING, BASE_SETTINGS, BASE_WAY
-
-
Constructor Summary
Constructors Constructor Description LinkSelector(java.util.List<Condition> conditions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBase()RangegetRange()Returns the scale range, an interval of the form "lower < x <= upper" where 0 <= lower < upper.SubpartgetSubpart()Returns the subpart, if supported.booleanmatches(Environment env)Determines if all conditions match the given environment.java.lang.StringtoString()-
Methods inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.Selector.AbstractSelector
getConditions
-
-
-
-
Constructor Detail
-
LinkSelector
public LinkSelector(java.util.List<Condition> conditions)
-
-
Method Detail
-
matches
public boolean matches(Environment env)
Description copied from class:Selector.AbstractSelectorDetermines if all conditions match the given environment.- Specified by:
matchesin interfaceSelector- Overrides:
matchesin classSelector.AbstractSelector- Parameters:
env- The environment to check- Returns:
trueif all conditions apply, false otherwise.
-
getBase
public java.lang.String getBase()
-
getSubpart
public Subpart getSubpart()
Description copied from interface:SelectorReturns the subpart, if supported. A subpart identifies different rendering layers (::subpartsyntax).- Returns:
- the subpart, if supported
-
getRange
public Range getRange()
Description copied from interface:SelectorReturns the scale range, an interval of the form "lower < x <= upper" where 0 <= lower < upper.- Returns:
- the scale range, if supported
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-