public final class SelectByInternalPointAction extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
SelectByInternalPointAction() |
Modifier and Type | Method and Description |
---|---|
static OsmPrimitive |
getSmallestSurroundingObject(EastNorth internalPoint)
Returns the smallest surrounding polygon/multipolygon which contains the internal point.
|
static java.util.Collection<OsmPrimitive> |
getSurroundingObjects(EastNorth internalPoint)
Returns the surrounding polygons/multipolygons
ordered by their area size (from small to large)
which contain the internal point.
|
static void |
performSelection(EastNorth internalPoint,
boolean doAdd,
boolean doRemove)
Select a polygon or multipolygon by an internal point.
|
private SelectByInternalPointAction()
public static java.util.Collection<OsmPrimitive> getSurroundingObjects(EastNorth internalPoint)
internalPoint
- the internal point.public static OsmPrimitive getSmallestSurroundingObject(EastNorth internalPoint)
internalPoint
- the internal point.public static void performSelection(EastNorth internalPoint, boolean doAdd, boolean doRemove)
internalPoint
- the internal point.doAdd
- whether to add selected polygon to the current selection.doRemove
- whether to remove the selected polygon from the current selection.