edu.uci.ics.jung.visualization
Interface LayoutMutable

All Superinterfaces:
Layout, VertexLocationFunction
All Known Implementing Classes:
DAGLayout, FRLayout, SpringLayout

public interface LayoutMutable
extends Layout

An extended interface for signalling a layout that the underlying graph has been changed. The complete sequence for updating a graph is:

  visualizationViewer = graphdraw.getVisualization();
  layoutMut = (LaoyutMutable) visualizationViewer.getLayout();
        visualizationViewer.suspend();
  // make your changes to the graph here
        graph.addVertex(new SparseVertex());
 
        layoutMut.update();
        visualizationViewer.unsuspend();
        graphDraw.repaint()
 

Author:
winterf@sourceforge.net

Method Summary
 void update()
           
 
Methods inherited from interface edu.uci.ics.jung.visualization.Layout
advancePositions, applyFilter, forceMove, getCurrentSize, getGraph, getLocation, getStatus, getVertex, getVertex, getVisibleEdges, getVisibleVertices, getX, getY, incrementsAreDone, initialize, isIncremental, isLocked, lockVertex, resize, restart, unlockVertex
 
Methods inherited from interface edu.uci.ics.jung.visualization.VertexLocationFunction
getVertexIterator
 

Method Detail

update

void update()