|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.primordion.xholon.io.AbstractNetworkViewerJung
Graphical network 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.
This is an abstract class.
| Nested Class Summary | |
class |
AbstractNetworkViewerJung.XholonEdgeStringer
The XholonEdgeStringer class stores labels for edges, and allows applications to get and set these. |
class |
AbstractNetworkViewerJung.XholonVertexStringer
The XholonVertexStringer class stores labels for vertices (nodes), and allows applications to get and set these. |
| Field Summary |
| Fields inherited from interface org.primordion.xholon.io.IGraphicalNetworkViewer |
LAYOUT_CIRCLE, LAYOUT_DAG, LAYOUT_FR, LAYOUT_ISOM, LAYOUT_KK, LAYOUT_KKINT, LAYOUT_NONE, LAYOUT_SPRING, LAYOUT_STATIC |
| Constructor Summary | |
AbstractNetworkViewerJung()
Constructor. |
|
| Method Summary | |
void |
createGraph(IXholon xhRoot,
java.lang.String title,
boolean showNodeLabels)
Create a graph using a tree layout. |
boolean |
isActive()
Is this viewer active? |
void |
refresh()
Refresh the physical display to reflect changed information, such as the current coloring of the icons when states change in a state machine. |
void |
refresh(IXholon xhNode)
Refresh the physical display for this sub tree only, to reflect changed information, such as the current coloring of the icons when states change in a state machine. |
void |
remove()
Remove the graph from the screen. |
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 |
setLayoutType(int layoutType)
Select one of the layout types available with JUNG. |
void |
setShowContainers(boolean showContainers)
Select whether of not to include containers, and their edges, in the graph. |
void |
writeImage(java.io.File file,
java.lang.String formatName)
Write an image to file. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractNetworkViewerJung()
| Method Detail |
public void setGraphSize(int sizeX,
int sizeY)
IGraphicalNetworkViewer
setGraphSize in interface IGraphicalNetworkViewersizeX - Size in the x direction.sizeY - Size in the y direction.public void setLabelFontSize(int fontSize)
IGraphicalNetworkViewer
setLabelFontSize in interface IGraphicalNetworkViewerfontSize - The font size (default is 9).public void setLayoutType(int layoutType)
IGraphicalNetworkViewer
setLayoutType in interface IGraphicalNetworkViewerlayoutType - The layout type.public void setShowContainers(boolean showContainers)
IGraphicalNetworkViewer
setShowContainers in interface IGraphicalNetworkViewershowContainers - Whether or not to show containers.public boolean isActive()
isActive in interface IGraphicalNetworkViewer
public void createGraph(IXholon xhRoot,
java.lang.String title,
boolean showNodeLabels)
IGraphicalNetworkViewer
createGraph in interface IGraphicalNetworkViewerxhRoot - 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 that will be written.formatName - The name of a format. Currently supported are "jpeg" and "png".public void remove()
IGraphicalNetworkViewer
remove in interface IGraphicalNetworkViewerpublic void refresh()
IGraphicalNetworkViewer
refresh in interface IGraphicalNetworkViewerpublic void refresh(IXholon xhNode)
IGraphicalNetworkViewer
refresh in interface IGraphicalNetworkViewer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||