anvil.annot
Class AnvilAnnotationNode

java.lang.Object
  |
  +--java.util.Observable
        |
        +--anvil.annot.AnvilAnnotationNode
All Implemented Interfaces:
AnnotationNode
Direct Known Subclasses:
AnnotationContainer, GroupNode, StaticTrack

public abstract class AnvilAnnotationNode
extends java.util.Observable
implements AnnotationNode


Field Summary
protected  AnvilAnnotation annotation
           
protected  java.lang.String name
           
protected  boolean open
          This var. determines whether the group is conflated (i.e. not visible on the annotation board) or open (normal state).
protected  GroupNode parent
           
protected  NodeSpec spec
           
protected  boolean visible
          Var. shows whether the track/group can be seen.
 
Constructor Summary
AnvilAnnotationNode()
           
AnvilAnnotationNode(Annotation annot, GroupNode parent, NodeSpec spec)
           
 
Method Summary
 AnnotationNode getFirstHidden()
          Returns first visible annotation node.
 java.lang.String getName()
          Returns full name of the annotation node, e.g. gesture.deictic
 GroupNode getParent()
          Returns parent node of this node.
 java.lang.String getShortName()
          Returns node name without path (e.g.
 boolean isOpen()
          Returns true if this node is open.
 boolean isVisible()
          Returns true if this node is visible.
 void setOpen(boolean b)
          Set the open attribute which indicates that the node is collapsed and thus hidden from view.
 void setVisible(boolean b)
           
 
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, toString, wait, wait, wait
 

Field Detail

annotation

protected AnvilAnnotation annotation

name

protected java.lang.String name

spec

protected NodeSpec spec

open

protected boolean open
This var. determines whether the group is conflated (i.e. not visible on the annotation board) or open (normal state).


parent

protected GroupNode parent

visible

protected boolean visible
Var. shows whether the track/group can be seen.

Constructor Detail

AnvilAnnotationNode

public AnvilAnnotationNode()

AnvilAnnotationNode

public AnvilAnnotationNode(Annotation annot,
                           GroupNode parent,
                           NodeSpec spec)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: AnnotationNode
Returns full name of the annotation node, e.g. gesture.deictic

Specified by:
getName in interface AnnotationNode

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

setVisible

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

getShortName

public java.lang.String getShortName()
Description copied from interface: AnnotationNode
Returns node name without path (e.g. "deictic" instead of "gesture.deictic")

Specified by:
getShortName in interface AnnotationNode

getParent

public GroupNode getParent()
Description copied from interface: AnnotationNode
Returns parent node of this node.

Specified by:
getParent in interface AnnotationNode

isOpen

public boolean isOpen()
Description copied from interface: AnnotationNode
Returns true if this node is open. Note that an open node is not necessarily visible!

Specified by:
isOpen in interface AnnotationNode

isVisible

public boolean isVisible()
Description copied from interface: AnnotationNode
Returns true if this node is visible.

Specified by:
isVisible in interface AnnotationNode

getFirstHidden

public AnnotationNode getFirstHidden()
Description copied from interface: AnnotationNode
Returns first visible annotation node.

Specified by:
getFirstHidden in interface AnnotationNode