public class SelectionEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.awt.Shape |
highlightShape
The shape enclosing the selection
|
protected int |
id
The event type of the current selection event
|
protected java.lang.Object |
selection
The object which composes the selection
|
static int |
SELECTION_CHANGED
The id for the "selection changing" event.
|
static int |
SELECTION_CLEARED
The id for the "selection cleared" event.
|
static int |
SELECTION_DONE
The id for the "selection completed" event.
|
static int |
SELECTION_STARTED
The id for the "selection started" event.
|
Constructor and Description |
---|
SelectionEvent(java.lang.Object selection,
int id,
java.awt.Shape highlightShape)
Constructs a new graphics node paint event.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
getHighlightShape()
Returns a shape in user space that encloses the current selection.
|
int |
getID()
Returns the event's selection event type.
|
java.lang.Object |
getSelection()
Returns the selection associated with this event.
|
public static final int SELECTION_CHANGED
public static final int SELECTION_CLEARED
public static final int SELECTION_STARTED
public static final int SELECTION_DONE
protected java.awt.Shape highlightShape
protected java.lang.Object selection
protected int id
public SelectionEvent(java.lang.Object selection, int id, java.awt.Shape highlightShape)
selection
- the selectionid
- the id of this eventhighlightShape
- a user-space shape enclosing the selection.public java.awt.Shape getHighlightShape()
public java.lang.Object getSelection()
public int getID()
SELECTION_CHANGED
,
SELECTION_CLEARED
,
SELECTION_DONE
Copyright © 2022 Apache Software Foundation. All Rights Reserved.