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.

Constructor Index

 o EnhancedTextArea()
 o EnhancedTextArea(int, int)
 o EnhancedTextArea(Label, Label)
 o EnhancedTextArea(String)
 o EnhancedTextArea(String, int, int)
 o EnhancedTextArea(TextField, TextField)

Method Index

 o getCaretColPosition()
 o getCaretRowPosition()
 o getNumOfCharacters()
 o getNumOfLines()
 o getNumOfWords()
 o run()
 o setCaretPosition(int, int)
 o setCaretPosition(Position)
 o setTextSelectionPatch(boolean)

Constructors

 o EnhancedTextArea
  public EnhancedTextArea()
 o EnhancedTextArea
  public EnhancedTextArea(TextField row,
                          TextField col)
 o EnhancedTextArea
  public EnhancedTextArea(Label row,
                          Label col)
 o EnhancedTextArea
  public EnhancedTextArea(int row,
                          int col)
 o EnhancedTextArea
  public EnhancedTextArea(String str)
 o EnhancedTextArea
  public EnhancedTextArea(String str,
                          int row,
                          int col)

Methods

 o run
  public void run()
 o setTextSelectionPatch
  public void setTextSelectionPatch(boolean state)
 o getNumOfLines
  public synchronized Integer getNumOfLines()
 o getNumOfWords
  public synchronized Integer getNumOfWords()
 o getNumOfCharacters
  public synchronized Integer getNumOfCharacters()
 o getCaretColPosition
  public int getCaretColPosition()
 o getCaretRowPosition
  public int getCaretRowPosition()
 o setCaretPosition
  public void setCaretPosition(Position p)
 o setCaretPosition
  public void setCaretPosition(int row,
                               int col)

All Packages  Class Hierarchy  This Package  Previous  Next  Index