public class ComputationEvent extends EventObject
ComputationListener
object that registered to receive such
events using the addComputationListener
method.ComputationAction
,
ComputationListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
ComputationEvent.EventType
Enumeration of event types which can occur during the computation.
|
Constructor and Description |
---|
ComputationEvent(Object source,
ComputationEvent.EventType type,
String name,
int maximum,
int value)
Creates a new ComputationEvent
|
Modifier and Type | Method and Description |
---|---|
int |
getMaximum()
Returns the maximum value.
|
String |
getName()
Returns the name of this event.
|
ComputationEvent.EventType |
getType()
Returns the event type.
|
int |
getValue()
Returns the current value.
|
getSource, toString
public ComputationEvent(Object source, ComputationEvent.EventType type, String name, int maximum, int value)
source
- The object that originated the eventtype
- the type of the eventname
- the name of the eventmaximum
- the maximum valuevalue
- the current valuepublic final ComputationEvent.EventType getType()
public final String getName()
public final int getMaximum()
public final int getValue()