Class ContiguousSelectEvent
java.lang.Object
org.netbeans.api.visual.action.ContiguousSelectEvent
Represents an event for ContiguousSelectEvent passed to ContiguousSelectProvider. Contains information about selection-type, previously and currently choosen objects spots.
- Since:
- 2.17
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Defines a type of a selection. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContiguousSelectEvent
create
(Widget previousWidget, Point previousLocalLocation, Widget choosenWidget, Point choosenLocalLocation, ContiguousSelectEvent.SelectionType selectionType) Creates an event.Returns a local location of a choosen widget.Returns a choosen widget.Returns a local location of a previously choosen widget.Returns a previously choosen widget.Represents a selection type.
-
Method Details
-
getPreviouslyChoosenWidget
Returns a previously choosen widget.- Returns:
- the previously choosen widget
-
getPreviouslyChoosenLocalLocation
Returns a local location of a previously choosen widget.- Returns:
- the local location of the previously choosen widget
-
getChoosenWidget
-
getChoosenLocalLocation
Returns a local location of a choosen widget.- Returns:
- the local location of the choosen widget
-
getSelectionType
Represents a selection type.- Returns:
- the selection type
-
create
public static ContiguousSelectEvent create(Widget previousWidget, Point previousLocalLocation, Widget choosenWidget, Point choosenLocalLocation, ContiguousSelectEvent.SelectionType selectionType) Creates an event. Meant to be used by the library only.- Parameters:
previousWidget
- the previously choosen widgetpreviousLocalLocation
- the local location of the previously choosen widgetchoosenWidget
- the choosen widgetchoosenLocalLocation
- the local location of the currently choosen widgetselectionType
- the selection type invoked by an user- Returns:
- the contiguous select event
-