public class LaneAnimation.Text
extends org.opentrafficsim.core.animation.TextAnimation
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
Text(Locatable source,
String text,
float dx,
float dy,
org.opentrafficsim.core.animation.TextAlignment textPlacement,
Color color,
org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
DirectedPoint |
getLocation() |
public Text(Locatable source, String text, float dx, float dy, org.opentrafficsim.core.animation.TextAlignment textPlacement, Color color, org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator) throws RemoteException, NamingException
source - the object for which the text is displayedtext - the text to displaydx - the horizontal movement of the text, in metersdy - the vertical movement of the text, in meterstextPlacement - where to place the textcolor - the color of the textsimulator - the simulatorNamingException - when animation context cannot be created or retrievedRemoteException - - when remote context cannot be foundpublic DirectedPoint getLocation() throws RemoteException
getLocation in interface LocatablegetLocation in class org.opentrafficsim.core.animation.TextAnimationRemoteExceptionCopyright © 2014–2016 Delft University of Technology. All rights reserved.