|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
uk.ac.starlink.splat.iface.PlotChangedEvent
public class PlotChangedEvent
PlotChangedEvent defines an event that describes a change to the status of a Plot.
Field Summary | |
---|---|
static int |
CHANGED
Used when plot is changed (i.e. |
static int |
CREATED
Used when a plot is created. |
protected int |
index
The index of plot changed. |
static int |
REMOVED
Used when a plot is removed. |
protected int |
type
The type of event. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PlotChangedEvent(Object source,
int type,
int index)
Constructs a PlotChangedEvent object. |
Method Summary | |
---|---|
int |
getIndex()
Return index of plot changed. |
int |
getType()
Return type of event. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CREATED
public static final int REMOVED
public static final int CHANGED
protected int type
protected int index
Constructor Detail |
---|
public PlotChangedEvent(Object source, int type, int index)
source
- - the source Object (typically this).type
- an int specifying CREATED, REMOVED or CHANGED.index
- - an int specifying the position of the changed
plot.Method Detail |
---|
public int getType()
public int getIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |