com.jgraph.layout
public class JGraphLayoutProgress extends Object
| Field Summary | |
|---|---|
| protected PropertyChangeSupport | changeSupport
Property change support is delegated to this class. |
| protected boolean | isStopped
Specifies whether the layout was stopped in the user interface. |
| static String | ISSTOPPED_PROPERTY
Bound property name for isStopped. |
| protected int | maximum
Specifies the maximum progress, for example 100%. |
| static String | MAXIMUM_PROPERTY
Bound property name for maximum. |
| protected int | progress
Specifies the current progress. |
| static String | PROGRESS_PROPERTY
Bound property name for progress. |
| Constructor Summary | |
|---|---|
| JGraphLayoutProgress()
Constructs a new layout progress with a maximum progress of 0. | |
| JGraphLayoutProgress(int maximum)
Constructs a new layout progress for the specified maximum progress.
| |
| Method Summary | |
|---|---|
| void | addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener.
|
| PropertyChangeSupport | getChangeSupport() |
| int | getMaximum() |
| int | getProgress() |
| boolean | isStopped()
Stoppable layouts should check this within their inner-most loops and
return immediately if this returns true.
|
| void | removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener.
|
| void | reset(int maximum)
Resets the progress to 0 and sets isStopped to false. |
| void | setChangeSupport(PropertyChangeSupport changeSupport) |
| void | setMaximum(int maximum)
Sets the maximum progress of the layout. |
| void | setProgress(int progress)
Sets the current progress of the layout.
|
| void | setStopped(boolean isStopped)
Signals the layout to stop running.
|
isStopped.maximum.progress.Parameters: maximum
Parameters: listener
Returns: Returns the changeSupport.
Returns: Returns the maximum progress.
Returns: Returns the progress.
Returns: Returns true if the layout should terminate.
Parameters: listener
false.Parameters: changeSupport The changeSupport to set.
Fires a property change for the MAXIMUM_PROPERTY.
Parameters: maximum The maximum to set.
Fires a property change for the PROGRESS_PROPERTY.
Parameters: progress The progress to set.
Fires a property change for the ISSTOPPED_PROPERTY.
Parameters: isStopped Whether the layout should stop.