|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.mirovsky.trees.TNode
public class TNode
A representation of a node in a tree. It points to its father, its first son and its immediate brother.
Field Summary | |
---|---|
TNode |
brother
|
TNode |
first_son
|
boolean |
matching_edge
|
boolean |
matching_node
|
TNode |
parent
|
float |
poradi_N
|
float |
poradi_W
|
boolean |
skryvany
|
TValue |
values
|
Constructor Summary | |
---|---|
TNode()
|
Method Summary | |
---|---|
void |
addAttributes(int number)
It increases number of attributes at the node by the given number. |
TNode |
getClone()
Returns a deep copy of the node and its whole subtree. |
int |
getNumberOfSets()
Returns the number of present sets. |
java.awt.Rectangle |
getRectangle()
Returns the rectangle covering the area of the displayed node along with its labels. |
TValue |
getSetOfAttributes(int set_number)
Returns the set of attributes with the given number (counted from 0). |
java.lang.String |
getValue(int set_number,
int attr_number,
int value_number)
Returns the value of the attribute with the given number of set and the given number of attribute and number of value (counted from 0). |
TAHLine |
getValues(int set_number,
int attr_number)
Returns a linked list of values of the attribute with the given number of set and the given number of attribute (counted from 0). |
int |
getX()
Returns the x-position of the displayed node |
int |
getY()
Returns the y-position of the displayed node |
void |
setRectangle(java.awt.Rectangle rectangle_new)
Sets the computed rectangle covering the area occupied by the displayed node and its labels. |
void |
setX(int x_new)
Sets the x-position of the displayed node |
void |
setY(int y_new)
Sets the y-position of the displayed node |
java.lang.String |
toFSString(NGTreeHead head,
boolean recursively)
Returns FS representation of the node (recursively or not) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public TValue values
public TNode brother
public TNode first_son
public TNode parent
public float poradi_W
public float poradi_N
public boolean skryvany
public boolean matching_node
public boolean matching_edge
Constructor Detail |
---|
public TNode()
Method Detail |
---|
public TNode getClone()
public java.lang.String toFSString(NGTreeHead head, boolean recursively)
head
- a head to the treerecursively
- true iff subtree should be processed too
public int getX()
public int getY()
public void setX(int x_new)
x_new
- the new x-position of the nodepublic void setY(int y_new)
y_new
- the new y-position of the nodepublic java.awt.Rectangle getRectangle()
public void setRectangle(java.awt.Rectangle rectangle_new)
rectangle_new
- the new rectanglepublic java.lang.String getValue(int set_number, int attr_number, int value_number)
public TAHLine getValues(int set_number, int attr_number)
public TValue getSetOfAttributes(int set_number)
public int getNumberOfSets()
public void addAttributes(int number)
number
- number of attributes to be added
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |