com.jgraph.layout.demo
Class JGraphLayoutProgressMonitor

java.lang.Object
  extended by javax.swing.ProgressMonitor
      extended by com.jgraph.layout.demo.JGraphLayoutProgressMonitor
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, javax.accessibility.Accessible

public class JGraphLayoutProgressMonitor
extends javax.swing.ProgressMonitor
implements java.beans.PropertyChangeListener

Utility progress monitor for a layout progress object. Implements a property change listener to update itself based on the running layout. The listener is added to the progress object in the constructor and removed from it when the close method is called.


Constructor Summary
JGraphLayoutProgressMonitor(java.awt.Component component, com.jgraph.layout.JGraphLayoutProgress progress, java.lang.String message)
          Constructs a new progress monitor for the specified progress object.
 
Method Summary
 void close()
          Overrides the parent's implementation to remove the property change listener from the progress.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 
Methods inherited from class javax.swing.ProgressMonitor
getAccessibleContext, getMaximum, getMillisToDecideToPopup, getMillisToPopup, getMinimum, getNote, isCanceled, setMaximum, setMillisToDecideToPopup, setMillisToPopup, setMinimum, setNote, setProgress
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphLayoutProgressMonitor

public JGraphLayoutProgressMonitor(java.awt.Component component,
                                   com.jgraph.layout.JGraphLayoutProgress progress,
                                   java.lang.String message)
Constructs a new progress monitor for the specified progress object.

Parameters:
component - The parent component to use for the dialog.
progress - The progress object to be monitored.
message - The message to display.
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

close

public void close()
Overrides the parent's implementation to remove the property change listener from the progress.

Overrides:
close in class javax.swing.ProgressMonitor