org.openstreetmap.josm.data.osm.visitor.paint.relations
Class Multipolygon.MultipolygonRoleMatcher
java.lang.Object
org.openstreetmap.josm.data.osm.visitor.paint.relations.Multipolygon.MultipolygonRoleMatcher
- All Implemented Interfaces:
- Preferences.PreferenceChangedListener
- Enclosing class:
- Multipolygon
private static class Multipolygon.MultipolygonRoleMatcher
- extends java.lang.Object
- implements Preferences.PreferenceChangedListener
Kind of strategy object which is responsible for deciding whether a given
member role indicates that the member belongs to an outer or an
inner polygon.
The decision is taken based on preference settings, see the four preference keys
above.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outerExactRoles
private final java.util.List<java.lang.String> outerExactRoles
outerRolePrefixes
private final java.util.List<java.lang.String> outerRolePrefixes
innerExactRoles
private final java.util.List<java.lang.String> innerExactRoles
innerRolePrefixes
private final java.util.List<java.lang.String> innerRolePrefixes
Multipolygon.MultipolygonRoleMatcher
private Multipolygon.MultipolygonRoleMatcher()
initDefaults
private void initDefaults()
setNormalized
private void setNormalized(java.util.Collection<java.lang.String> literals,
java.util.List<java.lang.String> target)
initFromPreferences
private void initFromPreferences()
preferenceChanged
public void preferenceChanged(Preferences.PreferenceChangeEvent evt)
- Specified by:
preferenceChanged
in interface Preferences.PreferenceChangedListener
isOuterRole
public boolean isOuterRole(java.lang.String role)
isInnerRole
public boolean isInnerRole(java.lang.String role)
JOSM