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

Method Index

 o mouseDown(Event, int, int)
Chooses a marble to play with.
 o mouseEnter(Event, int, int)
Overloads parent function -- only reacts if marbles are unlocked.
 o mouseExit(Event, int, int)
Overloads parent function -- only reacts if marbles are unlocked.
 o update(Graphics)
Repaints without clearing.

Methods

 o mouseEnter
  public boolean mouseEnter(Event e,
                            int x,
                            int y)
Overloads parent function -- only reacts if marbles are unlocked.
Overrides:
mouseEnter in class HilitCanvas
 o mouseExit
  public boolean mouseExit(Event e,
                           int x,
                           int y)
Overloads parent function -- only reacts if marbles are unlocked.
Overrides:
mouseExit in class HilitCanvas
 o mouseDown
  public boolean mouseDown(Event e,
                           int x,
                           int y)
Chooses a marble to play with.
Overrides:
mouseDown in class HilitCanvas
 o 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