exlabel.structure.ExGraph Class Reference

Inherits exlabel.structure.IExGraph.

Inheritance diagram for exlabel.structure.ExGraph:

[legend]
Collaboration diagram for exlabel.structure.ExGraph:
[legend]
List of all members.

Public Member Functions

 ExGraph (String filename, int x, int y)
void draw (Graphics2D g2d)
void update ()
void setSize (int x, int y)
ExNode hitNode (int x, int y)
int hitNodeInt (int x, int y)
ExEdge hitEdge (int x, int y)
ExNode getNodeById (int i)
boolean addNode (ExNode newnode)
boolean addEdge (ExEdge newedge)
boolean setInsertDraggingTempNode (int xpos, int ypos, int zpos, int radius, float mass)
boolean setInsertDraggingTempEdge (ExNode startNode, ExNode endNode, String Label)
ExRenderer getRender ()
void disableTempNodeDrawing ()
void enableTempNodeDrawing ()
void disableTempEdgeDrawing ()
void enableTempEdgeDrawing ()
ExNode getMouseOverTempNode ()
void setMouseOverTempNode (ExNode mouseOverTempNode)
ExEdge getMouseOverTempEdge ()
void setMouseOverTempEdge (ExEdge mouseOverTempEdge)
ExEdge getActiveEdge ()
void setActiveEdge (ExEdge activeEdge)
ExNode getActiveNode ()
void setActiveNode (ExNode activeNode)

Static Public Attributes

static int STANDARD_NODE_RADIUS = 10
static int STANDARD_NODE_EDGE_LABEL_OFFSET = 2
static int STANDARD_MOUSEOVER_RADIUS_ADD = 4
static float STANDARD_NODE_RESIZE_BIAS = 1.0f
static float STANDARD_LABEL_ALPHA = 1.0f
static String STANDARD_LABEL_FONT = "Helvetica"
static int STANDARD_LABEL_FONT_SIZE = 25
static int STANDARD_LABEL_ARC = 100
static int STANDARD_EDGE_SIZE = 2
static int STANDARD_TEMP_EDGE_SIZE = 1
static float STANDARD_NODE_MASS = 1
static Color STANDARD_NODE_COLOR = Color.red
static Color STANDARD_ACTIVE_NODE_COLOR = Color.black
static Color STANDARD_TEMP_NODE_COLOR = Color.gray
static Color STANDARD_MOUSEOVER_NODE_COLOR = Color.orange
static Color STANDARD_EDGE_COLOR = Color.blue
static Color STANDARD_MOUSEOVER_EDGE_COLOR = Color.orange
static Color STANDARD_ACTIVE_EDGE_COLOR = Color.orange
static Color STANDARD_TEMP_EDGE_COLOR = Color.red
static Color STANDARD_LABEL_COLOR = Color.black
static Color STANDARD_TEMP_LABEL_COLOR = Color.darkGray
static Color STANDARD_MOUSEOVER_LABEL_COLOR = Color.orange
static String STANDARD_EDGE_LABEL = "Information Visualization 2005."
static String STANDARD_NODE_LABEL = "Node"
static boolean DRAW_STANDARD_EDGES = true
static boolean DRAW_NODE_LABELS = true
static boolean DRAW_PERFORMANCE_MODE = false

Private Member Functions

void triggerNodeRadiusCalc (ArrayList ex)

Private Attributes

ArrayList NodeList
ArrayList EdgeList
ArrayList AdjacencyList
ExRenderer render
ExNode insertDraggingTempNode
ExEdge insertDraggingTempEdge
ExNode mouseOverTempNode
ExEdge mouseOverTempEdge
ExNode activeNode
ExEdge activeEdge
boolean drawTempNode
boolean drawTempEdge
int graphSizeX
int graphSizeY
String filename

Constructor & Destructor Documentation

exlabel.structure.ExGraph.ExGraph ( String  filename,
int  x,
int  y 
)


Member Function Documentation

void exlabel.structure.ExGraph.draw ( Graphics2D  g2d  ) 

Implements exlabel.structure.IExGraph.

void exlabel.structure.ExGraph.update (  ) 

Implements exlabel.structure.IExGraph.

void exlabel.structure.ExGraph.setSize ( int  x,
int  y 
)

ExNode exlabel.structure.ExGraph.hitNode ( int  x,
int  y 
)

Implements exlabel.structure.IExGraph.

int exlabel.structure.ExGraph.hitNodeInt ( int  x,
int  y 
)

ExEdge exlabel.structure.ExGraph.hitEdge ( int  x,
int  y 
)

Implements exlabel.structure.IExGraph.

ExNode exlabel.structure.ExGraph.getNodeById ( int  i  ) 

boolean exlabel.structure.ExGraph.addNode ( ExNode  newnode  ) 

Implements exlabel.structure.IExGraph.

boolean exlabel.structure.ExGraph.addEdge ( ExEdge  newedge  ) 

Implements exlabel.structure.IExGraph.

boolean exlabel.structure.ExGraph.setInsertDraggingTempNode ( int  xpos,
int  ypos,
int  zpos,
int  radius,
float  mass 
)

Implements exlabel.structure.IExGraph.

boolean exlabel.structure.ExGraph.setInsertDraggingTempEdge ( ExNode  startNode,
ExNode  endNode,
String  Label 
)

Implements exlabel.structure.IExGraph.

void exlabel.structure.ExGraph.triggerNodeRadiusCalc ( ArrayList  ex  )  [private]

ExRenderer exlabel.structure.ExGraph.getRender (  ) 

void exlabel.structure.ExGraph.disableTempNodeDrawing (  ) 

Implements exlabel.structure.IExGraph.

void exlabel.structure.ExGraph.enableTempNodeDrawing (  ) 

Implements exlabel.structure.IExGraph.

void exlabel.structure.ExGraph.disableTempEdgeDrawing (  ) 

Implements exlabel.structure.IExGraph.

void exlabel.structure.ExGraph.enableTempEdgeDrawing (  ) 

Implements exlabel.structure.IExGraph.

ExNode exlabel.structure.ExGraph.getMouseOverTempNode (  ) 

void exlabel.structure.ExGraph.setMouseOverTempNode ( ExNode  mouseOverTempNode  ) 

ExEdge exlabel.structure.ExGraph.getMouseOverTempEdge (  ) 

void exlabel.structure.ExGraph.setMouseOverTempEdge ( ExEdge  mouseOverTempEdge  ) 

ExEdge exlabel.structure.ExGraph.getActiveEdge (  ) 

void exlabel.structure.ExGraph.setActiveEdge ( ExEdge  activeEdge  ) 

ExNode exlabel.structure.ExGraph.getActiveNode (  ) 

void exlabel.structure.ExGraph.setActiveNode ( ExNode  activeNode  ) 


Member Data Documentation

int exlabel.structure.ExGraph.STANDARD_NODE_RADIUS = 10 [static]

int exlabel.structure.ExGraph.STANDARD_NODE_EDGE_LABEL_OFFSET = 2 [static]

int exlabel.structure.ExGraph.STANDARD_MOUSEOVER_RADIUS_ADD = 4 [static]

float exlabel.structure.ExGraph.STANDARD_NODE_RESIZE_BIAS = 1.0f [static]

float exlabel.structure.ExGraph.STANDARD_LABEL_ALPHA = 1.0f [static]

String exlabel.structure.ExGraph.STANDARD_LABEL_FONT = "Helvetica" [static]

int exlabel.structure.ExGraph.STANDARD_LABEL_FONT_SIZE = 25 [static]

int exlabel.structure.ExGraph.STANDARD_LABEL_ARC = 100 [static]

int exlabel.structure.ExGraph.STANDARD_EDGE_SIZE = 2 [static]

int exlabel.structure.ExGraph.STANDARD_TEMP_EDGE_SIZE = 1 [static]

float exlabel.structure.ExGraph.STANDARD_NODE_MASS = 1 [static]

Color exlabel.structure.ExGraph.STANDARD_NODE_COLOR = Color.red [static]

Color exlabel.structure.ExGraph.STANDARD_ACTIVE_NODE_COLOR = Color.black [static]

Color exlabel.structure.ExGraph.STANDARD_TEMP_NODE_COLOR = Color.gray [static]

Color exlabel.structure.ExGraph.STANDARD_MOUSEOVER_NODE_COLOR = Color.orange [static]

Color exlabel.structure.ExGraph.STANDARD_EDGE_COLOR = Color.blue [static]

Color exlabel.structure.ExGraph.STANDARD_MOUSEOVER_EDGE_COLOR = Color.orange [static]

Color exlabel.structure.ExGraph.STANDARD_ACTIVE_EDGE_COLOR = Color.orange [static]

Color exlabel.structure.ExGraph.STANDARD_TEMP_EDGE_COLOR = Color.red [static]

Color exlabel.structure.ExGraph.STANDARD_LABEL_COLOR = Color.black [static]

Color exlabel.structure.ExGraph.STANDARD_TEMP_LABEL_COLOR = Color.darkGray [static]

Color exlabel.structure.ExGraph.STANDARD_MOUSEOVER_LABEL_COLOR = Color.orange [static]

String exlabel.structure.ExGraph.STANDARD_EDGE_LABEL = "Information Visualization 2005." [static]

String exlabel.structure.ExGraph.STANDARD_NODE_LABEL = "Node" [static]

boolean exlabel.structure.ExGraph.DRAW_STANDARD_EDGES = true [static]

boolean exlabel.structure.ExGraph.DRAW_NODE_LABELS = true [static]

boolean exlabel.structure.ExGraph.DRAW_PERFORMANCE_MODE = false [static]

ArrayList exlabel.structure.ExGraph.NodeList [private]

ArrayList exlabel.structure.ExGraph.EdgeList [private]

ArrayList exlabel.structure.ExGraph.AdjacencyList [private]

ExRenderer exlabel.structure.ExGraph.render [private]

ExNode exlabel.structure.ExGraph.insertDraggingTempNode [private]

ExEdge exlabel.structure.ExGraph.insertDraggingTempEdge [private]

ExNode exlabel.structure.ExGraph.mouseOverTempNode [private]

ExEdge exlabel.structure.ExGraph.mouseOverTempEdge [private]

ExNode exlabel.structure.ExGraph.activeNode [private]

ExEdge exlabel.structure.ExGraph.activeEdge [private]

boolean exlabel.structure.ExGraph.drawTempNode [private]

boolean exlabel.structure.ExGraph.drawTempEdge [private]

int exlabel.structure.ExGraph.graphSizeX [private]

int exlabel.structure.ExGraph.graphSizeY [private]

String exlabel.structure.ExGraph.filename [private]


The documentation for this class was generated from the following file:
Generated on Tue Jun 26 14:52:53 2007 for ExLabel by  doxygen 1.5.2