Documentation of 'jhplot.shapes.Text' Java class.
Text
jhplot.shapes

Class Text

  • All Implemented Interfaces:
    java.io.Serializable


    public class Text
    extends HShape
    Draw a TEXT on HPlot canvas. Use the USER coordinate system. Use HLabel to draw an interactive label.
    See Also:
    Serialized Form
    • Constructor Detail

      • Text

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

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

      • getFont

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

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

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

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

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

        public void doc()
        Show online documentation.

DMelt 3.0 © DataMelt by jWork.ORG