public class SelectByInternalPointAction extends JosmAction
sc
Constructor and Description |
---|
SelectByInternalPointAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
static OsmPrimitive |
getSmallestSurroundingObject(EastNorth internalPoint)
Returns the smallest surrounding polygon/multipolgon which contains the internal point.
|
static java.util.Collection<OsmPrimitive> |
getSurroundingObjects(EastNorth internalPoint)
Returns the surrounding polygons/multipolgons
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.
|
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
public 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.public void actionPerformed(java.awt.event.ActionEvent e)