Documentation of 'org.jplot2d.element.TextComponent' Java class
TextComponent
org.jplot2d.element

Interface TextComponent

    • Method Detail

      • getText

        java.lang.String getText()
        Returns the text string.
        Returns:
        a String
      • setText

        void setText(java.lang.String text)
        Defines the single line of text to be displayed. The string can be in TeX-like syntax. A pair of "$" mark into math mode and out math mode. In math mode, Greek letter can be inputed as \alpha, \beta, etc. Superscripts (up high) and subscripts (down low) can be inputed by using "^" and "_". Notice that ^ and _ apply only to the next single character. If you want several things to be superscripted or subscripted, just enclose them in braces. eg: "plain text $x_\alpha^{2y}$".
        Parameters:
        text -
      • getHAlign

        HAlign getHAlign()
        Returns:
        the horizontal alignment.
      • setHAlign

        void setHAlign(HAlign hAlign)
        Set the horizontal alignment. The alignment can be LEFT, CENTER, or RIGHT. eg, LEFT means the title is on the left of the base point.
        Parameters:
        hAlign - the horizontal alignment.
      • getVAlign

        VAlign getVAlign()
        Returns:
        the vertical alignment or null if not set.
      • setVAlign

        void setVAlign(VAlign vAlign)
        Set the vertical alignment. The alignment can be TOP, MIDDLE, or BOTTOM. eg, TOP means the title is on the top of the base point
        Parameters:
        vAlign - the vertical alignment.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.