|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.util.Tracer
facets.core.app.avatar.AvatarPolicies
public abstract class AvatarPolicies
Mix-in for avatar creation, painting and drag policies.
AvatarPolicies enables content policies for an AvatarView
to be separated cleanly from the display policy.
| Constructor Summary | |
|---|---|
AvatarPolicies()
|
|
| Method Summary | |
|---|---|
AvatarPolicy |
avatarPolicy(SViewer viewer,
AvatarContent content,
PainterSource p)
/** Defines how an avatar should paint its content. |
DragPolicy |
dragPolicy(AvatarView view,
AvatarContent[] content,
java.lang.Object hit,
PainterSource p)
Defines how the viewer should drag an avatar selection. |
Painter |
getBackgroundPainter(SViewer viewer,
PainterSource p)
/** Return painters for non-avatar view elements. |
boolean |
isContentSelectable(AvatarContent content)
|
SSelection |
newAvatarSelection(SViewer viewer,
SSelection viewable)
Return avatar content to be displayed by viewer. |
| Methods inherited from class facets.util.Tracer |
|---|
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AvatarPolicies()
| Method Detail |
|---|
public boolean isContentSelectable(AvatarContent content)
public Painter getBackgroundPainter(SViewer viewer,
PainterSource p)
viewer - for references to view, selectionp - must be supplied by a facet builder
null Painter[];by default an empty array
public AvatarPolicy avatarPolicy(SViewer viewer,
AvatarContent content,
PainterSource p)
content - to be paintedp - must be supplied by a facet builder
public DragPolicy dragPolicy(AvatarView view,
AvatarContent[] content,
java.lang.Object hit,
PainterSource p)
content - content of the avatars selectedhit - specifies where the drag was initiated in selectionp - must be supplied by a facet builderview - will use the policy
public SSelection newAvatarSelection(SViewer viewer,
SSelection viewable)
Facilitates delegation by implementations of ViewableFrame.newViewerSelection(SViewer);
viewer - controlled by the AvatarView returning the receiver
as AvatarView.avatars()viewable - the current SelectingFrame.selection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||