public class LaneAnimation.Text extends TextAnimation
Copyright (c) 2013-2018 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,
TextAlignment textPlacement,
Color color,
SimulatorInterface.TimeDoubleUnit simulator) |
| Modifier and Type | Method and Description |
|---|---|
TextAnimation |
clone(Locatable newSource,
SimulatorInterface.TimeDoubleUnit newSimulator) |
DirectedPoint |
getLocation() |
String |
toString() |
destroy, getBounds, getColor, getDx, getDy, getFont, getFontSize, getSource, getText, getTextAlignment, isFlip, isRotate, isScale, isTranslate, paint, setColor, setFlip, setRotate, setScale, setText, setTranslatepublic Text(Locatable source, String text, float dx, float dy, TextAlignment textPlacement, Color color, SimulatorInterface.TimeDoubleUnit simulator) throws RemoteException, NamingException
source - Locatable; the object for which the text is displayedtext - String; the text to displaydx - float; the horizontal movement of the text, in metersdy - float; the vertical movement of the text, in meterstextPlacement - TextAlignment; where to place the textcolor - Color; the color of the textsimulator - SimulatorInterface.TimeDoubleUnit; 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 TextAnimationRemoteExceptionpublic TextAnimation clone(Locatable newSource, SimulatorInterface.TimeDoubleUnit newSimulator) throws RemoteException, NamingException
clone in class TextAnimationRemoteExceptionNamingExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.