| Constructor and Description |
|---|
BCTreeNode(BCNodeType type,
java.lang.Object content)
Construct the BC-tree node of the specified type and with the given content
|
BCTreeNode(java.lang.Object content)
Construct the BC-tree node with the given content
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContent() |
BCTreeNode |
getParent() |
java.awt.Dimension |
getSize() |
BCNodeType |
getType() |
void |
setContent(java.lang.Object content) |
void |
setParent(BCTreeNode parent) |
void |
setSize(java.awt.Dimension size) |
void |
setType(BCNodeType type) |
java.lang.String |
toString() |
public BCTreeNode(BCNodeType type, java.lang.Object content)
type - Type of the node (B or C)content - Node's contentpublic BCTreeNode(java.lang.Object content)
content - Node's contentpublic java.awt.Dimension getSize()
public java.lang.Object getContent()
getContent in interface Vertexpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setSize(java.awt.Dimension size)
public void setContent(java.lang.Object content)
setContent in interface Vertexcontent - Content to setpublic BCNodeType getType()
public void setType(BCNodeType type)
type - the type to setpublic BCTreeNode getParent()
public void setParent(BCTreeNode parent)
parent - the parent to set