Class NodeAnimation

    • Field Detail

      • ZOFFSET

        public static final double ZOFFSET
        Ensure that node animations are slightly above lane surface.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NodeAnimation

        public NodeAnimation​(Node node,
                             SimulatorInterface.TimeDoubleUnit simulator)
                      throws javax.naming.NamingException,
                             java.rmi.RemoteException
        Parameters:
        node - Node; n
        simulator - SimulatorInterface.TimeDoubleUnit; s
        Throws:
        javax.naming.NamingException - when animation context cannot be found.
        java.rmi.RemoteException - on communication failure
    • Method Detail

      • paint

        public final void paint​(java.awt.Graphics2D graphics,
                                java.awt.image.ImageObserver observer)
        Specified by:
        paint in class Renderable2D
      • destroy

        public final void destroy()
                           throws javax.naming.NamingException,
                                  java.rmi.RemoteException
        Specified by:
        destroy in interface Renderable2DInterface
        Overrides:
        destroy in class Renderable2D
        Throws:
        javax.naming.NamingException
        java.rmi.RemoteException
      • clone

        public ClonableRenderable2DInterface clone​(Locatable newSource,
                                                   SimulatorInterface.TimeDoubleUnit newSimulator)
                                            throws javax.naming.NamingException,
                                                   java.rmi.RemoteException
        Clone the animation object and register it for the new source on the new simulation.
        Specified by:
        clone in interface ClonableRenderable2DInterface
        Parameters:
        newSource - T; the source
        newSimulator - SimulatorInterface.TimeDoubleUnit; the simulator
        Returns:
        the generated clone
        Throws:
        javax.naming.NamingException - when animation context cannot be created or retrieved
        java.rmi.RemoteException - - when remote context cannot be found