![]() |
Bridges-Java 3.5.1
Bridges(Java API)
|
This class is used to create doubly linked element objects. More...
Classes | |
| class | DLelementReverseIterator |
| A reverse iterator for doubly linked list as a DLelement. More... | |
Public Member Functions | |
| DLelement () | |
| DLelement (String label, E e) | |
| DLelement (DLelement< E > next, DLelement< E > prev) | |
| DLelement (E e, DLelement< E > next, DLelement< E > prev) | |
| String | getDataStructType () |
| DLelement< E > | getNext () |
| void | setNext (DLelement< E > nxt) |
| DLelement< E > | getPrev () |
| void | setPrev (DLelement< E > prv) |
| String | getDataStructureRepresentation () |
| Iterator< E > | reverse_iterator () |
Public Member Functions inherited from bridges.base.SLelement< E > | |
| SLelement () | |
| SLelement (String label, E e) | |
| SLelement (E e, SLelement< E > next) | |
| SLelement (E e) | |
| SLelement (SLelement< E > next) | |
| void | setNext (SLelement< E > next) |
| String | toString () |
| Iterator< E > | iterator () |
Public Member Functions inherited from bridges.base.Element< E > | |
| Element () | |
| Element constructor. | |
| Element (E val) | |
| the constructor of Element | |
| Element (String label, E val) | |
| Constructor of Element. | |
| Element (Element< E > original) | |
| performing deep copy of an element when needed | |
| String | getIdentifier () |
| void | setSize (double sz) |
| void | setColor (Color col) |
| Color | getColor () |
| void | setOpacity (float opacity) |
| double | getOpacity () |
| void | setShape (String aShape) |
| ElementVisualizer | getVisualizer () |
| void | setVisualizer (ElementVisualizer visualizer) |
| LinkVisualizer | getLinkVisualizer (Element< E > el) |
| Returns the Element's link visualizer object. | |
| 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) |
| E | getValue () |
| void | setValue (E value) |
| double | getSize () |
| void | setColor (String col) |
| Change the element color. | |
| String | getShape () |
| void | setLocation (double locX, double locY) |
| Set the location attributes of an element. | |
| double | getLocationX () |
| double | getLocationY () |
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 = "\"" |
| String | COMMA = "," |
| String | COLON = ":" |
| String | OPEN_CURLY = "{" |
| String | CLOSE_CURLY = "}" |
| String | OPEN_PAREN = "(" |
| String | CLOSE_PAREN = ")" |
| String | OPEN_BOX = "[" |
| String | CLOSE_BOX = "]" |
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) |
| Sets the link from this element to a new incoming element. | |
| void | removeLinkVisualizer (Element< E > el) |
| Removes the link from this element to a new incoming element. | |
| void | validateVal (E value) |
Static Package Attributes inherited from bridges.base.Element< E > | |
| static Integer | ids = 0 |
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 | ||
| ) |
Constructs a DLelement labeled "label", holding an object "e", with next and prev pointers set to null.
| label | the label for this DLelement that shows up on the Bridges visualization |
| e | the genereic object that is held in this element. |
| bridges.base.DLelement< E >.DLelement | ( | DLelement< E > | next, |
| DLelement< E > | prev | ||
| ) |
Constructs an empty DLelement with the next pointer set to the DLelement "next" and the prev pointer set to DLelement "prev".
| next | the DLelement that should be assigned to the next pointer |
| prev | the DLelement that should be assigned to the prev pointer |
| bridges.base.DLelement< E >.DLelement | ( | E | e, |
| DLelement< E > | next, | ||
| DLelement< E > | prev | ||
| ) |
Constructs a DLelement holding an object "e", with the next pointer set to the DLelement "next" and the prev pointer set to DLelement "prev".
| e | the genereic object that this DLelement is holding |
| next | the DLelement that should be assigned to the next pointer |
| prev | the DLelement that should be assigned to the prev pointer |
| 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 | ( | ) |
Get the JSON representation of the the data structure
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 returns the pointer to the previous DLelement
Reimplemented in bridges.base.CircDLelement< E >.
| Iterator< E > bridges.base.DLelement< E >.reverse_iterator | ( | ) |
Return an reverse iterator over the elements in the array. This is generally not called directly, but is called by Java when used in a "simple" for loops
Reimplemented in bridges.base.CircDLelement< E >.
| void bridges.base.DLelement< E >.setNext | ( | DLelement< E > | nxt | ) |
This method sets the pointer to the next DLelement
| nxt | the DLelement that should be assigned to the next pointer |
| void bridges.base.DLelement< E >.setPrev | ( | DLelement< E > | prv | ) |
This method sets the pointer to the previous DLelement
| prv | the DLelement that should be assigned to the prev pointer |
|
protected |