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.)
-
displayed
-
-
stopped
-
-
visible
-
-
Caret()
-
-
clearCaret()
- Draw the Caret at its current position.
-
drawCaret()
- Draw the Caret at its current position.
-
run()
- Run: flash the Caret at the prescribed rate.
-
setPosition(int, int, int)
- Set the Caret's position.
-
setRegion(int, int, int, int, Rectangle)
- Set the Draw Region for the caret.
-
setVisible(boolean)
-
stopped
public boolean stopped
visible
public boolean visible
displayed
public boolean displayed
Caret
public Caret()
setVisible
public synchronized void setVisible(boolean show)
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
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
drawCaret
public void drawCaret()
- Draw the Caret at its current position.
- Parameters:
- drawMode - mode in which to draw
clearCaret
public void clearCaret()
- Draw the Caret at its current position.
- Parameters:
- drawMode - mode in which to draw
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