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:
  • Constructor Details

    • MapNodeData

      public MapNodeData(EditorMap map, XsdTreeNode nodeNode, OtsEditor editor)
      Constructor.
      Parameters:
      map - map.
      nodeNode - node Ots.Network.Node.
      editor - editor.
  • Method Details

    • getBounds

      public org.djutils.draw.bounds.Bounds2d getBounds()
      Specified by:
      getBounds in interface org.opentrafficsim.draw.ClickableLocatable
      Specified by:
      getBounds in interface org.opentrafficsim.draw.ClickablePointLocatable
      Specified by:
      getBounds in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getBounds in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getContour

      public org.djutils.draw.line.Polygon2d getContour()
      Specified by:
      getContour in interface org.opentrafficsim.base.geometry.SpatialObject
    • getShape

      public org.opentrafficsim.base.geometry.OtsShape getShape()
      Specified by:
      getShape in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getId

      public String getId()
      Specified by:
      getId in interface org.djutils.base.Identifiable
    • destroy

      public void destroy()
      Description copied from class: MapData
      Destroy 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.
      Overrides:
      destroy in class MapData
    • getLocation

      public org.djutils.draw.point.OrientedPoint2d getLocation()
      Specified by:
      getLocation in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getLocation in interface org.opentrafficsim.draw.network.NodeAnimation.NodeData
      Specified by:
      getLocation in interface org.opentrafficsim.base.geometry.OtsLocatable
    • notify

      public void notify(org.djutils.event.Event event) throws RemoteException
      Specified by:
      notify in interface org.djutils.event.EventListener
      Throws:
      RemoteException
    • evalChanged

      public void evalChanged()
      Description copied from interface: EvalWrapper.EvalListener
      Notifies the listener that evaluation results may have changed.
      Specified by:
      evalChanged in interface EvalWrapper.EvalListener
    • toString

      public String toString()
      Overrides:
      toString in class Object