![]() |
Bridges-Java 3.5.1
Bridges(Java API)
|
Classes | |
| class | SLelementIterator |
| Implements an iterator singly linked list compatible with SLelement for ease iterating over lists. More... | |
Protected Member Functions | |
| 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) |
Protected Attributes | |
| 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 | |
Static Package Attributes inherited from bridges.base.Element< E > | |
| static Integer | ids = 0 |
@brief This class can be used to instantiate Singly Linked Elements. This class extends Element and takes a generic parameter E
representing application specific data. This element forms the basic building block for singly linked lists. Singly linked elements have a field pointing to the next element along the list.
Elements contain a visualizer, ElementVisualizer, 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 next element.
| E | The generic parameter object that is part of this element, representing application specific data. |
| bridges.base.SLelement< E >.SLelement | ( | ) |
This constructor creates an SLelement object and sets the next pointer to null
| bridges.base.SLelement< E >.SLelement | ( | String | label, |
| E | e | ||
| ) |
This constructor creates an SLelement object of generic parameter object E, and label "label" and sets the next pointer to null
| label | the label of SLelement that shows up on the Bridges visualization |
| e | the generic object that this SLelement will hold |
| bridges.base.SLelement< E >.SLelement | ( | E | e, |
| SLelement< E > | next | ||
| ) |
Creates a new element with value "e" and sets the next pointer to the SLelement referenced by the "next" argument
| e | the generic object that this element will hold |
| next | the element that should be assigned to the next pointer |
| bridges.base.SLelement< E >.SLelement | ( | E | e | ) |
Creates a new element with value "e"
| e | the generic object that this element will hold |
| bridges.base.SLelement< E >.SLelement | ( | SLelement< E > | next | ) |
Creates a new element and sets the next pointer to the SLelement "next"
| next | the SLelement that should be assigned to the next pointer |
| String bridges.base.SLelement< E >.getDataStructType | ( | ) |
This method gets the data structure type
Reimplemented from bridges.base.Element< E >.
Reimplemented in bridges.base.CircDLelement< E >, bridges.base.CircSLelement< E >, bridges.base.DLelement< E >, and bridges.base.MLelement< E >.
| String bridges.base.SLelement< E >.getDataStructureRepresentation | ( | ) |
Get the JSON representation of the the data structure
Reimplemented from bridges.base.Element< E >.
Reimplemented in bridges.base.DLelement< E >, and bridges.base.MLelement< E >.
|
protected |
Get the elements of the list - used internally for JSON construction
| nodes | a vector of the ndoes in the list |
Reimplemented in bridges.base.MLelement< E >.
| SLelement< E > bridges.base.SLelement< E >.getNext | ( | ) |
Retrieves the element following this element
Reimplemented in bridges.base.CircDLelement< E >, bridges.base.CircSLelement< E >, bridges.base.DLelement< E >, and bridges.base.MLelement< E >.
| Iterator< E > bridges.base.SLelement< E >.iterator | ( | ) |
Return an iterator over the elements in the array. This is generally not called directly, but is called by Java when used in "simple" for loops
Reimplemented in bridges.base.CircDLelement< E >, and bridges.base.CircSLelement< E >.
| void bridges.base.SLelement< E >.setNext | ( | SLelement< E > | next | ) |
Sets the element to point to the next SLelement, updates the link visualizer
| next | SLelement<E> that should be assigned to the next pointer |
| String bridges.base.SLelement< E >.toString | ( | ) |
Reimplemented from bridges.base.Element< E >.
Reimplemented in bridges.base.CircSLelement< E >.
|
protected |