org.netbeans.api.visual 2.17.1

org.netbeans.api.visual.action
Class ContiguousSelectEvent

java.lang.Object
  extended by 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

Nested Class Summary
static class ContiguousSelectEvent.SelectionType
          Defines a type of a selection.
 
Method Summary
static ContiguousSelectEvent create(Widget previousWidget, Point previousLocalLocation, Widget choosenWidget, Point choosenLocalLocation, ContiguousSelectEvent.SelectionType selectionType)
          Creates an event.
 Point getChoosenLocalLocation()
          Returns a local location of a choosen widget.
 Widget getChoosenWidget()
          Returns a choosen widget.
 Point getPreviouslyChoosenLocalLocation()
          Returns a local location of a previously choosen widget.
 Widget getPreviouslyChoosenWidget()
          Returns a previously choosen widget.
 ContiguousSelectEvent.SelectionType getSelectionType()
          Represents a selection type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

org.netbeans.api.visual 2.17.1

Built on November 10 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.