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 offset)
          Returns the bounds of the character at a given offset within the document.
 int getInsertionPoint(int x, int y)
          Returns the insertion point for a given location.
 int getNextInsertionPoint(int x, int from, FocusTraversalDirection direction)
          Returns the next insertion point given an x coordinate and a character offset.
 int getRowCount()
          Returns the total number of rows in the document.
 int getRowIndex(int offset)
          Returns the row index of the character at a given offset within the document.
 

Method Detail

getInsertionPoint

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

Parameters:
x -
y -
Returns:
The insertion point for the given location.

getNextInsertionPoint

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

Parameters:
x -
from -
direction -
Returns:
The next insertion point.

getRowIndex

int getRowIndex(int offset)
Returns the row index of the character at a given offset within the document.

Parameters:
offset -
Returns:
The row index of the character at the given offset.

getRowCount

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

Returns:
The number of rows in the document.

getCharacterBounds

Bounds getCharacterBounds(int offset)
Returns the bounds of the character at a given offset within the document.

Parameters:
offset -
Returns:
The bounds of the character at the given offset.