|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
gate.gui.STreeNode
public class STreeNode
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
STreeNode()
|
|
STreeNode(Annotation annot)
|
|
STreeNode(long start,
long end)
|
Method Summary | |
---|---|
boolean |
createAnnotation(Document doc,
String type,
String text,
long utteranceOffset)
Creates an annotation of the given type. |
void |
disconnectChildren()
|
Annotation |
getAnnotation()
|
long |
getEnd()
|
int |
getID()
|
int |
getLevel()
|
long |
getStart()
|
void |
removeAnnotation(Document doc)
Store the annotation in the deleted list so it can retrieved later |
void |
setAnnotation(Annotation annot)
This also sets the span to match the annotation span! |
void |
setEnd(long end)
|
void |
setLevel(int level)
|
void |
setLevel(long level)
|
void |
setStart(long start)
|
static boolean |
transferAnnotations(Document doc,
AnnotationSet targetAS)
Transfers the annotations from added to the given annotation set Also, for each annotation in removed, removes it from the given annotation set Called by OkAction() in the treeViewer to finalise the changes. |
static void |
undo(Document doc)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public STreeNode(Annotation annot)
public STreeNode(long start, long end)
public STreeNode()
Method Detail |
---|
public int getLevel()
getLevel
in class DefaultMutableTreeNode
public void setLevel(long level)
public void setLevel(int level)
public int getID()
public long getStart()
public void setStart(long start)
public long getEnd()
public void setEnd(long end)
public void setAnnotation(Annotation annot)
public Annotation getAnnotation()
public void disconnectChildren()
public boolean createAnnotation(Document doc, String type, String text, long utteranceOffset)
public static boolean transferAnnotations(Document doc, AnnotationSet targetAS)
public static void undo(Document doc)
public void removeAnnotation(Document doc)
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |