org.openstreetmap.josm.gui.mappaint.mapcss
Interface Selector

All Known Implementing Classes:
Selector.ChildOrParentSelector, Selector.GeneralSelector, Selector.LinkSelector

public interface Selector


Nested Class Summary
static class Selector.ChildOrParentSelector
          Represents a child selector or a parent selector.
static class Selector.GeneralSelector
           
static class Selector.LinkSelector
           
 
Method Summary
 Range getRange()
           
 java.lang.String getSubpart()
           
 boolean matches(Environment env)
          Apply the selector to the primitive and check if it matches.
 

Method Detail

matches

boolean matches(Environment env)
Apply the selector to the primitive and check if it matches.

Parameters:
env - 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

getSubpart

java.lang.String getSubpart()

getRange

Range getRange()


JOSM