Class cynosurex.awt.EnhancedTextArea
All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.awt.EnhancedTextArea
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.TextComponent
|
+----java.awt.TextArea
|
+----cynosurex.awt.EnhancedTextArea
- public class EnhancedTextArea
- extends TextArea
- implements Runnable
EnhancedTextArea enhances the standard TextArea class
by creating a multithreaded TextArea to calculate the
current line and column position.
The thread is set to minimum priority, sleeps, and only
wakes up to do the calculation when the cursor position
changes.
-
EnhancedTextArea()
-
-
EnhancedTextArea(int, int)
-
-
EnhancedTextArea(Label, Label)
-
-
EnhancedTextArea(String)
-
-
EnhancedTextArea(String, int, int)
-
-
EnhancedTextArea(TextField, TextField)
-
-
getCaretColPosition()
-
-
getCaretRowPosition()
-
-
getNumOfCharacters()
-
-
getNumOfLines()
-
-
getNumOfWords()
-
-
run()
-
-
setCaretPosition(int, int)
-
-
setCaretPosition(Position)
-
-
setTextSelectionPatch(boolean)
-
EnhancedTextArea
public EnhancedTextArea()
EnhancedTextArea
public EnhancedTextArea(TextField row,
TextField col)
EnhancedTextArea
public EnhancedTextArea(Label row,
Label col)
EnhancedTextArea
public EnhancedTextArea(int row,
int col)
EnhancedTextArea
public EnhancedTextArea(String str)
EnhancedTextArea
public EnhancedTextArea(String str,
int row,
int col)
run
public void run()
setTextSelectionPatch
public void setTextSelectionPatch(boolean state)
getNumOfLines
public synchronized Integer getNumOfLines()
getNumOfWords
public synchronized Integer getNumOfWords()
getNumOfCharacters
public synchronized Integer getNumOfCharacters()
getCaretColPosition
public int getCaretColPosition()
getCaretRowPosition
public int getCaretRowPosition()
setCaretPosition
public void setCaretPosition(Position p)
setCaretPosition
public void setCaretPosition(int row,
int col)
All Packages Class Hierarchy This Package Previous Next Index