|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectexe.VisualGraph
exe.GAIGSgraph
public class GAIGSgraph
GAIGSgraph extends the VisualGraph class, providing
a uniform interface for that class in generating GAIGS XML code.
Use the various constructors to specify the general parameters for the graph
visualization, and use the toXML method to actually generate
the tree XML for snapshots.
All the graph methods themselves are contained within the VisualGraph
class. Consult the documentation of that class
| Field Summary |
|---|
| Fields inherited from class exe.VisualGraph |
|---|
directed, font_size, heuristics, MAX_NODES, my_edgeset, my_nodeset, num_edges, num_nodes, weighted, x1, x2, y1, y2 |
| Fields inherited from interface exe.GAIGSdatastr |
|---|
DEFAULT_COLOR, DEFAULT_FONT_SIZE, DEFAULT_NAME, DEFAULT_X1, DEFAULT_X2, DEFAULT_Y1, DEFAULT_Y2 |
| Constructor Summary | |
|---|---|
GAIGSgraph()
Use all default values |
|
GAIGSgraph(boolean weighted,
boolean directed,
boolean heuristics)
Set weighted, directed and heuristics, otherwise use all default values |
|
GAIGSgraph(boolean weighted,
boolean directed,
boolean heuristics,
java.lang.String name,
java.lang.String color,
double x1,
double y1,
double x2,
double y2,
double fontSize)
Set all instance variables. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Get the value of the name. |
void |
setName(java.lang.String name)
Set the value of the name to be displayed. |
java.lang.String |
toXML()
Creates and returns GAIGS XML code for the current state of the graph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GAIGSgraph()
public GAIGSgraph(boolean weighted,
boolean directed,
boolean heuristics)
weighted - Weighted edges or not.directed - Directed edges or not.heuristics - Use heuristics or not.
public GAIGSgraph(boolean weighted,
boolean directed,
boolean heuristics,
java.lang.String name,
java.lang.String color,
double x1,
double y1,
double x2,
double y2,
double fontSize)
weighted - Weighted edges or not.directed - Directed edges or not.heuristics - Use heuristics or not.name - Display name of this structure.color - Color for items unless locally overridden.x1 - Left display bound.y1 - Bottom display bound.x2 - Top display bound.y2 - Right display bound.fontSize - Font size for display.| Method Detail |
|---|
public void setName(java.lang.String name)
setName in interface GAIGSdatastrname - The display name.public java.lang.String getName()
getName in interface GAIGSdatastrpublic java.lang.String toXML()
toXML in interface GAIGSdatastr
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||