Text
jhplot.shapes

Class Text

  • All Implemented Interfaces:
    Serializable


    public class Textextends HShape
    Draw a TEXT in the USER coordinate system. Use HLabel to draw an interactive label.
    See Also:
    Serialized Form
    • Constructor Detail

      • Text

        public Text(String text,    double X1,    double Y1,    Font f,    Color color)
        Create a TEXT object
        Parameters:
        text - Text
        X1 - X position
        Y1 - Y position
        f - Font
        color - Color
      • Text

        public Text(String text,    double X1,    double Y1)
        Create a TEXT object
        Parameters:
        text - Text
        X1 - X position
        Y1 - Y position
    • Method Detail

      • getFont

        public Font getFont()
        Get the font
        Returns:
        font to draw the text
      • setFont

        public void setFont(Font f)
        Set the font for this text.
        Parameters:
        f - Font to be set
      • getText

        public String getText()
        Get a string with the text.
        Returns:
        Text
      • setText

        public void setText(String text)
        Set a string with the text
        Parameters:
        text - Test to be inserted
      • toString

        public String toString()
        Show this object
        Overrides:
        toString in class Object
        Returns:
        a string representation of this object
      • doc

        public void doc()
        Show online documentation.

SCaVis 2.2 © jWork.ORG