edu.umd.cs.jazz
Interface ZLayoutManager

All Superinterfaces:
ZSerializable
All Known Implementing Classes:
ZTreeLayoutManager, ZPathLayoutManager

public interface ZLayoutManager
extends ZSerializable

ZLayoutManager represents an object that can layout the children of a node.

Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.

Author:
Benjamin B. Bederson
See Also:
ZNode

Method Summary
 java.lang.Object clone()
          Layout manager objects must provide a public clone method
 void doLayout(ZGroup node)
          Apply this manager's layout algorithm to the specified node's children.
 void doLayout(ZGroup node, int millis)
          Apply this manager's layout algorithm to the specified node's children, and animate the changes over time.
 void postLayout(ZGroup node)
          Notify the layout manager that the layout for this node has finished This is called after all children and the node itself are layed out.
 void preLayout(ZGroup node)
          Notify the layout manager that a potentially recursive layout is starting.
 
Methods inherited from interface edu.umd.cs.jazz.io.ZSerializable
setState, writeObject, writeObjectRecurse
 

Method Detail

doLayout

public void doLayout(ZGroup node)
Apply this manager's layout algorithm to the specified node's children.
Parameters:
The - node to apply this layout algorithm to.

doLayout

public void doLayout(ZGroup node,
                     int millis)
Apply this manager's layout algorithm to the specified node's children, and animate the changes over time.
Parameters:
node - The node to apply this layout algorithm to.
millis - The number of milliseconds over which to animate layout changes.

preLayout

public void preLayout(ZGroup node)
Notify the layout manager that a potentially recursive layout is starting. This is called before any children are layed out.
Parameters:
node - The node to apply this layout algorithm to.

postLayout

public void postLayout(ZGroup node)
Notify the layout manager that the layout for this node has finished This is called after all children and the node itself are layed out.
Parameters:
node - The node to apply this layout algorithm to.

clone

public java.lang.Object clone()
Layout manager objects must provide a public clone method
Overrides:
clone in class java.lang.Object


Copyright © 2001 by University of Maryland, College Park, MD 20742, USA All rights reserved.