|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.io.TreeViewerJung
Graphical tree viewer constructed using the JUNG software.
This requires the Java classes that implement JUNG. Download these from the JUNG web site, download the additional third-party Java classes specified at that site, and install the various downloaded jar files.
| Constructor Summary | |
TreeViewerJung()
Constructor. |
|
| Method Summary | |
void |
createGraph(IXholon xhRoot,
java.lang.String title,
boolean showNodeLabels)
Create a graph using a tree layout. |
void |
remove()
Remove the graph from the screen. |
void |
setDistances(int distX,
int distY)
Set the default x and y distances between vertices. |
void |
setGraphSize(int sizeX,
int sizeY)
Set the size of the graph. |
void |
setLabelFontSize(int fontSize)
Set the font size for displaying labels on vertices. |
void |
writeImage(java.io.File file,
java.lang.String formatName)
Write a graph to a file using PNG, JPG or some other graphic format. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeViewerJung()
| Method Detail |
public void setDistances(int distX,
int distY)
IGraphicalTreeViewer
setDistances in interface IGraphicalTreeViewerdistX - Distance in the x direction (system default is 50).distY - Distance in the y direction (system default is 50).
public void setGraphSize(int sizeX,
int sizeY)
IGraphicalTreeViewer
setGraphSize in interface IGraphicalTreeViewersizeX - Size in the x direction.sizeY - Size in the y direction.public void setLabelFontSize(int fontSize)
IGraphicalTreeViewer
setLabelFontSize in interface IGraphicalTreeViewerfontSize - The font size (default is 9).
public void createGraph(IXholon xhRoot,
java.lang.String title,
boolean showNodeLabels)
IGraphicalTreeViewer
createGraph in interface IGraphicalTreeViewerxhRoot - The root of the IXholon tree.title - The title to appear in the viewer window,showNodeLabels - Whether vertices (nodes) should initially appear labelled.
public void writeImage(java.io.File file,
java.lang.String formatName)
file - The file to be written to.formatName - Name of the graphic format to use.public void remove()
IGraphicalTreeViewer
remove in interface IGraphicalTreeViewer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||