Package org.apache.batik.gvt.event
Class SelectionEvent
java.lang.Object
org.apache.batik.gvt.event.SelectionEvent
An event which indicates that a selection is being made or has been made.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Shape
The shape enclosing the selectionprotected int
The event type of the current selection eventprotected Object
The object which composes the selectionstatic final int
The id for the "selection changing" event.static final int
The id for the "selection cleared" event.static final int
The id for the "selection completed" event.static final int
The id for the "selection started" event. -
Constructor Summary
ConstructorsConstructorDescriptionSelectionEvent
(Object selection, int id, Shape highlightShape) Constructs a new graphics node paint event. -
Method Summary
Modifier and TypeMethodDescriptionReturns a shape in user space that encloses the current selection.int
getID()
Returns the event's selection event type.Returns the selection associated with this event.
-
Field Details
-
SELECTION_CHANGED
public static final int SELECTION_CHANGEDThe id for the "selection changing" event. (Selection process is under way)- See Also:
-
SELECTION_CLEARED
public static final int SELECTION_CLEAREDThe id for the "selection cleared" event.- See Also:
-
SELECTION_STARTED
public static final int SELECTION_STARTEDThe id for the "selection started" event.- See Also:
-
SELECTION_DONE
public static final int SELECTION_DONEThe id for the "selection completed" event. (Selection process is complete).- See Also:
-
highlightShape
The shape enclosing the selection -
selection
The object which composes the selection -
id
protected int idThe event type of the current selection event
-
-
Constructor Details
-
SelectionEvent
Constructs a new graphics node paint event.- Parameters:
selection
- the selectionid
- the id of this eventhighlightShape
- a user-space shape enclosing the selection.
-
-
Method Details
-
getHighlightShape
Returns a shape in user space that encloses the current selection. -
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:
-