Behold, Nenya, Ring of Water and repository for our media and animation related
goodies, both Java 2D and LWJGL/JME 3D. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// $Id$
|
||||
|
||||
package com.threerings.media.sprite.action;
|
||||
|
||||
/**
|
||||
* An Action sprite is a sprite that may be pressed to generate an
|
||||
* ActionEvent that will be posted to the Controller hierarchy.
|
||||
*/
|
||||
public interface ActionSprite
|
||||
{
|
||||
/**
|
||||
* @return the action command to submit if this sprite is clicked.
|
||||
*/
|
||||
public String getActionCommand ();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// $Id$
|
||||
|
||||
package com.threerings.media.sprite.action;
|
||||
|
||||
/**
|
||||
* An ActionSprite that wishes to be notified of events when it is armed
|
||||
* or not.
|
||||
*/
|
||||
public interface ArmingSprite extends ActionSprite
|
||||
{
|
||||
/**
|
||||
* Render this sprite such that is is drawn "armed".
|
||||
*/
|
||||
public void setArmed (boolean armed);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// $Id$
|
||||
|
||||
package com.threerings.media.sprite.action;
|
||||
|
||||
/**
|
||||
* Extends CommandSprite to be a sprite that posts CommandEvents to
|
||||
* the Controller hierarchy.
|
||||
*/
|
||||
public interface CommandSprite extends ActionSprite
|
||||
{
|
||||
/**
|
||||
* @return the argument to the action command.
|
||||
*/
|
||||
public Object getCommandArgument();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// $Id$
|
||||
|
||||
package com.threerings.media.sprite.action;
|
||||
|
||||
/**
|
||||
* Indicates a Sprite that may or may not be enabled to receive
|
||||
* action / hover / arming notifications.
|
||||
*/
|
||||
public interface DisableableSprite
|
||||
{
|
||||
/**
|
||||
* @return true if this sprite is currently enabled.
|
||||
*/
|
||||
public boolean isEnabled ();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// $Id$
|
||||
|
||||
package com.threerings.media.sprite.action;
|
||||
|
||||
/**
|
||||
* An interface indicating that a sprite wishes to be notified when
|
||||
* the mouse hovers over it.
|
||||
*/
|
||||
public interface HoverSprite
|
||||
{
|
||||
/**
|
||||
* Set the current hover state.
|
||||
*/
|
||||
public void setHovered (boolean hovered);
|
||||
}
|
||||
Reference in New Issue
Block a user