|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.viz.layout.AbstractLayout2D<T>
anl.aida.viz.layout.CircleLayout<T>
public class CircleLayout<T>
Date: Feb 11, 2009 11:25:50 AM
Field Summary | |
---|---|
private double |
radius
|
Fields inherited from class anl.aida.viz.layout.AbstractLayout2D |
---|
locations, size |
Constructor Summary | |
---|---|
CircleLayout(java.util.Collection<T> objs,
java.awt.Dimension size)
|
Method Summary | |
---|---|
java.awt.geom.Point2D |
getCentroid()
|
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 anl.aida.viz.layout.AbstractLayout2D |
---|
getLocation, initNodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double radius
Constructor Detail |
---|
public CircleLayout(java.util.Collection<T> objs, java.awt.Dimension size)
Method Detail |
---|
public void sizeChanged(java.awt.Dimension size)
size
- the new sizepublic void swapGraph(ConceptGraph<T> graph)
graph
- the graph to swap in.public void initialize(java.awt.Dimension size)
size
- the sizepublic void setLocation(T node, double x, double y)
node
- the node whose location we want to setx
- the x coordinatey
- the y coordinatepublic void initialize()
Layout2D
public java.awt.geom.Point2D getCentroid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |