public class ProgressEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
protected float |
currentValue |
static int |
DONE
Progress event type, notification of process completion.
|
protected float |
finishedValue |
static int |
START
Progress event type, start process.
|
protected java.lang.String |
taskDescription |
protected int |
type |
static int |
UPDATE
Progress event type, update of current process.
|
Constructor and Description |
---|
ProgressEvent(java.lang.Object source,
int type,
java.lang.String taskDescription,
float finishValue,
float currentValue)
Construct a ProgressEvent.
|
Modifier and Type | Method and Description |
---|---|
float |
getCurrentValue()
Get the current value representing progress.
|
float |
getFinishedValue()
Get the value that current will have to get to to be finished.
|
int |
getPercentComplete()
Provide a percentage of progress completed, or -1 if no
finished value has been provided.
|
java.lang.String |
getTaskDescription()
Get a string describing what the task is.
|
int |
getType() |
public static final int START
public static final int UPDATE
public static final int DONE
protected float finishedValue
protected float currentValue
protected java.lang.String taskDescription
protected int type
public ProgressEvent(java.lang.Object source, int type, java.lang.String taskDescription, float finishValue, float currentValue)
source
- ObjectfinishValue
- the ending valuecurrentValue
- the current valuepublic float getFinishedValue()
public float getCurrentValue()
public java.lang.String getTaskDescription()
public int getPercentComplete()
public int getType()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details