edu.stanford.nlp.trees.tregex.gui
Class TreeFromFile

java.lang.Object
  extended by edu.stanford.nlp.trees.tregex.gui.TreeFromFile

public class TreeFromFile
extends Object

Simple utility class for storing a tree as well as the sentence the tree represents and a label with the filename of the file that the tree was stored in.

Author:
Anna Rafferty

Constructor Summary
TreeFromFile(Tree t)
           
TreeFromFile(Tree t, String filename)
           
 
Method Summary
 String getFilename()
           
 JTextField getLabel()
           
 Tree getTree()
           
 void setFilename(String filename)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeFromFile

public TreeFromFile(Tree t)

TreeFromFile

public TreeFromFile(Tree t,
                    String filename)
Method Detail

getFilename

public String getFilename()

setFilename

public void setFilename(String filename)

getTree

public Tree getTree()

getLabel

public JTextField getLabel()

toString

public String toString()
Overrides:
toString in class Object


Stanford NLP Group