Class MarbleCanvas
Class MarbleCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----HilitCanvas
|
+----MarbleCanvas
- class MarbleCanvas
- extends HilitCanvas
- implements DecoderConstants
A class to hold the playing marbles. As an extension of HilitCanvas, the
marbles react to mouse movement. A playing marble must be selected in order
to interact with the board (represented by class DimpleCanvas).
@see DimpleCanvas
-
mouseDown(Event, int, int)
- Chooses a marble to play with.
-
mouseEnter(Event, int, int)
- Overloads parent function -- only reacts if marbles are unlocked.
-
mouseExit(Event, int, int)
- Overloads parent function -- only reacts if marbles are unlocked.
-
update(Graphics)
- Repaints without clearing.
mouseEnter
public boolean mouseEnter(Event e,
int x,
int y)
- Overloads parent function -- only reacts if marbles are unlocked.
- Overrides:
- mouseEnter in class HilitCanvas
mouseExit
public boolean mouseExit(Event e,
int x,
int y)
- Overloads parent function -- only reacts if marbles are unlocked.
- Overrides:
- mouseExit in class HilitCanvas
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- Chooses a marble to play with.
- Overrides:
- mouseDown in class HilitCanvas
update
public void update(Graphics g)
- Repaints without clearing. (Highlighted and
non-highlighted images are the same size for this
class.)
- Overrides:
- update in class Component