|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.core.app.avatar.AvatarPolicy
public abstract class AvatarPolicy
Defines how a custom avatar should paint its content.
An AvatarPolicy supplies the Painters needed
by an avatar to paint its content in different selection and
pick states.
| Field Summary | |
|---|---|
static java.lang.Integer |
STATE_NORMAL
|
static java.lang.Integer |
STATE_PICKED_SELECTED
|
| Constructor Summary | |
|---|---|
AvatarPolicy()
|
|
| Method Summary | |
|---|---|
void |
avatarNotPicked()
Allows the policy to define a response where no avatar has been picked. |
abstract Painter[] |
newPickPainters(java.lang.Object hit,
boolean selected)
Return motion painters to appear over the view painters. |
abstract Painter[] |
newViewPainters(boolean selected,
boolean active)
Return painters for the unpicked avatar. |
java.lang.Object |
stateCursor(java.lang.Object state)
Defines the cursor to appear over the avatar in different pick states. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Integer STATE_NORMAL
public static final java.lang.Integer STATE_PICKED_SELECTED
| Constructor Detail |
|---|
public AvatarPolicy()
| Method Detail |
|---|
public abstract Painter[] newViewPainters(boolean selected,
boolean active)
selected - is the avatar selected?active - is the view active?
public abstract Painter[] newPickPainters(java.lang.Object hit,
boolean selected)
selected - is the avatar selected?hit - defines where the hit occurred that triggered the change in painterspublic java.lang.Object stateCursor(java.lang.Object state)
public void avatarNotPicked()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||