|
| BinTreeElement () |
|
| BinTreeElement (E e) |
|
| BinTreeElement (String label, E e) |
|
| BinTreeElement (BinTreeElement< E > left, BinTreeElement< E > right) |
|
| BinTreeElement (E e, BinTreeElement< E > left, BinTreeElement< E > right) |
|
String | getDataStructType () |
|
BinTreeElement< E > | getLeft () |
|
void | setLeft (BinTreeElement< E > left) |
|
BinTreeElement< E > | getRight () |
|
void | setRight (BinTreeElement< E > right) |
|
| TreeElement () |
|
| TreeElement (E e) |
|
| TreeElement (String label, E e) |
|
| TreeElement (TreeElement< E > left, TreeElement< E > right) |
|
| TreeElement (E e, TreeElement< E > left, TreeElement< E > right) |
|
String | getDataStructType () |
|
void | addChild (TreeElement< E > child) |
|
int | getNumberOfChildren () |
|
void | setChild (int index, TreeElement< E > child) |
|
TreeElement< E > | getChild (int index) |
|
String | getDataStructureRepresentation () |
|
String | getDataStructType () |
|
| Element () |
|
| Element (E val) |
|
| Element (String label, E val) |
|
| Element (Element< E > original) |
|
String | getIdentifier () |
|
ElementVisualizer | getVisualizer () |
|
void | setVisualizer (ElementVisualizer visualizer) |
|
LinkVisualizer | getLinkVisualizer (Element< E > el) |
|
String | getClassName () |
|
int | compareTo (Element< E > e1) |
|
boolean | equals (Element< E > e1) |
|
String | getElementRepresentation () |
|
String | getLinkRepresentation (LinkVisualizer lv, String src, String dest) |
|
String | getLabel () |
|
void | setLabel (String label) |
|
String | arrangeLabel (String label, int wordNumber) |
|
E | getValue () |
|
void | setValue (E value) |
|
String | toString () |
|
abstract String | getDataStructType () |
|
This class is extended from the TreeElement class and can be used to create binary tree element objects.
The BinTree element class is the building block for creating binary tree structures. It contains two children (viz., left, right).
BinTreeElement contains a visualizer (ElementVisualizer) object for setting visual attributes (color, shape, opacity, size), necessary for displaying them in a web browser.
Elements also have a LinkVisualizer object, that is used when they are linked to another element, appropriate for setting link attributes, for instance, between the current element and its left or right child
- Parameters
-
E | he generic parameter object that is part of this element, representing application specific data. |
- Author
- Kalpathi Subramanian, Mihai Mehedint
- Date
- 6/22/16, 1/7/17, 5/17/17
- See also
- Example Tutorial at
http://bridgesuncc.github.io/Hello_World_Tutorials/BTree.html