uk.ac.starlink.splat.iface
Class PlotChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by uk.ac.starlink.splat.iface.PlotChangedEvent
All Implemented Interfaces:
Serializable

public class PlotChangedEvent
extends EventObject

PlotChangedEvent defines an event that describes a change to the status of a Plot.

See Also:
Serialized Form

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

CREATED

public static final int CREATED
Used when a plot is created.

See Also:
Constant Field Values

REMOVED

public static final int REMOVED
Used when a plot is removed.

See Also:
Constant Field Values

CHANGED

public static final int CHANGED
Used when plot is changed (i.e. a new spectrum is added).

See Also:
Constant Field Values

type

protected int type
The type of event.


index

protected int index
The index of plot changed.

Constructor Detail

PlotChangedEvent

public PlotChangedEvent(Object source,
                        int type,
                        int index)
Constructs a PlotChangedEvent object.

Parameters:
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

getType

public int getType()
Return type of event.


getIndex

public int getIndex()
Return index of plot changed.



Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.