public class LinkAnimation.Text extends TextAnimation
Copyright (c) 2013-2017 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(nl.tudelft.simulation.dsol.animation.Locatable source,
String text,
float dx,
float dy,
TextAlignment textPlacement,
Color color,
OTSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
TextAnimation |
clone(nl.tudelft.simulation.dsol.animation.Locatable newSource,
OTSSimulatorInterface newSimulator)
Clone the TextAnimation and return a copy for the new source on the new simulator.
|
nl.tudelft.simulation.language.d3.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(nl.tudelft.simulation.dsol.animation.Locatable source,
String text,
float dx,
float dy,
TextAlignment textPlacement,
Color color,
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 nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
throws RemoteException
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatablegetLocation in class TextAnimationRemoteExceptionpublic TextAnimation clone(nl.tudelft.simulation.dsol.animation.Locatable newSource, OTSSimulatorInterface newSimulator) throws RemoteException, NamingException
clone in class TextAnimationnewSource - Locatable; the new source to link to the text animationnewSimulator - OTSSimulatorInterface; the new simulator to register the animation onRemoteException - when remote animation cannot be reachedNamingException - when animation name cannot be found or bound in the ContextCopyright © 2014–2018 Delft University of Technology. All rights reserved.