Class TextArea

    • Constructor Detail

      • TextArea

        public TextArea​(java.lang.String text,
                        Skin skin)
      • TextArea

        public TextArea​(java.lang.String text,
                        Skin skin,
                        java.lang.String styleName)
    • Method Detail

      • setPrefRows

        public void setPrefRows​(float prefRows)
        Sets the preferred number of rows (lines) for this text area. Used to calculate preferred height
      • getLines

        public int getLines()
        Returns total number of lines that the text occupies
      • newLineAtEnd

        public boolean newLineAtEnd()
        Returns if there's a new line at then end of the text
      • moveCursorLine

        public void moveCursorLine​(int line)
        Moves the cursor to the given number line
      • sizeChanged

        protected void sizeChanged()
        Description copied from class: Actor
        Called when the actor's size has been changed.
        Overrides:
        sizeChanged in class Widget
      • setSelection

        public void setSelection​(int selectionStart,
                                 int selectionEnd)
        Description copied from class: TextField
        Sets the selected text.
        Overrides:
        setSelection in class TextField
      • moveCursor

        protected void moveCursor​(boolean forward,
                                  boolean jump)
        Overrides:
        moveCursor in class TextField
      • continueCursor

        protected boolean continueCursor​(int index,
                                         int offset)
        Overrides:
        continueCursor in class TextField
      • getCursorLine

        public int getCursorLine()
      • getFirstLineShowing

        public int getFirstLineShowing()
      • getLinesShowing

        public int getLinesShowing()
      • getCursorX

        public float getCursorX()
      • getCursorY

        public float getCursorY()