Interface TextProperties


  • public interface TextProperties
    Text visual properties.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      float getAlpha()
      Returns the alpha (transparency) component between zero and one.
      float getB()
      Returns the blue color component between zero and one.
      Color getColor()
      Returns the color.
      float getG()
      Returns the green color component between zero and one.
      float getHeight()
      Returns the text's height.
      float getR()
      Returns the red color component between zero and one.
      int getRGBA()
      Returns the RGBA color.
      float getSize()
      Returns the size.
      String getText()
      Returns the text.
      float getWidth()
      Returns the text's width.
      boolean isVisible()
      Returns true if visible.
      void setAlpha​(float a)
      Sets the alpha (transparency) component.
      void setB​(float b)
      Sets the blue color component.
      void setColor​(Color color)
      Sets the color.
      void setDimensions​(float width, float height)
      Sets the text's dimensions.
      void setG​(float g)
      Sets the green color component.
      void setR​(float r)
      Sets the red color component.
      void setSize​(float size)
      Sets the size.
      void setText​(String text)
      Sets the text.
      void setVisible​(boolean visible)
      Sets the visibility.
    • Method Detail

      • getR

        float getR()
        Returns the red color component between zero and one.
        Returns:
        the red color component
      • getG

        float getG()
        Returns the green color component between zero and one.
        Returns:
        the green color component
      • getB

        float getB()
        Returns the blue color component between zero and one.
        Returns:
        the blue color component
      • getRGBA

        int getRGBA()
        Returns the RGBA color.
        Returns:
        the color
      • getColor

        Color getColor()
        Returns the color.
        Returns:
        the color
      • getAlpha

        float getAlpha()
        Returns the alpha (transparency) component between zero and one.
        Returns:
        the alpha
      • getSize

        float getSize()
        Returns the size.
        Returns:
        the size
      • isVisible

        boolean isVisible()
        Returns true if visible.
        Returns:
        true if visible, false otherwise
      • getText

        String getText()
        Returns the text.
        Returns:
        the text
      • getWidth

        float getWidth()
        Returns the text's width.
        Returns:
        the width
      • getHeight

        float getHeight()
        Returns the text's height.
        Returns:
        the height
      • setR

        void setR​(float r)
        Sets the red color component.
        Parameters:
        r - the color component, between zero and one
      • setG

        void setG​(float g)
        Sets the green color component.
        Parameters:
        g - the color component, between zero and one
      • setB

        void setB​(float b)
        Sets the blue color component.
        Parameters:
        b - the color component, between zero and one
      • setAlpha

        void setAlpha​(float a)
        Sets the alpha (transparency) component.
        Parameters:
        a - the alpha component, between zero and one
      • setColor

        void setColor​(Color color)
        Sets the color.
        Parameters:
        color - the color
      • setSize

        void setSize​(float size)
        Sets the size.
        Parameters:
        size - the size
      • setVisible

        void setVisible​(boolean visible)
        Sets the visibility.
        Parameters:
        visible - true if visible, false otherwise
      • setText

        void setText​(String text)
        Sets the text.
        Parameters:
        text - the text
      • setDimensions

        void setDimensions​(float width,
                           float height)
        Sets the text's dimensions.
        Parameters:
        width - width
        height - height