Class NodeAnimation.Text

    • Constructor Detail

      • Text

        public Text​(Locatable source,
                    String text,
                    float dx,
                    float dy,
                    TextAlignment textPlacement,
                    Color color,
                    SimulatorInterface.TimeDoubleUnit simulator,
                    TextAnimation.ScaleDependentRendering scaleDependentRendering)
             throws RemoteException,
                    NamingException
        Parameters:
        source - Locatable; the object for which the text is displayed
        text - String; the text to display
        dx - float; the horizontal movement of the text, in meters
        dy - float; the vertical movement of the text, in meters
        textPlacement - TextAlignment; where to place the text
        color - Color; the color of the text
        simulator - SimulatorInterface.TimeDoubleUnit; the simulator
        scaleDependentRendering - ScaleDependendentRendering; size limiter for text animation
        Throws:
        NamingException - when animation context cannot be created or retrieved
        RemoteException - - when remote context cannot be found