|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Layout2D<T>
Interface for 2D layouts.
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. |
Method Detail |
---|
void initialize()
void initialize(java.awt.Dimension size)
size
- the sizejava.awt.geom.Point2D getLocation(T obj)
obj
- the object whose location we want
void sizeChanged(java.awt.Dimension size)
size
- the new sizevoid swapGraph(ConceptGraph<T> graph)
graph
- the graph to swap in.void setLocation(T node, double x, double y)
node
- the node whose location we want to setx
- the x coordinatey
- the y coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |