public class SelectionEvent
extends javax.swing.event.ChangeEvent
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_SELECTION_ADDED |
static int |
TYPE_SELECTION_CLEARED |
static int |
TYPE_SELECTION_REMOVED |
Constructor and Description |
---|
SelectionEvent(Layer src, int type)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
Layer |
getSource() |
int |
getType()
Returns the type of selection event
|
void |
setType(int type)
Sets the type of selection event
|
public static final int TYPE_SELECTION_ADDED
public static final int TYPE_SELECTION_REMOVED
public static final int TYPE_SELECTION_CLEARED
public SelectionEvent(Layer src, int type)
src
- the layer that fired the eventtype
- the type of selection eventpublic Layer getSource()
getSource
in class java.util.EventObject
public void setType(int type)
type
-public int getType()