Class LinkAnimation

    • Constructor Detail

      • LinkAnimation

        public LinkAnimation​(Link link,
                             SimulatorInterface.TimeDoubleUnit simulator,
                             float width)
                      throws javax.naming.NamingException,
                             java.rmi.RemoteException
        Parameters:
        link - Link; Link
        simulator - SimulatorInterface.TimeDoubleUnit; simulator
        width - float; width
        Throws:
        javax.naming.NamingException - for problems with registering in context
        java.rmi.RemoteException - on communication failure
    • Method Detail

      • paint

        public final void paint​(java.awt.Graphics2D graphics,
                                java.awt.image.ImageObserver observer)
                         throws java.rmi.RemoteException
        Specified by:
        paint in class Renderable2D<Link>
        Throws:
        java.rmi.RemoteException
      • destroy

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

        public ClonableRenderable2DInterface<Link> clone​(Link 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<Link>
        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