Class ChartText

    • Field Detail

      • x

        protected double x
      • y

        protected double y
      • angle

        protected float angle
    • Constructor Detail

      • ChartText

        public ChartText​()
        Constructor
      • ChartText

        public ChartText​(java.lang.String text)
        Constructor
        Parameters:
        text - Text
      • ChartText

        public ChartText​(java.util.List<java.lang.String> text)
        Constructor
        Parameters:
        text - Text
      • ChartText

        public ChartText​(java.lang.String text,
                         java.awt.Font font)
        Constructor
        Parameters:
        text - Text
        font - Font
      • ChartText

        public ChartText​(java.util.List<java.lang.String> text,
                         java.awt.Font font)
        Constructor
        Parameters:
        text - Text
        font - Font
    • Method Detail

      • getText

        public java.lang.String getText​()
        Get text
        Returns:
        Text
      • setText

        public void setText​(java.lang.String value)
        Set text
        Parameters:
        value - Text
      • getTexts

        public java.util.List<java.lang.String> getTexts​()
        Get texts
        Returns:
        Text list
      • setTexts

        public void setTexts​(java.util.List<java.lang.String> value)
        Set texts
        Parameters:
        value - Text list
      • getFont

        public java.awt.Font getFont​()
        Get font
        Returns:
        Font
      • setFont

        public void setFont​(java.awt.Font value)
        Set font
        Parameters:
        value - Font
      • getColor

        public java.awt.Color getColor​()
        Get title color
        Returns:
        Title color
      • setColor

        public void setColor​(java.awt.Color value)
        Set title color
        Parameters:
        value - Title color
      • getX

        public double getX​()
        Get x
        Returns:
        X
      • setX

        public void setX​(double value)
        Set x
        Parameters:
        value - X
      • getY

        public double getY​()
        Get y
        Returns:
        Y
      • setY

        public void setY​(double value)
        Set y
        Parameters:
        value - Y
      • getLineSpace

        public int getLineSpace​()
        Get line space
        Returns:
        Line space
      • setLineSpace

        public void setLineSpace​(int value)
        Set line space
        Parameters:
        value - Line space
      • getCoordinates

        public CoordinateType getCoordinates​()
        Get coordinates
        Returns:
        Coordinates
      • setCoordinates

        public void setCoordinates​(CoordinateType value)
        Set coordinates
        Parameters:
        value - Coordinates
      • setCoordinates

        public void setCoordinates​(java.lang.String value)
        Set coordinates
        Parameters:
        value - Coordinates
      • getBackground

        public java.awt.Color getBackground​()
        Get background color
        Returns:
        Background color
      • setBackground

        public void setBackground​(java.awt.Color value)
        Set background color
        Parameters:
        value - Background color
      • isFill

        public boolean isFill​()
        Get if is fill background
        Returns:
        Boolean
      • setFill

        public void setFill​(boolean value)
        Set fill background or not
        Parameters:
        value - Boolean
      • isDrawNeatline

        public boolean isDrawNeatline​()
        Get draw neatline or not
        Returns:
        Boolean
      • setDrawNeatline

        public void setDrawNeatline​(boolean value)
        Set draw neatline or not
        Parameters:
        value - Boolean
      • getNeatlineColor

        public java.awt.Color getNeatlineColor​()
        Get neatline color
        Returns:
        Neatline color
      • setNeatlineColor

        public void setNeatlineColor​(java.awt.Color value)
        Set neatline color
        Parameters:
        value - Neatline color
      • getNeatlineSize

        public float getNeatlineSize​()
        Get neatline size
        Returns:
        Neatline size
      • setNeatlineSize

        public void setNeatlineSize​(float value)
        Set neatline size
        Parameters:
        value - Neatline size
      • getGap

        public float getGap​()
        Get gap
        Returns:
        Gap
      • setGap

        public void setGap​(float value)
        Set gap
        Parameters:
        value - Gap
      • getAngle

        public float getAngle​()
        Get angle
        Returns:
        Angle
      • setAngle

        public void setAngle​(float value)
        Set angle
        Parameters:
        value - Angle
      • getXAlign

        public XAlign getXAlign​()
        Get x align
        Returns:
        X align
      • setXAlign

        public void setXAlign​(XAlign value)
        Set x align
        Parameters:
        value - X align
      • setXAlign

        public void setXAlign​(java.lang.String value)
        Set x align
        Parameters:
        value - X align string
      • getYAlign

        public YAlign getYAlign​()
        Get y align
        Returns:
        Y align
      • setYAlign

        public void setYAlign​(YAlign value)
        Set y align
        Parameters:
        value - Y align
      • setYAlign

        public void setYAlign​(java.lang.String value)
        Set y align
        Parameters:
        value - Y align string
      • isUseExternalFont

        public boolean isUseExternalFont​()
        Get if use external font - only for LaTeX string
        Returns:
        Boolean
      • setUseExternalFont

        public void setUseExternalFont​(boolean value)
        Set if use external font - only for LaTeX string
        Parameters:
        value - Boolean
      • addText

        public void addText​(java.lang.String value)
        Add text in new line
        Parameters:
        value - The text string
      • getShapeType

        public ShapeTypes getShapeType​()
        Description copied from class: Shape
        Get shape type
        Specified by:
        getShapeType in class Shape
        Returns:
        Shape type
      • getLineNum

        public int getLineNum​()
        Get text line number
        Returns:
        Text line number
      • getTrueDimension

        public java.awt.Dimension getTrueDimension​(java.awt.Graphics2D g)
        Get text dimension with angle
        Parameters:
        g - Graphics2D
        Returns:
        Dimension
      • getDimension

        public java.awt.Dimension getDimension​(java.awt.Graphics2D g)
        Get text dimension
        Parameters:
        g - Graphics2D
        Returns:
        Dimension
      • setPoint

        public void setPoint​(double x,
                             double y)
        Set point
        Parameters:
        x - X
        y - Y
      • toString

        public java.lang.String toString​()
        To string
        Overrides:
        toString in class java.lang.Object
        Returns:
        String
      • draw

        public void draw​(java.awt.Graphics2D g,
                         float x,
                         float y)
        Draw text
        Parameters:
        g - Graphics2D
        x - X
        y - Y