Class ContiguousSelectEvent

java.lang.Object
org.netbeans.api.visual.action.ContiguousSelectEvent

public final class ContiguousSelectEvent extends Object
Represents an event for ContiguousSelectEvent passed to ContiguousSelectProvider. Contains information about selection-type, previously and currently choosen objects spots.
Since:
2.17
  • Method Details

    • getPreviouslyChoosenWidget

      public Widget getPreviouslyChoosenWidget()
      Returns a previously choosen widget.
      Returns:
      the previously choosen widget
    • getPreviouslyChoosenLocalLocation

      public Point getPreviouslyChoosenLocalLocation()
      Returns a local location of a previously choosen widget.
      Returns:
      the local location of the previously choosen widget
    • getChoosenWidget

      public Widget getChoosenWidget()
      Returns a choosen widget.
      Returns:
      the choosen widget
    • getChoosenLocalLocation

      public Point getChoosenLocalLocation()
      Returns a local location of a choosen widget.
      Returns:
      the local location of the choosen widget
    • getSelectionType

      public ContiguousSelectEvent.SelectionType 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 widget
      previousLocalLocation - the local location of the previously choosen widget
      choosenWidget - the choosen widget
      choosenLocalLocation - the local location of the currently choosen widget
      selectionType - the selection type invoked by an user
      Returns:
      the contiguous select event