|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A class that implements this interface will typically simply encapsulate a
layout algorithm. This class will be used by MagnetView with the
setMagnetLayout
method. If no MagnetLayout is set for a MagnetView, a default one is used.
MagnetView,
DefaultMagnetLayout| Method Summary | |
void |
addListener(MagnetLayoutListener listener)
Adds a listener that will be notified when the layout has changed. |
int |
getNumberOfVisibleNodes()
Returns the number of nodes simulatenously drawn by the view that this layouter controls. |
void |
removeListener(MagnetLayoutListener listener)
Removes a listener. |
void |
setBounds(java.awt.Rectangle bounds)
Sets the bounds of the main view. |
void |
setMagnetModel(MagnetModel newModel)
Set the model that the layout is in charge of updating. |
void |
setNumberOfVisibleNodes(int numberOfVisibleNodes)
Sets the number of visible nodes drawn by the view that this layouter controls |
void |
stopUpdatingPositions()
Tells the receiver to stop updating the nodes positions in the model. |
void |
updatePositions(UpdateEvent event)
Tells the receiver to update the nodes positions in the model. |
| Method Detail |
public void setMagnetModel(MagnetModel newModel)
newModel - the model that will be updated by receiver.public void updatePositions(UpdateEvent event)
event - the associated eventUpdateEventpublic void stopUpdatingPositions()
public void addListener(MagnetLayoutListener listener)
listener - the listener object to addpublic void removeListener(MagnetLayoutListener listener)
listener - the listener object to removepublic void setNumberOfVisibleNodes(int numberOfVisibleNodes)
numberOfVisibleNodes - the number of visible nodes.public int getNumberOfVisibleNodes()
public void setBounds(java.awt.Rectangle bounds)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||