![]() |
Bridges-Java-3.0.1
3.0.1
Bridges(JavaAPI)
|
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) 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 next element.
E | The generic parameter object that is part of this element, representing application specific data. |
Classes | |
class | SLelementIterator |
Public Member Functions | |
SLelement () | |
SLelement (String label, E e) | |
SLelement (E e, SLelement< E > next) | |
SLelement (E e) | |
SLelement (SLelement< E > next) | |
String | getDataStructType () |
SLelement< E > | getNext () |
void | setNext (SLelement< E > next) |
String | toString () |
String | getDataStructureRepresentation () |
Iterator< SLelement< E > > | iterator () |
![]() | |
String | getDataStructType () |
Get the Element type name. More... | |
Element () | |
Element constructor. More... | |
Element (E val) | |
the constructor of Element More... | |
Element (String label, E val) | |
Constructor of Element. More... | |
Element (Element< E > original) | |
performing deep copy of an element when needed More... | |
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. More... | |
String | getClassName () |
int | compareTo (Element< E > e1) |
boolean | equals (Element< E > e1) |
String | getElementRepresentation () |
String | getDataStructureRepresentation () |
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. More... | |
String | getShape () |
void | setLocation (double locX, double locY) |
Set the location attributes of an element. More... | |
double | getLocationX () |
double | getLocationY () |
String | toString () |
![]() | |
abstract String | getDataStructType () |
abstract String | getDataStructureRepresentation () |
Protected Member Functions | |
void | getListElements (Vector< Element< E >> nodes) |
![]() | |
void | setLinkVisualizer (Element< E > el) |
Sets the link from this element to a new incoming element. More... | |
void | removeLinkVisualizer (Element< E > el) |
Removes the link from this element to a new incoming element. More... | |
void | validateVal (E value) |
Protected Attributes | |
SLelement< E > | next = null |
![]() | |
String | QUOTE = "\"" |
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 | ||
) |
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 | ) |
String bridges.base.SLelement< E >.getDataStructType | ( | ) |
This method gets the data structure type
String bridges.base.SLelement< E >.getDataStructureRepresentation | ( | ) |
Get the JSON representation of the the data structure
|
protected |
SLelement<E> bridges.base.SLelement< E >.getNext | ( | ) |
Retrieves the element following this element
Iterator<SLelement<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 a "simple" for loops
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 | ( | ) |
|
protected |