All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class linguist.quickshow.CursorHilite

linguist.quickshow.CursorHilite

public class CursorHilite
Manage a cursor-based effect. This can be any feature of the Stage that is based on the cursor; typically a graphic that follows the cursor around.


Variable Index

 o color
The color of the hilite, if needed.
 o curX
The current position of the hilite.
 o curY
The current position of the hilite.
 o newX
The new position of the hilite.
 o newY
The new position of the hilite.
 o stage
The Stage that owns this CursorHilite.

Constructor Index

 o CursorHilite()
The constructor.

Method Index

 o draw(Graphics)
Draw the hilite.
 o getColor()
Get the color of this hilite.
 o getInvalid()
Get the invalid rectangle
 o init(Stage)
Initialize this object.
 o iterate()
Run one step of the hilte.
 o setColor(Color)
Change the color of this hilite.
 o setCursorPosition(int, int)
Set a new base position for this hilite.
 o setInvalid(Rectangle)
Set the invalid rectangle for this hilite.
 o start()
Do all initialization here.

Variables

 o stage
 protected Stage stage
The Stage that owns this CursorHilite.

 o curX
 protected int curX
The current position of the hilite.

 o curY
 protected int curY
The current position of the hilite.

 o newX
 protected int newX
The new position of the hilite.

 o newY
 protected int newY
The new position of the hilite.

 o color
 protected Color color
The color of the hilite, if needed.

Constructors

 o CursorHilite
 public CursorHilite()
The constructor.

Parameters:
stage - the Stage that owns this CursorHilite.

Methods

 o init
 public void init(Stage stage)
Initialize this object.

Parameters:
stage - the Stage that owns this CursorHilite.
 o start
 protected void start()
Do all initialization here. This is called after the Thread has started.

 o iterate
 protected void iterate()
Run one step of the hilte.

 o draw
 public void draw(Graphics g)
Draw the hilite.

 o setCursorPosition
 public void setCursorPosition(int x,
                               int y)
Set a new base position for this hilite.

 o getColor
 public Color getColor()
Get the color of this hilite.

Returns:
The current color.
 o setColor
 public void setColor(Color c)
Change the color of this hilite. Override as necessary.

Parameters:
c - the new color.
 o getInvalid
 public Rectangle getInvalid()
Get the invalid rectangle

Returns:
The invalid Rectangle.
 o setInvalid
 public void setInvalid(Rectangle r)
Set the invalid rectangle for this hilite.

Parameters:
r - the new invalid rectangle.

All Packages  Class Hierarchy  This Package  Previous  Next  Index