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.String
getBase()
Range
getRange()
Returns the scale range, an interval of the form "lower < x <= upper" where 0 <= lower < upper.Subpart
getSubpart()
Returns the subpart, if supported.boolean
matches(Environment env)
Determines if all conditions match the given environment.java.lang.String
toString()
-
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.AbstractSelector
Determines if all conditions match the given environment.- Specified by:
matches
in interfaceSelector
- Overrides:
matches
in classSelector.AbstractSelector
- Parameters:
env
- The environment to check- Returns:
true
if all conditions apply, false otherwise.
-
getBase
public java.lang.String getBase()
-
getSubpart
public Subpart getSubpart()
Description copied from interface:Selector
Returns the subpart, if supported. A subpart identifies different rendering layers (::subpart
syntax).- Returns:
- the subpart, if supported
-
getRange
public Range getRange()
Description copied from interface:Selector
Returns 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:
toString
in classjava.lang.Object
-
-