Interface VisualizationModel<V,E>
- All Superinterfaces:
ChangeEventSupport
- All Known Implementing Classes:
DefaultVisualizationModel
Interface for the state holding model of the VisualizationViewer.
Refactored and extracted from the 1.6.0 version of VisualizationViewer
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisterlas a listeners to changes in the model.Returns an array of all theChangeListeners added with addChangeListener().voidRemoves a ChangeListener.voidsetGraphLayout(Layout<V, E> layout) set the graph LayoutvoidsetGraphLayout(Layout<V, E> layout, Dimension d) Sets the graph Layout and initialize the Layout size to the passed dimensions.Methods inherited from interface ChangeEventSupport
fireStateChanged
-
Method Details
-
getRelaxer
Relaxer getRelaxer() -
setGraphLayout
-
setGraphLayout
-
getGraphLayout
-
addChangeListener
Registerlas a listeners to changes in the model. The View registers in order to repaint itself when the model changes.- Specified by:
addChangeListenerin interfaceChangeEventSupport- Parameters:
l- the listener to add
-
removeChangeListener
Removes a ChangeListener.- Specified by:
removeChangeListenerin interfaceChangeEventSupport- Parameters:
l- the listener to be removed
-
getChangeListeners
ChangeListener[] getChangeListeners()Returns an array of all theChangeListeners added with addChangeListener().- Specified by:
getChangeListenersin interfaceChangeEventSupport- Returns:
- all of the
ChangeListeners added or an empty array if no listeners have been added
-