org.openstreetmap.josm.gui.mappaint.mapcss
Class Selector.GeneralSelector
java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.Selector.GeneralSelector
- All Implemented Interfaces:
- Selector
- Enclosing interface:
- Selector
public static class Selector.GeneralSelector
- extends java.lang.Object
- implements Selector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
base
private java.lang.String base
range
public Range range
conds
private java.util.List<Condition> conds
subpart
private java.lang.String subpart
R
static final double R
- See Also:
- Constant Field Values
Selector.GeneralSelector
public Selector.GeneralSelector(java.lang.String base,
Pair<java.lang.Integer,java.lang.Integer> zoom,
java.util.List<Condition> conds,
java.lang.String subpart)
getSubpart
public java.lang.String getSubpart()
- Specified by:
getSubpart
in interface Selector
getRange
public Range getRange()
- Specified by:
getRange
in interface Selector
matchesBase
public boolean matchesBase(Environment e)
matchesConditions
public boolean matchesConditions(Environment e)
matches
public boolean matches(Environment e)
- Description copied from interface:
Selector
- Apply the selector to the primitive and check if it matches.
- Specified by:
matches
in interface Selector
- Parameters:
e
- the Environment. env.mc and env.layer are read-only when matching a selector.
env.source is not needed. This method will set the matchingReferrers field of env as
a side effect! Make sure to clear it before invoking this method.
- Returns:
- true, if the selector applies
getBase
public java.lang.String getBase()
fromLevel
public static Range fromLevel(int a,
int b)
level2scale
public static double level2scale(int lvl)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
JOSM