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.
-
color
- The color of the hilite, if needed.
-
curX
- The current position of the hilite.
-
curY
- The current position of the hilite.
-
newX
- The new position of the hilite.
-
newY
- The new position of the hilite.
-
stage
- The Stage that owns this CursorHilite.
-
CursorHilite()
- The constructor.
-
draw(Graphics)
- Draw the hilite.
-
getColor()
- Get the color of this hilite.
-
getInvalid()
- Get the invalid rectangle
-
init(Stage)
- Initialize this object.
-
iterate()
- Run one step of the hilte.
-
setColor(Color)
- Change the color of this hilite.
-
setCursorPosition(int, int)
- Set a new base position for this hilite.
-
setInvalid(Rectangle)
- Set the invalid rectangle for this hilite.
-
start()
- Do all initialization here.
stage
protected Stage stage
- The Stage that owns this CursorHilite.
curX
protected int curX
- The current position of the hilite.
curY
protected int curY
- The current position of the hilite.
newX
protected int newX
- The new position of the hilite.
newY
protected int newY
- The new position of the hilite.
color
protected Color color
- The color of the hilite, if needed.
CursorHilite
public CursorHilite()
- The constructor.
- Parameters:
- stage - the Stage that owns this CursorHilite.
init
public void init(Stage stage)
- Initialize this object.
- Parameters:
- stage - the Stage that owns this CursorHilite.
start
protected void start()
- Do all initialization here.
This is called after the Thread has started.
iterate
protected void iterate()
- Run one step of the hilte.
draw
public void draw(Graphics g)
- Draw the hilite.
setCursorPosition
public void setCursorPosition(int x,
int y)
- Set a new base position for this hilite.
getColor
public Color getColor()
- Get the color of this hilite.
- Returns:
- The current color.
setColor
public void setColor(Color c)
- Change the color of this hilite.
Override as necessary.
- Parameters:
- c - the new color.
getInvalid
public Rectangle getInvalid()
- Get the invalid rectangle
- Returns:
- The invalid Rectangle.
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