![]() |
Bridges-Java-2.4
2.4.2
Bridges(JavaAPI)
|
This class is used to create doubly linked element objects. More...
Protected Attributes | |
| DLelement< E > | prev |
Protected Attributes inherited from bridges.base.SLelement< E > | |
| SLelement< E > | next = null |
Protected Attributes inherited from bridges.base.DataStruct | |
| String | QUOTE = "\"" |
Additional Inherited Members | |
Protected Member Functions inherited from bridges.base.SLelement< E > | |
| void | getListElements (Vector< Element< E >> nodes) |
Protected Member Functions inherited from bridges.base.Element< E > | |
| void | setLinkVisualizer (Element< E > el) |
| void | removeLinkVisualizer (Element< E > el) |
| void | validateVal (E value) |
This class is used to create doubly linked element objects.
This class extends Element and takes a generic parameter <E> representing application specific data. This element forms the basic building block for doubly linked lists. Doubly linked elements have two links, "next" and "previous", that point to the previous and succeeding nodes along the list.
Elements contain 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, such as in linked lists, between the current element and its next or previous nodes.
| <E> | The generic parameter object that is part of this element, representing application specific data. |
| bridges.base.DLelement< E >.DLelement | ( | ) |
Constructs an empty DLelement with next and prev pointers set to null.
| bridges.base.DLelement< E >.DLelement | ( | String | label, |
| E | e | ||
| ) |
| bridges.base.DLelement< E >.DLelement | ( | DLelement< E > | next, |
| DLelement< E > | prev | ||
| ) |
| bridges.base.DLelement< E >.DLelement | ( | E | e, |
| DLelement< E > | next, | ||
| DLelement< E > | prev | ||
| ) |
| String bridges.base.DLelement< E >.getDataStructType | ( | ) |
This method gets the data structure type
Reimplemented from bridges.base.SLelement< E >.
Reimplemented in bridges.base.CircDLelement< E >.
| String bridges.base.DLelement< E >.getDataStructureRepresentation | ( | ) |
Reimplemented from bridges.base.SLelement< E >.
| DLelement<E> bridges.base.DLelement< E >.getNext | ( | ) |
This method returns the pointer to the next DLelement
Reimplemented from bridges.base.SLelement< E >.
Reimplemented in bridges.base.CircDLelement< E >.
| DLelement<E> bridges.base.DLelement< E >.getPrev | ( | ) |
This method sets the pointer to the next DLelement
| next | the DLelement that should be assigned to the next pointerThis method returns the pointer to the previous DLelement |
Reimplemented in bridges.base.CircDLelement< E >.
| void bridges.base.DLelement< E >.setPrev | ( | DLelement< E > | prv | ) |
|
protected |
1.8.16