edu.uci.ics.jung.visualization
Class BasicVisualizationServer.VisualizationListener

java.lang.Object
  extended by java.awt.event.ComponentAdapter
      extended by edu.uci.ics.jung.visualization.BasicVisualizationServer.VisualizationListener
All Implemented Interfaces:
ComponentListener, EventListener
Enclosing class:
BasicVisualizationServer<V,E>

protected class BasicVisualizationServer.VisualizationListener
extends ComponentAdapter

VisualizationListener reacts to changes in the size of the VisualizationViewer. When the size changes, it ensures that the offscreen image is sized properly. If the layout is locked to this view size, then the layout is also resized to be the same as the view size.


Field Summary
protected  BasicVisualizationServer<V,E> vv
           
 
Constructor Summary
BasicVisualizationServer.VisualizationListener(BasicVisualizationServer<V,E> vv)
           
 
Method Summary
 void componentResized(ComponentEvent e)
          create a new offscreen image for the graph whenever the window is resied
 
Methods inherited from class java.awt.event.ComponentAdapter
componentHidden, componentMoved, componentShown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vv

protected BasicVisualizationServer<V,E> vv
Constructor Detail

BasicVisualizationServer.VisualizationListener

public BasicVisualizationServer.VisualizationListener(BasicVisualizationServer<V,E> vv)
Method Detail

componentResized

public void componentResized(ComponentEvent e)
create a new offscreen image for the graph whenever the window is resied

Specified by:
componentResized in interface ComponentListener
Overrides:
componentResized in class ComponentAdapter


Copyright © 2009. All Rights Reserved.