|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.plot.CircleLayout<T>
public class CircleLayout<T extends ValueNode>
Feb 11, 2009 11:25:50 AM
Field Summary | |
---|---|
protected java.util.Map<T,java.awt.geom.Point2D> |
locations
|
private double |
radius
|
protected java.awt.Dimension |
size
|
Constructor Summary | |
---|---|
CircleLayout(java.util.Collection<T> objs,
java.awt.Dimension size)
|
Method Summary | |
---|---|
java.awt.geom.Point2D |
getCentroid()
|
java.awt.geom.Point2D |
getLocation(T obj)
|
void |
initialize()
|
void |
initialize(java.awt.Dimension size)
Initializes the layout with the specified size. |
protected void |
initNodes(java.util.Collection<T> objs)
|
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(edu.uci.ics.jung.graph.Graph<ValueNode,java.lang.Object> 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 double radius
protected java.util.Map<T extends ValueNode,java.awt.geom.Point2D> locations
protected java.awt.Dimension size
Constructor Detail |
---|
public CircleLayout(java.util.Collection<T> objs, java.awt.Dimension size)
Method Detail |
---|
protected void initNodes(java.util.Collection<T> objs)
public java.awt.geom.Point2D getLocation(T obj)
public void sizeChanged(java.awt.Dimension size)
size
- the new sizepublic void swapGraph(edu.uci.ics.jung.graph.Graph<ValueNode,java.lang.Object> 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()
public java.awt.geom.Point2D getCentroid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |