|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hdcookbook.grinxlet.GrinXlet
public class GrinXlet
This is a facade to the main controller in GrinView. It allows GrinView emulation of some of the features of the GrinXlet class found in xlets/grin_samples/GenericGame. This GrinView facade implements a subset of those methods, so any public methods added here must be present in the real xlet versions of GrinXlet.
In other words, the reason why a GrinView version of this class exists is so that a Director subclass can refer to it, and still work under GrinView.
If your project extends GameXlet, you'll probably want an se_src version of your extension for use with GrinView. This GrinView version of your extension should look like this:
public class MyGameXlet extends GameXlet { public MyGameXlet() { } ... }
Constructor Summary | |
---|---|
protected |
GrinXlet()
This constructor is for a subclass of GrinXlet. |
|
GrinXlet(GenericMain grinView)
This constructor is used by GrinView |
Method Summary | |
---|---|
AnimationClient[] |
getAnimationClients()
Get the list of animation clients |
AnimationEngine |
getAnimationEngine()
Get the animation engine |
static GrinXlet |
getInstance()
Get the instance of this singleton. |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent arg0)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent arg0)
|
void |
mouseEntered(java.awt.event.MouseEvent arg0)
|
void |
mouseExited(java.awt.event.MouseEvent arg0)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent arg0)
|
void |
mouseReleased(java.awt.event.MouseEvent arg0)
|
Show |
popKeyInterest()
Removes the show at the top of the key interest stack. |
void |
pushKeyInterest(Show show)
Inserts a new Show at the top of the key interest stack. |
void |
resetAnimationClients(AnimationClient[] clients)
Reset the list of animation clients |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrinXlet(GenericMain grinView)
protected GrinXlet()
Method Detail |
---|
public static GrinXlet getInstance()
public AnimationClient[] getAnimationClients()
public void resetAnimationClients(AnimationClient[] clients)
public AnimationEngine getAnimationEngine()
public void pushKeyInterest(Show show)
public Show popKeyInterest()
public void keyTyped(java.awt.event.KeyEvent arg0)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent arg0)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent arg0)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent arg0)
mouseExited
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent arg0)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |