facets.facet
Class FacetMaster.Viewer

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.facet.FacetMaster
          extended by facets.facet.FacetMaster.Viewer
Direct Known Subclasses:
facets.facet.toolkit.swing.ViewerMaster
Enclosing class:
FacetMaster

public abstract static class FacetMaster.Viewer
extends FacetMaster

Builds and manages avatar pane for a viewer facet.


Nested Class Summary
 
Nested classes/interfaces inherited from class facets.facet.FacetMaster
FacetMaster.Simple, FacetMaster.Viewer
 
Constructor Summary
FacetMaster.Viewer()
           
 
Method Summary
abstract  void focusGained()
          Notifies the facet that focus has been gained.
abstract  boolean isScrollable()
          Should the viewer facet scroll the avatar pane?
abstract  void refreshAvatars(Notifying.Impact impact)
          Update the avatar pane to match viewer content.
abstract  void requestPopup(int atX, int atY)
          Trigger the viewer facet to launch a popup-menu over the avatar pane.
abstract  ViewerTarget viewerTarget()
          The ViewerTarget representing the facet in the area target tree.
 
Methods inherited from class facets.facet.FacetMaster
attachedToFacet
 
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

FacetMaster.Viewer

public FacetMaster.Viewer()
Method Detail

refreshAvatars

public abstract void refreshAvatars(Notifying.Impact impact)
Update the avatar pane to match viewer content.

Called during each retargeting.

Parameters:
impact - TODO

viewerTarget

public abstract ViewerTarget viewerTarget()
The ViewerTarget representing the facet in the area target tree.

Returns:
the ViewerTarget to which the facet is attached.

focusGained

public abstract void focusGained()
Notifies the facet that focus has been gained.

Will trigger a retargeting.


isScrollable

public abstract boolean isScrollable()
Should the viewer facet scroll the avatar pane?


requestPopup

public abstract void requestPopup(int atX,
                                  int atY)
Trigger the viewer facet to launch a popup-menu over the avatar pane.

This method should be required only where the popup mouse event does not occur on the avatar pane itself. The viewer facet base should listen by default on the pane for a popup event, launching in response a menu defined by a MenuFacets created by the current ViewerContenter.

Parameters:
atX - position in avatar pane
atY - position in avatar pane