org.apache.pivot.wtk
Interface TextArea.Skin

All Known Implementing Classes:
TerraTextAreaSkin, TextAreaSkin
Enclosing class:
TextArea

public static interface TextArea.Skin

Text area skin interface. Text area skins are required to implement this.


Method Summary
 Bounds getCharacterBounds(int index)
          Returns the bounds of the character at a given index.
 int getInsertionPoint(int x, int y)
          Returns the insertion point for a given location.
 int getNextInsertionPoint(int x, int from, TextArea.ScrollDirection direction)
          Returns the next insertion point given an x coordinate and a character index.
 int getRowAt(int index)
          Returns the row index of the character at a given index.
 int getRowCount()
          Returns the total number of rows in the text area.
 int getRowLength(int index)
          Returns the number of characters in the row containing a given character index.
 int getRowOffset(int index)
          Returns the index of the first character in the row containing a given character index.
 int getTabWidth()
          Returns the current setting of the "tabWidth" style (so "setText" uses the same value as Ctrl-Tab from user).
 

Method Detail

getInsertionPoint

int getInsertionPoint(int x,
                      int y)
Returns the insertion point for a given location.

Parameters:
x -
y -

getNextInsertionPoint

int getNextInsertionPoint(int x,
                          int from,
                          TextArea.ScrollDirection direction)
Returns the next insertion point given an x coordinate and a character index.

Parameters:
x -
from -
direction -

getRowAt

int getRowAt(int index)
Returns the row index of the character at a given index.

Parameters:
index -

getRowOffset

int getRowOffset(int index)
Returns the index of the first character in the row containing a given character index.

Parameters:
index -

getRowLength

int getRowLength(int index)
Returns the number of characters in the row containing a given character index.

Parameters:
index -

getRowCount

int getRowCount()
Returns the total number of rows in the text area.


getCharacterBounds

Bounds getCharacterBounds(int index)
Returns the bounds of the character at a given index.

Parameters:
index -

getTabWidth

int getTabWidth()
Returns the current setting of the "tabWidth" style (so "setText" uses the same value as Ctrl-Tab from user).