Documentation of 'visad.TextControl' Java class
TextControl
visad

Class TextControl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class TextControl
    extends Control
    TextControl is the VisAD class for controlling Text display scalars.

    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • getAutoSize

        public boolean getAutoSize()
      • nullControl

        public void nullControl()
        Description copied from class: Control
        end this control (called by ScalarMap.nullDisplay())
        Overrides:
        nullControl in class Control
      • setFont

        public void setFont(java.lang.Object f)
                     throws VisADException,
                            java.rmi.RemoteException
        set the font; in the initial release this has no effect
        Parameters:
        f - is the java.awt.Font or the visad.util.HersheyFont
        Throws:
        VisADException
        java.rmi.RemoteException
      • getFont

        public java.awt.Font getFont()
        return the java.awt.Font
        Returns:
        the java.awt.Font if the font is of that type; otherwise, null
      • getHersheyFont

        public HersheyFont getHersheyFont()
        return the HersheyFont
        Returns:
        the visad.util.HersheyFont if the font is of that type; otherwise, null
      • setCenter

        public void setCenter(boolean c)
                       throws VisADException,
                              java.rmi.RemoteException
        set the centering flag; if true, text will be centered at mapped locations; if false, text will be to the right of mapped locations
        Throws:
        VisADException
        java.rmi.RemoteException
      • getCenter

        public boolean getCenter()
        return the centering flag
      • setJustification

        public void setJustification(TextControl.Justification newJustification)
                              throws VisADException,
                                     java.rmi.RemoteException
        Set the justification flag Possible values are TextControl.Justification.LEFT, TextControl.Justification.CENTER and TextControl.Justification.RIGHT
        Throws:
        VisADException
        java.rmi.RemoteException
      • setVerticalJustification

        public void setVerticalJustification(TextControl.Justification newJustification)
                                      throws VisADException,
                                             java.rmi.RemoteException
        Set the vertical justification flag Possible values are TextControl.Justification.TOP, TextControl.Justification.CENTER and TextControl.Justification.BOTTOM
        Throws:
        VisADException
        java.rmi.RemoteException
      • getVerticalJustification

        public TextControl.Justification getVerticalJustification()
        Return the vertical justification value
      • setSize

        public void setSize(double s)
                     throws VisADException,
                            java.rmi.RemoteException
        set the size of characters; the default is 1.0
        Throws:
        VisADException
        java.rmi.RemoteException
      • getSize

        public double getSize()
        return the size
      • setSphere

        public void setSphere(boolean s)
                       throws VisADException,
                              java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • getSphere

        public boolean getSphere()
      • setNumberFormat

        public void setNumberFormat(java.text.NumberFormat f)
                             throws VisADException,
                                    java.rmi.RemoteException
        Throws:
        VisADException
        java.rmi.RemoteException
      • getNumberFormat

        public java.text.NumberFormat getNumberFormat()
      • setRotation

        public void setRotation(double newRotation)
                         throws VisADException,
                                java.rmi.RemoteException
        Set the rotation abcd 1 February 2001
        Throws:
        VisADException
        java.rmi.RemoteException
      • getRotation

        public double getRotation()
        Get the rotation abcd 1 February 2001
      • getSaveString

        public java.lang.String getSaveString()
        get a string that can be used to reconstruct this control later
        Specified by:
        getSaveString in class Control
        Returns:
        String representation of this Control
      • setSaveString

        public void setSaveString(java.lang.String save)
                           throws VisADException,
                                  java.rmi.RemoteException
        reconstruct this control using the specified save string
        Specified by:
        setSaveString in class Control
        Parameters:
        save - - String representation for reconstruction
        Throws:
        VisADException - if a VisAD error occurs
        java.rmi.RemoteException - if an RMI error occurs
      • syncControl

        public void syncControl(Control rmt)
                         throws VisADException
        copy the state of a remote control to this control
        Specified by:
        syncControl in class Control
        Parameters:
        rmt - remote Control whose state is copied
        Throws:
        VisADException - if a VisAD error occurs
      • equals

        public boolean equals(java.lang.Object o)
        Description copied from class: Control
        Indicates whether or not this instance equals an Object
        Overrides:
        equals in class Control
        Parameters:
        o - an Object
        Returns:
        true if and only if this instance is equal to o
      • getCharacterRotation

        public double getCharacterRotation()
        Gets the value of characterRotation
        Returns:
        the value of characterRotation
      • setCharacterRotation

        public void setCharacterRotation(double argCharacterRotation)
                                  throws VisADException,
                                         java.rmi.RemoteException
        Sets the value of characterRotation
        Parameters:
        argCharacterRotation - Value to assign to this.characterRotation
        Throws:
        VisADException
        java.rmi.RemoteException
      • getScale

        public double getScale()
        Gets the value of scale
        Returns:
        the value of scale
      • setScale

        public void setScale(double argScale)
                      throws VisADException,
                             java.rmi.RemoteException
        Sets the value of scale
        Parameters:
        argScale - Value to assign to this.scale
        Throws:
        VisADException
        java.rmi.RemoteException
      • getOffset

        public double[] getOffset()
        Gets the value of offset
        Returns:
        the value of offset
      • setOffset

        public void setOffset(double[] argOffset)
                       throws VisADException,
                              java.rmi.RemoteException
        Sets the value of offset
        Parameters:
        argOffset - Value to assign to this.offset
        Throws:
        VisADException
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.