Class DefaultVisualizationModel<V,E>

java.lang.Object
edu.uci.ics.jung.visualization.DefaultVisualizationModel<V,E>
All Implemented Interfaces:
ChangeEventSupport, VisualizationModel<V,E>

public class DefaultVisualizationModel<V,E> extends Object implements VisualizationModel<V,E>, ChangeEventSupport
The model containing state values for visualizations of graphs. Refactored and extracted from the 1.6.0 version of VisualizationViewer
  • Field Details

    • changeSupport

      ChangeEventSupport changeSupport
    • relaxer

      protected Relaxer relaxer
      manages the thread that applies the current layout algorithm
    • layout

      protected Layout<V,E> layout
      the layout algorithm currently in use
    • changeListener

      protected ChangeListener changeListener
      listens for changes in the layout, forwards to the viewer
  • Constructor Details

    • DefaultVisualizationModel

      public DefaultVisualizationModel(Layout<V,E> layout)
      Parameters:
      layout - The Layout to apply, with its associated Graph
    • DefaultVisualizationModel

      public DefaultVisualizationModel(Layout<V,E> layout, Dimension d)
      Create an instance with the specified layout and dimension.
      Parameters:
      layout - the layout to use
      d - The preferred size of the View that will display this graph
  • Method Details