All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.Caret

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----com.bulletproof.gui.Caret

public class Caret
extends Thread
Class Caret implements a caret ("^") for use as a marker for the current insertion point in a TextField. (Caret should probably be a private class, since it has no use independent of TextField.)


Variable Index

 o displayed
 o stopped
 o visible

Constructor Index

 o Caret()

Method Index

 o clearCaret()
Draw the Caret at its current position.
 o drawCaret()
Draw the Caret at its current position.
 o run()
Run: flash the Caret at the prescribed rate.
 o setPosition(int, int, int)
Set the Caret's position.
 o setRegion(int, int, int, int, Rectangle)
Set the Draw Region for the caret.
 o setVisible(boolean)

Variables

 o stopped
 public boolean stopped
 o visible
 public boolean visible
 o displayed
 public boolean displayed

Constructors

 o Caret
 public Caret()

Methods

 o setVisible
 public synchronized void setVisible(boolean show)
 o setPosition
 public void setPosition(int x,
                         int y,
                         int height)
Set the Caret's position.

Parameters:
x - new X coordinate
y - new Y coordinate
height - the height of the cursor
 o setRegion
 public void setRegion(int x,
                       int y,
                       int width,
                       int height,
                       Rectangle region)
Set the Draw Region for the caret.

Parameters:
x - X coordinate of the region
y - Y coordinate of the region
width - the width of the region
height - the height of the region
 o drawCaret
 public void drawCaret()
Draw the Caret at its current position.

Parameters:
drawMode - mode in which to draw
 o clearCaret
 public void clearCaret()
Draw the Caret at its current position.

Parameters:
drawMode - mode in which to draw
 o run
 public void run()
Run: flash the Caret at the prescribed rate.

Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index