anvil.annot
Class GroupNode

java.lang.Object
  |
  +--java.util.Observable
        |
        +--anvil.annot.AnvilAnnotationNode
              |
              +--anvil.annot.GroupNode
All Implemented Interfaces:
AnnotationNode

public class GroupNode
extends AnvilAnnotationNode

Group nodes do not contain elements. They merely group tracks (and groups) together, and allow inheritence of attributes


Field Summary
 java.util.List subnodes
           
 
Fields inherited from class anvil.annot.AnvilAnnotationNode
annotation, name, open, parent, spec, visible
 
Constructor Summary
GroupNode(Annotation annotation, GroupNode parent, GroupSpec spec)
           
 
Method Summary
 void addSub(AnnotationNode node)
           
 int getNumOfElements()
           
 GroupSpec getSpec()
           
 java.util.List getSubnodes()
          Returns all subnodes, ie. tracks and groups of this one.
protected  boolean removeSub(AnnotationNode node)
          Should only be called by Annotation.
 void setOpen(boolean b)
          Set the open attribute which indicates that the node is collapsed and thus hidden from view.
 void setVisible(boolean b)
           
 java.lang.String toString()
           
 
Methods inherited from class anvil.annot.AnvilAnnotationNode
getFirstHidden, getName, getParent, getShortName, isOpen, isVisible
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subnodes

public java.util.List subnodes
Constructor Detail

GroupNode

public GroupNode(Annotation annotation,
                 GroupNode parent,
                 GroupSpec spec)
Parameters:
parent - Parent node of this node.
Method Detail

addSub

public void addSub(AnnotationNode node)

removeSub

protected boolean removeSub(AnnotationNode node)
Should only be called by Annotation.


getSubnodes

public java.util.List getSubnodes()
Returns all subnodes, ie. tracks and groups of this one.


setOpen

public void setOpen(boolean b)
Description copied from interface: AnnotationNode
Set the open attribute which indicates that the node is collapsed and thus hidden from view.

Specified by:
setOpen in interface AnnotationNode
Overrides:
setOpen in class AnvilAnnotationNode

setVisible

public void setVisible(boolean b)
Specified by:
setVisible in interface AnnotationNode
Overrides:
setVisible in class AnvilAnnotationNode

getNumOfElements

public int getNumOfElements()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSpec

public GroupSpec getSpec()