Package org.apache.batik.gvt.event
Class SelectionEvent
- java.lang.Object
-
- org.apache.batik.gvt.event.SelectionEvent
-
public class SelectionEvent extends java.lang.Object
An event which indicates that a selection is being made or has been made.- Version:
- $Id: SelectionEvent.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.Shape
highlightShape
The shape enclosing the selectionprotected int
id
The event type of the current selection eventprotected java.lang.Object
selection
The object which composes the selectionstatic 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 Summary
Constructors Constructor Description SelectionEvent(java.lang.Object selection, int id, java.awt.Shape highlightShape)
Constructs a new graphics node paint event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
SELECTION_CHANGED
public static final int SELECTION_CHANGED
The id for the "selection changing" event. (Selection process is under way)- See Also:
- Constant Field Values
-
SELECTION_CLEARED
public static final int SELECTION_CLEARED
The id for the "selection cleared" event.- See Also:
- Constant Field Values
-
SELECTION_STARTED
public static final int SELECTION_STARTED
The id for the "selection started" event.- See Also:
- Constant Field Values
-
SELECTION_DONE
public static final int SELECTION_DONE
The id for the "selection completed" event. (Selection process is complete).- See Also:
- Constant Field Values
-
highlightShape
protected java.awt.Shape highlightShape
The shape enclosing the selection
-
selection
protected java.lang.Object selection
The object which composes the selection
-
id
protected int id
The event type of the current selection event
-
-
Method Detail
-
getHighlightShape
public java.awt.Shape getHighlightShape()
Returns a shape in user space that encloses the current selection.
-
getSelection
public java.lang.Object getSelection()
Returns the selection associated with this event. Only guaranteed current for events of type SELECTION_DONE.
-
getID
public int getID()
Returns the event's selection event type.- See Also:
SELECTION_CHANGED
,SELECTION_CLEARED
,SELECTION_DONE
-
-