public class NetworkAnimation extends EventProducer implements EventListenerInterface
listenersFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
NetworkAnimation(Network network)
Construct this NetworkAnimation object with a connection to the Network.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDrawingInfoBase(Drawable drawable,
DrawingInfo drawingInfo)
Add the drawing info for an instance.
|
void |
addDrawingInfoClass(Class<? extends Drawable> drawableClass,
DrawingInfo drawingInfo)
Add the drawing info for a class.
|
void |
addDrawingInfoDynamic(Drawable drawable,
DrawingInfo drawingInfo)
Add the dynamic drawing information for an instance.
|
DrawingInfo |
getDrawingInfo(Drawable drawable)
Get the drawing information for a drawable instance.
|
DrawingInfo |
getDrawingInfoBase(Drawable drawable)
Get the static drawing information for a drawable instance.
|
DrawingInfo |
getDrawingInfoClass(Class<? extends Drawable> drawableClass)
Get the static class-based drawing information for a drawable instance.
|
Network |
getNetwork() |
void |
notify(EventInterface event) |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerpublic NetworkAnimation(Network network) throws RemoteException
network - Network; the network to which the animation info is connectedRemoteException - in case of remote events and network errorpublic void addDrawingInfoClass(Class<? extends Drawable> drawableClass, DrawingInfo drawingInfo)
drawableClass - Class<? extends Drawable>; the class to set the drawing info fordrawingInfo - DrawingInfo; the default drawing info for the classpublic void addDrawingInfoBase(Drawable drawable, DrawingInfo drawingInfo)
drawable - Drawable; the object to set the drawing info fordrawingInfo - DrawingInfo; the default drawing info for the drawablepublic void addDrawingInfoDynamic(Drawable drawable, DrawingInfo drawingInfo)
drawable - Drawable; the object to set the drawing info fordrawingInfo - DrawingInfo; the dynamic drawing info for the drawablepublic DrawingInfo getDrawingInfo(Drawable drawable)
drawable - Drawable; the object to get the drawing info forpublic DrawingInfo getDrawingInfoBase(Drawable drawable)
drawable - Drawable; the object to get the drawing info forpublic DrawingInfo getDrawingInfoClass(Class<? extends Drawable> drawableClass)
drawableClass - Class<? extends Drawable>; the class to get the drawing info forpublic final Network getNetwork()
public void notify(EventInterface event) throws RemoteException
notify in interface EventListenerInterfaceRemoteExceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.