public class StaticObjectAnimation extends Renderable2D 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
Renderable2DInterface.Util
Constructor and Description |
---|
StaticObjectAnimation(StaticObject source,
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() |
bind2Context, contains, destroy, equals, getSource, hashCode, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslate
public StaticObjectAnimation(StaticObject source, 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 Renderable2D
RemoteException
public 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 Renderable2D
Copyright © 2014–2019 Delft University of Technology. All rights reserved.