Class GtuGeneratorQueueAnimation

    • Constructor Detail

      • GtuGeneratorQueueAnimation

        public GtuGeneratorQueueAnimation​(GtuGeneratorQueue source,
                                          org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator)
                                   throws NamingException,
                                          RemoteException
        Constructor.
        Parameters:
        source - GTUGenerator; generator
        simulator - OTSSimulatorInterface; simulator
        Throws:
        NamingException - when animation context cannot be created or retrieved
        RemoteException - when remote context cannot be found
    • Method Detail

      • paint

        public void paint​(Graphics2D graphics,
                          ImageObserver observer)
        paint() method so it can be overridden or extended.
        Overrides:
        paint in class TextAnimation
        Parameters:
        graphics - Graphics2D; the graphics object
        observer - ImageObserver; the observer
      • clone

        public TextAnimation clone​(Locatable newSource,
                                   org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator)
                            throws RemoteException,
                                   NamingException
        Clone the TextAnimation and return a copy for the new source on the new simulator.
        Specified by:
        clone in class TextAnimation
        Parameters:
        newSource - Locatable; the new source to link to the text animation
        newSimulator - OTSSimulatorInterface; the new simulator to register the animation on
        Returns:
        TextAnimation; a copy of this TextAnimation
        Throws:
        RemoteException - when remote animation cannot be reached
        NamingException - when animation name cannot be found or bound in the Context