|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz.layout.KKLayout
public class KKLayout
Layout2D that wraps the jung KK layout.
Field Summary | |
---|---|
private edu.uci.ics.jung.algorithms.layout.KKLayout<TermNode,CGEdge> |
layout
|
Constructor Summary | |
---|---|
KKLayout(ConceptGraph graph,
java.awt.Dimension size)
|
Method Summary | |
---|---|
java.awt.geom.Point2D |
getLocation(TermNode 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. |
private void |
initLayout(ConceptGraph graph,
java.awt.Dimension size)
|
void |
setLocation(TermNode 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<TermNode> 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.KKLayout<TermNode,CGEdge> layout
Constructor Detail |
---|
public KKLayout(ConceptGraph graph, java.awt.Dimension size)
Method Detail |
---|
private void initLayout(ConceptGraph graph, java.awt.Dimension size)
public void swapGraph(ConceptGraph<TermNode> graph)
swapGraph
in interface Layout2D<TermNode>
graph
- the graph to swap in.public void setLocation(TermNode node, double x, double y)
setLocation
in interface Layout2D<TermNode>
node
- the node whose location we want to setx
- the x coordinatey
- the y coordinatepublic void initialize()
initialize
in interface Layout2D<TermNode>
public void initialize(java.awt.Dimension size)
initialize
in interface Layout2D<TermNode>
size
- the sizepublic java.awt.geom.Point2D getLocation(TermNode obj)
getLocation
in interface Layout2D<TermNode>
obj
- the object whose location we want
public void sizeChanged(java.awt.Dimension size)
sizeChanged
in interface Layout2D<TermNode>
size
- the new size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |