edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView Class Reference

Inherits edu.cmu.hcii.calo.view.AnimatedPane.

Inheritance diagram for edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView:

Inheritance graph
[legend]
Collaboration diagram for edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView:

Collaboration graph
[legend]
List of all members.

Detailed Description

A container view (as the name implies) that holds all three subpanes of the task pane and animates them when their contents change.

Author:
Brian Ellis


Public Member Functions

void updateTasks ()
 Causes the task views within each subpane to update, without actually updating the subpanes themselves.

Protected Member Functions

boolean doAnimations ()
 Should be implemented to record the positions of all the components in the view so they can be animated from their old positions, and then create and start the necessary Animation objects to perform these animations.
void doUpdate ()
 Should be implemented to synchronize the view with the model on which it depends.
void prepareAnimations ()
 Should be implemented to record the positions of all the components in the view so they can be animated to their new positions later.
void safeUpdateAnimation (Animation a)
 Should be implemented to process an updated animation, just like AnimationListener.animationDidUpdate(Animation).

Private Attributes

Map< Component, Rectangle > bounds = new HashMap<Component, Rectangle>()
 The mapping of the subpanes to their bounds rectangles.

Static Private Attributes

static final long serialVersionUID = -1152108861501116678L
 Prevent serialization collisions.


Member Function Documentation

boolean edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView.doAnimations (  )  [protected, virtual]

Should be implemented to record the positions of all the components in the view so they can be animated from their old positions, and then create and start the necessary Animation objects to perform these animations.

Implements edu.cmu.hcii.calo.view.AnimatedPane.

void edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView.doUpdate (  )  [protected, virtual]

Should be implemented to synchronize the view with the model on which it depends.

AnimatedPane provides a public update() method to the client code which calls doUpdate automatically.

Implements edu.cmu.hcii.calo.view.AnimatedPane.

void edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView.prepareAnimations (  )  [protected, virtual]

Should be implemented to record the positions of all the components in the view so they can be animated to their new positions later.

prepareAnimations() is called from update() before doUpdate() is invoked, so the component positions are unchanged from what they were before the update.

Implements edu.cmu.hcii.calo.view.AnimatedPane.

void edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView.safeUpdateAnimation ( Animation  a  )  [protected, virtual]

Should be implemented to process an updated animation, just like AnimationListener.animationDidUpdate(Animation).

This method exists because AnimatedPane performs some automatic setup and teardown in animationDidUpdate(Animation), and calls safeUpdateAnimation(Animation) in between.

Parameters:
a the animation that is updating

Implements edu.cmu.hcii.calo.view.AnimatedPane.

void edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView.updateTasks (  ) 

Causes the task views within each subpane to update, without actually updating the subpanes themselves.

Note:
This differs from update() in that the adding, removing, and reordering of tasks will not be correctly reflected, but it is much, much less expensive than a full update().


Member Data Documentation

final long edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView.serialVersionUID = -1152108861501116678L [static, private]

Prevent serialization collisions.

Reimplemented from edu.cmu.hcii.calo.view.CALOComponent.

Map<Component, Rectangle> edu.cmu.hcii.calo.view.task.TaskSubpaneContainerView.bounds = new HashMap<Component, Rectangle>() [private]

The mapping of the subpanes to their bounds rectangles.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:27 2007 for CALO by  doxygen 1.5.2