Bridges-Java-3.0.1  3.0.1
Bridges(JavaAPI)
Public Member Functions | Static Public Attributes | List of all members
bridges.base.ArrayElement< E > Class Template Reference
Inheritance diagram for bridges.base.ArrayElement< E >:
bridges.base.Element< E > bridges.base.DataStruct

Detailed Description

This class can be used to create arrays with generic types as follows: ArrayElement<E>[] myArray = (ArrayElement<E>[]) new ArrayElement[10]; Where E is: Tweet, Actor, Movie, Integer, String or other generic type

Author
Mihai Mehedint
Parameters
EUser type

Public Member Functions

 ArrayElement (String label, E type)
 
String getDataStructType ()
 
- Public Member Functions inherited from bridges.base.Element< E >
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)
 
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 ()
 
- Public Member Functions inherited from bridges.base.DataStruct
abstract String getDataStructType ()
 
abstract String getDataStructureRepresentation ()
 

Static Public Attributes

static int index
 

Additional Inherited Members

- 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. More...
 
void removeLinkVisualizer (Element< E > el)
 Removes the link from this element to a new incoming element. More...
 
void validateVal (E value)
 
- Protected Attributes inherited from bridges.base.DataStruct
String QUOTE = "\""
 

Constructor & Destructor Documentation

◆ ArrayElement()

bridges.base.ArrayElement< E >.ArrayElement ( String  label,
type 
)

Construct an array labeled "label" and holding elements of "type".

Parameters
labelthe label of ArrayElement that shows up on the Bridges visualization
typethe type of Element this array should be holding

Member Function Documentation

◆ getDataStructType()

String bridges.base.ArrayElement< E >.getDataStructType ( )

This method gets the data structure type

Returns
The date structure type as a string

Member Data Documentation

◆ index

int bridges.base.ArrayElement< E >.index
static

The documentation for this class was generated from the following file: