public class GTUGeneratorAnimation extends TextAnimation
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
GTUGeneratorAnimation(GTUGenerator source,
SimulatorInterface.TimeDoubleUnit simulator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TextAnimation |
clone(Locatable newSource,
SimulatorInterface.TimeDoubleUnit newSimulator)
Clone the TextAnimation and return a copy for the new source on the new simulator.
|
void |
paint(Graphics2D graphics,
ImageObserver observer)
paint() method so it can be overridden or extended.
|
destroy, getBounds, getColor, getDx, getDy, getFont, getFontSize, getLocation, getSource, getText, getTextAlignment, isFlip, isRotate, isScale, isTranslate, setColor, setFlip, setRotate, setScale, setText, setTranslate, setXYpublic GTUGeneratorAnimation(GTUGenerator source, SimulatorInterface.TimeDoubleUnit simulator) throws NamingException, RemoteException
source - GTUGenerator; generatorsimulator - SimulatorInterface.TimeDoubleUnit; simulatorNamingException - when animation context cannot be created or retrievedRemoteException - when remote context cannot be foundpublic void paint(Graphics2D graphics, ImageObserver observer) throws RemoteException
paint in class TextAnimationgraphics - Graphics2D; the graphics objectobserver - ImageObserver; the observerRemoteException - on network exceptionpublic TextAnimation clone(Locatable newSource, SimulatorInterface.TimeDoubleUnit newSimulator) throws RemoteException, NamingException
clone in class TextAnimationnewSource - Locatable; the new source to link to the text animationnewSimulator - SimulatorInterface.TimeDoubleUnit; the new simulator to register the animation onRemoteException - when remote animation cannot be reachedNamingException - when animation name cannot be found or bound in the ContextCopyright © 2014–2019 Delft University of Technology. All rights reserved.