Class NFEFeatureElementSelectionTool
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.layer.BasicLayer
-
- oracle.spatial.network.nfe.vis.maps.tools.BasicTool
-
- oracle.spatial.network.nfe.vis.mapcanvas.tool.NFETool
-
- oracle.spatial.network.nfe.vis.mapcanvas.tool.NFESelectionTool
-
- oracle.spatial.network.nfe.vis.mapcanvas.tool.NFEFeatureElementSelectionTool
-
- All Implemented Interfaces:
Layer
,Tool
,PropertySupport
- Direct Known Subclasses:
NFEBoxSelectionTool
,NFEFeatureSelectionTool
,NFENetElementSelectionTool
public class NFEFeatureElementSelectionTool extends NFESelectionTool
Tool used for selecting feature elements within feature layers
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.vis.mapcanvas.tool.NFESelectionTool
MAX_SELECTABLE_PRIORITY, MIN_SELECTABLE_PRIORITY, NO_SELECTABLE_PRIORITY
-
Fields inherited from class oracle.spatial.network.nfe.vis.mapcanvas.tool.NFETool
invalidStateCursor, readyStateCursor
-
Fields inherited from class oracle.spatial.network.nfe.vis.maps.layer.BasicLayer
canvas, properties
-
Fields inherited from interface oracle.spatial.network.nfe.vis.maps.core.Layer
PROPERTY_NAME, PROPERTY_PROVIDERID, PROPERTY_SRID, PROPERTY_VISIBLE
-
-
Constructor Summary
Constructors Constructor Description NFEFeatureElementSelectionTool(MapCanvas canvas, NFEModel model)
Allocates a new feature element selection tool
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deleteSelection()
Notifies all the layers to delete its current selected GeoObjectsprotected int
getSelectableGeoObjectPriority(GeoObject geoObj, java.awt.geom.Point2D srsMousePoint)
Gets the GeoObject priority to be selected.protected java.util.Collection<Layer>
getSelectableLayers()
Gets all the layers containing GeoObjects that may be selected by the toolprotected boolean
isPoint(GeoObject geoObj)
Tells whether the GeoObject's shape is a point-
Methods inherited from class oracle.spatial.network.nfe.vis.mapcanvas.tool.NFESelectionTool
clear, getSelectableObject, hover, isMultiSelect, keyPressed, keyReleased, mouseClicked, mouseMoved, select, setMultiSelect
-
Methods inherited from class oracle.spatial.network.nfe.vis.mapcanvas.tool.NFETool
getModel, getTolerance, handleEvent, isAllowedScreenPoint, isEnabled, mouseDragged, mouseExited, mousePressed, mouseReleased, setEnabled, toDataCRS, toScreenCRS
-
Methods inherited from class oracle.spatial.network.nfe.vis.maps.tools.BasicTool
isInAction
-
Methods inherited from class oracle.spatial.network.nfe.vis.maps.layer.BasicLayer
added, addPropertyChangeListener, addPropertyChangeListener, fromXMLElement, getCanvas, getDataMBR, getFullExtent, getIcon, getName, getProperties, getProperty, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getProviderID, getSRID, handleTheEvent, hitTest, hitTest, isMyEvent, isVisible, mapRegionChanged, propagateEvent, removed, removePropertyChangeListener, removePropertyChangeListener, render, repaint, setCanvas, setMyCursor, setName, setProperty, setProviderID, setSRID, setVisible, toXMLElement, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.spatial.network.nfe.vis.maps.core.Layer
added, fromXMLElement, getCanvas, getDataMBR, getFullExtent, getIcon, getName, getProviderID, getSRID, hitTest, hitTest, isVisible, mapRegionChanged, removed, render, repaint, setCanvas, setName, setProviderID, setSRID, setVisible, toXMLElement, update
-
Methods inherited from interface oracle.spatial.network.nfe.vis.maps.util.PropertySupport
addPropertyChangeListener, addPropertyChangeListener, getProperties, getProperty, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setProperty
-
-
-
-
Method Detail
-
getSelectableGeoObjectPriority
protected int getSelectableGeoObjectPriority(GeoObject geoObj, java.awt.geom.Point2D srsMousePoint)
Description copied from class:NFESelectionTool
Gets the GeoObject priority to be selected. Selection priority is needed as more than one element may be interacting with the mouse point when selecting.- Specified by:
getSelectableGeoObjectPriority
in classNFESelectionTool
- Parameters:
geoObj
- a selectable GeoObjectsrsMousePoint
- the mouse point in model's coordinate system- Returns:
-
getSelectableLayers
protected java.util.Collection<Layer> getSelectableLayers()
Description copied from class:NFESelectionTool
Gets all the layers containing GeoObjects that may be selected by the tool- Specified by:
getSelectableLayers
in classNFESelectionTool
- Returns:
- a collection of layers
-
deleteSelection
protected void deleteSelection()
Description copied from class:NFESelectionTool
Notifies all the layers to delete its current selected GeoObjects- Specified by:
deleteSelection
in classNFESelectionTool
-
isPoint
protected boolean isPoint(GeoObject geoObj)
Tells whether the GeoObject's shape is a point- Parameters:
geoObj
- a GeoObject- Returns:
- true if the GeoObject is a point
-
-