Class NFEPathRenderer
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.layer.BasicLayer
-
- oracle.spatial.network.nfe.vis.mapcanvas.render.NFERenderer<NFEFeatureElementGeoObject>
-
- oracle.spatial.network.nfe.vis.mapcanvas.render.NFEPathRenderer
-
- All Implemented Interfaces:
java.util.EventListener
,javax.swing.event.ChangeListener
,NFEModelListener
,GeoObjectLayer
,HoverableLayer
,Layer
,SelectableLayer
,PropertySupport
public class NFEPathRenderer extends NFERenderer<NFEFeatureElementGeoObject> implements NFEModelListener
Layer used for rendering feature paths (nodes and links).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class oracle.spatial.network.nfe.vis.mapcanvas.render.NFERenderer
NFERenderer.Tier, NFERenderer.TierRenderingThread
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.vis.mapcanvas.render.NFERenderer
animatedStroke, boundaryColor, contextualMenuHandlerList, editable, geoObjects, hoverBorderColor, hoverColor, hoverManager, hoverStroke, imageOpacityAlpha, lastDataWindow, lastViewportTransform, nontargetAnimatedStroke, refreshRegionQueue, selectionManager, simpleStroke, textDefaultColor, textDefaultFont, tiers
-
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
-
Fields inherited from interface oracle.spatial.network.nfe.model.event.NFEModelListener
METHOD_MODEL_OBJECT_ADDED, METHOD_MODEL_OBJECT_REMOVED, METHOD_MODEL_OBJECTS_ADDED, METHOD_MODEL_OBJECTS_REMOVED, METHOD_PROPERTY_CHANGED
-
-
Constructor Summary
Constructors Constructor Description NFEPathRenderer(MapCanvas canvas, NFEModel model, long pathFeatureId)
/** Allocates a new path layer renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
belongsToTier(NFEFeatureElementGeoObject geoObj, java.lang.String tierName)
Tells whether the GeoObject is rendered by the given tierprotected java.util.Collection<NFEFeatureElementGeoObject>
getGeoObjects(java.awt.geom.Area area)
Gets all the GeoObjects interacting with the given areaprotected java.util.Collection<NFEFeatureElementGeoObject>
getGeoObjects(java.awt.geom.Point2D point, int granularity)
Gets all the GeoObjects interacting with the given pointprotected java.util.Collection<NFEFeatureElementGeoObject>
getGeoObjects(java.awt.geom.Rectangle2D rect)
Gets all the GeoObjects interacting with the given rectangleprotected oracle.sdovis.style.Style
getGeoObjectStyle(NFEFeatureElementGeoObject geoObj)
Gets the style used for rendering the GeoObjectNFEFeature
getPathFeature()
Returns the path feature.boolean
isShowFlow()
Tells whether the line features flow is shown.protected boolean
isVisible(NFEFeatureElementGeoObject geoObj)
Tells whether the GeoObject is visiblevoid
modelObjectAdded(NFEModelObjectEvent event)
Invoked when a model object has been addedvoid
modelObjectPropertyChanged(NFEModelObjectPropertyChangedEvent event)
Invoked when a model object's property has been changedvoid
modelObjectRemoved(NFEModelObjectEvent event)
Invoked when a model object has been removedvoid
modelObjectsAdded(NFEModelObjectsEvent event)
Invoked when one or more model objects have been addedvoid
modelObjectsRemoved(NFEModelObjectsEvent event)
Invoked when one or more model objects have been removedvoid
setShowFlow(boolean showFlow)
Sets whether the line features flow should be shown.void
synchronizeWithModel()
Updates the state to reflect the feature layer's state and refreshes the view.-
Methods inherited from class oracle.spatial.network.nfe.vis.mapcanvas.render.NFERenderer
addContextualMenuHandler, addSelectionListener, clear, clearHover, clearSelection, containsTag, containsTag, findTier, getDataMBR, getFullExtent, getGeoObject, getHover, getImageOpacityAlpha, getObject, getObjects, getScreenTolerance, getSelection, getSelection, getSnapPoint, getTolerance, handleEvent, hitTest, hitTest, isHover, isSelected, mapRegionChanged, numHovered, numSelected, refresh, refresh, refreshAsync, refreshAsync, removeContextualMenuHandler, removeSelectionListener, render, renderGeoObject, renderGeoObject, renderGeoObjects, renderGeoObjLabel, renderHoveredObject, renderHoveredObjects, renderHoveredPoint, renderHoveredShape, renderSelectedObjects, renderTier, renderTiers, select, setHover, setImageOpacityAlpha, setSelection, sortTiers, stateChanged, unselect, update
-
Methods inherited from class oracle.spatial.network.nfe.vis.maps.layer.BasicLayer
added, addPropertyChangeListener, addPropertyChangeListener, fromXMLElement, getCanvas, getIcon, getName, getProperties, getProperty, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, getProviderID, getSRID, handleTheEvent, isMyEvent, isVisible, propagateEvent, removed, removePropertyChangeListener, removePropertyChangeListener, repaint, setCanvas, setMyCursor, setName, setProperty, setProviderID, setSRID, setVisible, toXMLElement
-
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, getIcon, getName, getProviderID, getSRID, isVisible, removed, repaint, setCanvas, setName, setProviderID, setSRID, setVisible, toXMLElement
-
Methods inherited from interface oracle.spatial.network.nfe.vis.maps.util.PropertySupport
addPropertyChangeListener, addPropertyChangeListener, getProperties, getProperty, getProperty, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setProperty
-
-
-
-
Method Detail
-
synchronizeWithModel
public void synchronizeWithModel()
Updates the state to reflect the feature layer's state and refreshes the view.
-
isShowFlow
public boolean isShowFlow()
Tells whether the line features flow is shown.- Returns:
- true if the flow is shown
-
setShowFlow
public void setShowFlow(boolean showFlow)
Sets whether the line features flow should be shown.- Parameters:
showFlow
- true if the flow is shown
-
getGeoObjects
protected java.util.Collection<NFEFeatureElementGeoObject> getGeoObjects(java.awt.geom.Point2D point, int granularity)
Description copied from class:NFERenderer
Gets all the GeoObjects interacting with the given point- Specified by:
getGeoObjects
in classNFERenderer<NFEFeatureElementGeoObject>
- Parameters:
point
- a spatial point in screen coordinate system- Returns:
- a collection containing all the GeoObjects interacting with the point
-
getGeoObjects
protected java.util.Collection<NFEFeatureElementGeoObject> getGeoObjects(java.awt.geom.Rectangle2D rect)
Description copied from class:NFERenderer
Gets all the GeoObjects interacting with the given rectangle- Specified by:
getGeoObjects
in classNFERenderer<NFEFeatureElementGeoObject>
- Parameters:
rect
- a rectangle in screen coordinate system- Returns:
- a collection containing all the GeoObjects interacting with the rectangle
-
getGeoObjects
protected java.util.Collection<NFEFeatureElementGeoObject> getGeoObjects(java.awt.geom.Area area)
Description copied from class:NFERenderer
Gets all the GeoObjects interacting with the given area- Specified by:
getGeoObjects
in classNFERenderer<NFEFeatureElementGeoObject>
- Parameters:
area
- an area in screen coordinate system- Returns:
- a collection containing all the GeoObjects interacting with the area
-
getGeoObjectStyle
protected oracle.sdovis.style.Style getGeoObjectStyle(NFEFeatureElementGeoObject geoObj)
Description copied from class:NFERenderer
Gets the style used for rendering the GeoObject- Specified by:
getGeoObjectStyle
in classNFERenderer<NFEFeatureElementGeoObject>
- Parameters:
geoObj
- a GeoObject- Returns:
- the GeoObject's style
-
belongsToTier
protected boolean belongsToTier(NFEFeatureElementGeoObject geoObj, java.lang.String tierName)
Description copied from class:NFERenderer
Tells whether the GeoObject is rendered by the given tier- Specified by:
belongsToTier
in classNFERenderer<NFEFeatureElementGeoObject>
- Parameters:
geoObj
- a layer's GeoObjecttierName
- a tier name- Returns:
- true if the GeoObject is rendered by (belongs to) the given tier
-
isVisible
protected boolean isVisible(NFEFeatureElementGeoObject geoObj)
Description copied from class:NFERenderer
Tells whether the GeoObject is visible- Specified by:
isVisible
in classNFERenderer<NFEFeatureElementGeoObject>
- Parameters:
geoObj
- a layer's GeoObject- Returns:
- true if the GeoObject is visible
-
getPathFeature
public NFEFeature getPathFeature()
Returns the path feature.- Returns:
- path feature
-
modelObjectAdded
public void modelObjectAdded(NFEModelObjectEvent event)
Description copied from interface:NFEModelListener
Invoked when a model object has been added- Specified by:
modelObjectAdded
in interfaceNFEModelListener
- Parameters:
event
- contains a reference to the model object that has been added
-
modelObjectsAdded
public void modelObjectsAdded(NFEModelObjectsEvent event)
Description copied from interface:NFEModelListener
Invoked when one or more model objects have been added- Specified by:
modelObjectsAdded
in interfaceNFEModelListener
- Parameters:
event
- contains a collection of references to the model objects that have been added
-
modelObjectRemoved
public void modelObjectRemoved(NFEModelObjectEvent event)
Description copied from interface:NFEModelListener
Invoked when a model object has been removed- Specified by:
modelObjectRemoved
in interfaceNFEModelListener
- Parameters:
event
- contains a reference to the model object that has been removed
-
modelObjectsRemoved
public void modelObjectsRemoved(NFEModelObjectsEvent event)
Description copied from interface:NFEModelListener
Invoked when one or more model objects have been removed- Specified by:
modelObjectsRemoved
in interfaceNFEModelListener
- Parameters:
event
- contains a collection of references to the model objects that have been removed
-
modelObjectPropertyChanged
public void modelObjectPropertyChanged(NFEModelObjectPropertyChangedEvent event)
Description copied from interface:NFEModelListener
Invoked when a model object's property has been changed- Specified by:
modelObjectPropertyChanged
in interfaceNFEModelListener
- Parameters:
event
- contains a reference to the model objects which property has been changed and the name and previous value of the changed property
-
-