Documentation of 'edu.uci.ics.jung.visualization.DefaultVisualizationModel' Java class
DefaultVisualizationModel
edu.uci.ics.jung.visualization

Class DefaultVisualizationModel<V,E>

    • Constructor Detail

      • DefaultVisualizationModel

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

        public DefaultVisualizationModel(Layout<V,E> layout,
                                         java.awt.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 Detail

      • setGraphLayout

        public void setGraphLayout(Layout<V,E> layout,
                                   java.awt.Dimension viewSize)
        Removes the current graph layout, and adds a new one.
        Specified by:
        setGraphLayout in interface VisualizationModel<V,E>
        Parameters:
        layout - the new layout to use
        viewSize - the size of the View that will display this layout
      • setGraphLayout

        public void setGraphLayout(Layout<V,E> layout)
        set the graph Layout and if it is not already initialized, initialize it to the default VisualizationViewer preferred size of 600x600
        Specified by:
        setGraphLayout in interface VisualizationModel<V,E>
        Parameters:
        layout - the layout to use
      • setRelaxer

        public void setRelaxer(VisRunner relaxer)
        Parameters:
        relaxer - the relaxer to set
      • getChangeListeners

        public javax.swing.event.ChangeListener[] getChangeListeners()
        Returns an array of all the ChangeListeners added with addChangeListener().
        Specified by:
        getChangeListeners in interface ChangeEventSupport
        Specified by:
        getChangeListeners in interface VisualizationModel<V,E>
        Returns:
        all of the ChangeListeners added or an empty array if no listeners have been added
      • fireStateChanged

        public void fireStateChanged()
        Notifies all listeners that have registered interest for notification on this event type. The event instance is lazily created. The primary listeners will be views that need to be repainted because of changes in this model instance
        Specified by:
        fireStateChanged in interface ChangeEventSupport
        See Also:
        EventListenerList

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.