Class Selector.ChildOrParentSelector.CrossingFinder
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Selector.ChildOrParentSelector.AbstractFinder
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Selector.ChildOrParentSelector.CrossingFinder
-
- All Implemented Interfaces:
PrimitiveVisitor
- Enclosing class:
- Selector.ChildOrParentSelector
private final class Selector.ChildOrParentSelector.CrossingFinder extends Selector.ChildOrParentSelector.AbstractFinder
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.geom.Area
area
(package private) java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>>
cellSegments
Will contain all way segments, grouped by cellsprivate java.lang.String
layer
-
Fields inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.Selector.ChildOrParentSelector.AbstractFinder
e
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CrossingFinder(Environment e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Map<java.util.List<Way>,java.util.List<WaySegment>>
findCrossings(IPrimitive area, java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments)
private java.awt.geom.Area
getAreaEastNorth(IPrimitive p, Environment e)
private void
useFindCrossings(IPrimitive p)
void
visit(java.util.Collection<? extends IPrimitive> primitives)
private void
visitArea(IPrimitive p)
-
Methods inherited from class org.openstreetmap.josm.gui.mappaint.mapcss.Selector.ChildOrParentSelector.AbstractFinder
addToChildren, isPrimitiveUsable, visit, visit, visit
-
-
-
-
Field Detail
-
layer
private final java.lang.String layer
-
area
private java.awt.geom.Area area
-
cellSegments
java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments
Will contain all way segments, grouped by cells
-
-
Constructor Detail
-
CrossingFinder
private CrossingFinder(Environment e)
-
-
Method Detail
-
getAreaEastNorth
private java.awt.geom.Area getAreaEastNorth(IPrimitive p, Environment e)
-
findCrossings
private java.util.Map<java.util.List<Way>,java.util.List<WaySegment>> findCrossings(IPrimitive area, java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments)
-
visit
public void visit(java.util.Collection<? extends IPrimitive> primitives)
- Overrides:
visit
in classSelector.ChildOrParentSelector.AbstractFinder
-
visitArea
private void visitArea(IPrimitive p)
-
useFindCrossings
private void useFindCrossings(IPrimitive p)
-
-