de.jaret.util.ui.timebars.model
Interface HierarchicalTimeBarModel

All Known Implementing Classes:
DefaultHierarchicalTimeBarModel

public interface HierarchicalTimeBarModel

Interface describing a hierarchical model. As of version 0.96 this is not an extension of the TimeBarModel since the extraction of the view state (expanded state) in the hierarchy did imply a stricter separation. Care should be taken if nodes should appear in several positions in the node. There is no restriction on this by the model itself. However the ViewState will not distinguish the state of equal nodes in different positions resulting in the same expanded state of all equal nodes.

Version:
$Id: HierarchicalTimeBarModel.java 800 2008-12-27 22:27:33Z kliem $
Author:
Peter Kliem

Method Summary
 int getDepth()
          Retrieve the depth of the hierarchy.
 TimeBarNode getRootNode()
          Retrieve the root node of the hierarchy.
 void setDepth(int depth)
          Little helper.
 

Method Detail

getDepth

int getDepth()
Retrieve the depth of the hierarchy.

Returns:
depth of the hierarchy

setDepth

void setDepth(int depth)
Little helper. May be removed in future revisions.

Parameters:
depth - the depth to set

getRootNode

TimeBarNode getRootNode()
Retrieve the root node of the hierarchy.

Returns:
the root node


Copyright © 2012. All Rights Reserved.