Class MapNodeData
java.lang.Object
org.opentrafficsim.editor.extensions.map.MapData
org.opentrafficsim.editor.extensions.map.MapNodeData
- All Implemented Interfaces:
 Serializable,Remote,EventListener,nl.tudelft.simulation.dsol.animation.Locatable,org.djutils.base.Identifiable,org.djutils.event.EventListener,org.opentrafficsim.base.geometry.OtsLocatable,org.opentrafficsim.base.geometry.SpatialObject,org.opentrafficsim.draw.ClickableLocatable,org.opentrafficsim.draw.ClickablePointLocatable,org.opentrafficsim.draw.network.NodeAnimation.NodeData,EvalWrapper.EvalListener
public class MapNodeData
extends MapData
implements org.opentrafficsim.draw.network.NodeAnimation.NodeData, org.djutils.event.EventListener
NodeData for the editor Map.
 
 Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
- Author:
 - Wouter Schakel
 - See Also:
 
- 
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE - 
Constructor Summary
ConstructorsConstructorDescriptionMapNodeData(EditorMap map, XsdTreeNode nodeNode, OtsEditor editor) Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy this data object, e.g. remove self as listener.voidNotifies the listener that evaluation results may have changed.org.djutils.draw.bounds.Bounds2dorg.djutils.draw.line.Polygon2dgetId()org.djutils.draw.point.OrientedPoint2dorg.opentrafficsim.base.geometry.OtsShapegetShape()voidnotify(org.djutils.event.Event event) toString()Methods inherited from class org.opentrafficsim.editor.extensions.map.MapData
getEval, getMap, getNode, setInvalid, setValid, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZMethods inherited from interface org.opentrafficsim.draw.network.NodeAnimation.NodeData
getZ 
- 
Constructor Details
- 
MapNodeData
Constructor.- Parameters:
 map- map.nodeNode- node Ots.Network.Node.editor- editor.
 
 - 
 - 
Method Details
- 
getBounds
public org.djutils.draw.bounds.Bounds2d getBounds()- Specified by:
 getBoundsin interfaceorg.opentrafficsim.draw.ClickableLocatable- Specified by:
 getBoundsin interfaceorg.opentrafficsim.draw.ClickablePointLocatable- Specified by:
 getBoundsin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
 getBoundsin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
 - 
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
 getContourin interfaceorg.opentrafficsim.base.geometry.SpatialObject
 - 
getShape
public org.opentrafficsim.base.geometry.OtsShape getShape()- Specified by:
 getShapein interfaceorg.opentrafficsim.base.geometry.OtsLocatable
 - 
getId
- Specified by:
 getIdin interfaceorg.djutils.base.Identifiable
 - 
destroy
public void destroy()Description copied from class:MapDataDestroy this data object, e.g. remove self as listener. Override and call super if subclasses remove their own listeners. Using weak references for listeners is another option to deal with obsolete listening. - 
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
 getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
 getLocationin interfaceorg.opentrafficsim.draw.network.NodeAnimation.NodeData- Specified by:
 getLocationin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
 - 
notify
- Specified by:
 notifyin interfaceorg.djutils.event.EventListener- Throws:
 RemoteException
 - 
evalChanged
public void evalChanged()Description copied from interface:EvalWrapper.EvalListenerNotifies the listener that evaluation results may have changed.- Specified by:
 evalChangedin interfaceEvalWrapper.EvalListener
 - 
toString
 
 -