|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz.layout.ISOMLayout<T>
public class ISOMLayout<T>
Layout2D that wraps the jung ISOM layout.
Field Summary | |
---|---|
private edu.uci.ics.jung.algorithms.layout.ISOMLayout<T,CGEdge> |
layout
|
Constructor Summary | |
---|---|
ISOMLayout(edu.uci.ics.jung.graph.Graph<T,CGEdge> graph,
java.awt.Dimension size)
|
Method Summary | |
---|---|
java.awt.geom.Point2D |
getLocation(T obj)
Gets the location of the object. |
void |
initialize()
Initializes the layout. |
void |
initialize(java.awt.Dimension size)
Initializes the layout with the specified size. |
void |
setLocation(T node,
double x,
double y)
Sets the location of the specified node. |
void |
sizeChanged(java.awt.Dimension size)
Called when the display area size has changed. |
void |
swapGraph(ConceptGraph<T> graph)
Swaps the layouts current graph with the specified one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private edu.uci.ics.jung.algorithms.layout.ISOMLayout<T,CGEdge> layout
Constructor Detail |
---|
public ISOMLayout(edu.uci.ics.jung.graph.Graph<T,CGEdge> graph, java.awt.Dimension size)
Method Detail |
---|
public void initialize()
initialize
in interface Layout2D<T>
public void swapGraph(ConceptGraph<T> graph)
swapGraph
in interface Layout2D<T>
graph
- the graph to swap in.public void initialize(java.awt.Dimension size)
initialize
in interface Layout2D<T>
size
- the sizepublic void setLocation(T node, double x, double y)
setLocation
in interface Layout2D<T>
node
- the node whose location we want to setx
- the x coordinatey
- the y coordinatepublic java.awt.geom.Point2D getLocation(T obj)
getLocation
in interface Layout2D<T>
obj
- the object whose location we want
public void sizeChanged(java.awt.Dimension size)
sizeChanged
in interface Layout2D<T>
size
- the new size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |