public class NodeAnimation.Text extends TextAnimation
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.
TextAnimation.ContrastToBackground, TextAnimation.ScaleDependentRenderingRENDERALWAYS, RENDERWHEN1, RENDERWHEN10, RENDERWHEN100| Constructor and Description |
|---|
Text(nl.tudelft.simulation.dsol.animation.Locatable source,
String text,
float dx,
float dy,
TextAlignment textPlacement,
Color color,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator,
TextAnimation.ScaleDependentRendering scaleDependentRendering) |
| Modifier and Type | Method and Description |
|---|---|
TextAnimation |
clone(nl.tudelft.simulation.dsol.animation.Locatable newSource,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator)
Clone the TextAnimation and return a copy for the new source on the new simulator.
|
String |
toString() |
destroy, getBounds, getColor, getDx, getDy, getFont, getFontSize, getLocation, getScaleDependentRendering, getSource, getText, getTextAlignment, isFlip, isRotate, isScale, isTranslate, paint, setColor, setFlip, setRotate, setScale, setText, setTranslate, setXYpublic Text(nl.tudelft.simulation.dsol.animation.Locatable source,
String text,
float dx,
float dy,
TextAlignment textPlacement,
Color color,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator,
TextAnimation.ScaleDependentRendering scaleDependentRendering)
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 simulatorscaleDependentRendering - ScaleDependendentRendering; size limiter for text animationNamingException - when animation context cannot be created or retrievedRemoteException - - when remote context cannot be foundpublic TextAnimation clone(nl.tudelft.simulation.dsol.animation.Locatable newSource, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit newSimulator) throws RemoteException, NamingException
clone in class TextAnimationnewSource - Locatable; the new source to link to the text animationnewSimulator - SimulatorInterface.TimeDoubleUnit; 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–2019 Delft University of Technology. All rights reserved.