public class StaticObjectAnimation extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D<StaticObject> implements Serializable
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.
$LastChangedDate: 2015-09-14 01:33:02 +0200 (Mon, 14 Sep 2015) $, @version $Revision: 1401 $, by $Author: averbraeck $,
initial version Sep 13, 2014
| Constructor and Description |
|---|
StaticObjectAnimation(StaticObject source,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator,
float width,
Color color,
boolean fill) |
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor() |
float |
getWidth() |
boolean |
isFill() |
void |
paint(Graphics2D graphics,
ImageObserver observer) |
void |
setColor(Color color) |
void |
setFill(boolean fill) |
void |
setWidth(float width) |
String |
toString() |
public StaticObjectAnimation(StaticObject source, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator, float width, Color color, boolean fill) throws NamingException, RemoteException
source - StaticObject; Static Objectsimulator - SimulatorInterface.TimeDoubleUnit; simulatorwidth - float; width of the contour line to drawcolor - Color; color of the contour line / fillfill - boolean; fill internal or notNamingException - for problems with registering in contextRemoteException - on communication failurepublic final void paint(Graphics2D graphics, ImageObserver observer) throws RemoteException
paint in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<StaticObject>RemoteExceptionpublic final float getWidth()
public final void setWidth(float width)
width - float; set widthpublic final Color getColor()
public final void setColor(Color color)
color - Color; set colorpublic final boolean isFill()
public final void setFill(boolean fill)
fill - boolean; set fillpublic final String toString()
toString in class nl.tudelft.simulation.dsol.animation.D2.Renderable2D<StaticObject>Copyright © 2014–2019 Delft University of Technology. All rights reserved.