|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VisualizationModel<V,E>
Interface for the state holding model of the VisualizationViewer. Refactored and extracted from the 1.6.0 version of VisualizationViewer
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Register l as a listeners to changes in the model. |
ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListener s added
with addChangeListener(). |
Layout<V,E> |
getGraphLayout()
Returns the current graph layout. |
Relaxer |
getRelaxer()
|
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener. |
void |
setGraphLayout(Layout<V,E> layout)
set the graph Layout |
void |
setGraphLayout(Layout<V,E> layout,
Dimension d)
Sets the graph Layout and initialize the Layout size to the passed dimensions. |
Methods inherited from interface edu.uci.ics.jung.visualization.util.ChangeEventSupport |
---|
fireStateChanged |
Method Detail |
---|
Relaxer getRelaxer()
void setGraphLayout(Layout<V,E> layout)
layout
- void setGraphLayout(Layout<V,E> layout, Dimension d)
layout
- d
- Layout<V,E> getGraphLayout()
void addChangeListener(ChangeListener l)
l
as a listeners to changes in the model. The View registers
in order to repaint itself when the model changes.
addChangeListener
in interface ChangeEventSupport
void removeChangeListener(ChangeListener l)
removeChangeListener
in interface ChangeEventSupport
l
- the listener to be removedChangeListener[] getChangeListeners()
ChangeListener
s added
with addChangeListener().
getChangeListeners
in interface ChangeEventSupport
ChangeListener
s added or an empty
array if no listeners have been added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |