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
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 |
subnodes
public java.util.List subnodes
GroupNode
public GroupNode(Annotation annotation,
GroupNode parent,
GroupSpec spec)
- Parameters:
parent
- Parent node of this node.
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()