C# Class UMD.HCIL.Piccolo.Event.PDragSequenceEventHandler

PDragSequenceEventHandler is designed to support mouse pressed, dragged, and released interaction sequences. Support is also provided for running a continuous activity during the drag sequence.
PDragSequenceEventHandler should be subclassed by a concrete event handler that implements a particular interaction. See PPanEventHandler, PZoomEventHandler, and PDragEventHandler for examples
Inheritance: UMD.HCIL.Piccolo.Event.PBasicInputEventHandler, PActivity.PActivityDelegate
Afficher le fichier Open project: ME3Explorer/ME3Explorer

Méthodes publiques

Свойство Type Description
Drag DragDelegate
DragActivityFinalStep DragActivityFinalStepDelegate
DragActivityFirstStep DragActivityFirstStepDelegate
DragActivityStep DragActivityStepDelegate
EndDrag EndDragDelegate
StartDrag StartDragDelegate

Méthodes publiques

Méthode Description
ActivityFinished ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void

Called when the drag activity stops running.

ActivityStarted ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void

Called when the drag activity starts running.

ActivityStepped ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void

Called when the drag activity is running.

OnMouseDown ( object sender, PInputEventArgs e ) : void

Overridden. See PBasicInputEventHandler.OnMouseDown.

OnMouseDrag ( object sender, PInputEventArgs e ) : void

Overridden. See PBasicInputEventHandler.OnMouseDrag.

OnMouseUp ( object sender, PInputEventArgs e ) : void

Overridden. See PBasicInputEventHandler.OnMouseUp.

PDragSequenceEventHandler ( ) : System

Constructs a new PDragSequenceEventHandler.

Méthodes protégées

Méthode Description
OnDrag ( object sender, PInputEventArgs e ) : void

Subclasses should override this method to get notified of the drag events in a drag sequence.

This method is called in the middle of a drag sequence, between the OnStartDrag and the OnEndDrag methods.

Unlike the OnMouseDrag method, this method will not get called until after the MinDragStartDistance has been reached.

Notes to Inheritors: Overriding methods must still call base.OnDrag() for correct behavior.

OnDragActivityFinalStep ( object sender, PInputEventArgs e ) : void

Override this method to get notified when the drag activity stops stepping.

OnDragActivityFirstStep ( object sender, PInputEventArgs e ) : void

Override this method to get notified when the drag activity is stepping.

During a drag sequence an activity is scheduled that runs continuously while the drag sequence is active. This can be used to support some additional behavior that is not driven directly by mouse events. For example PZoomEventHandler uses it for zooming and PPanEventHandler uses it for auto panning.

OnDragActivityStep ( object sender, PInputEventArgs e ) : void

Override this method to get notified when the drag activity starts stepping.

OnEndDrag ( object sender, PInputEventArgs e ) : void

Subclasses should override this method to get notified of the end event in a drag sequence.

This method is called at the end of a drag sequence.

Unlike the OnMouseDrag method, this method will not get called until after the MinDragStartDistance has been reached.

Notes to Inheritors: Overriding methods must still call base.OnEndDrag() for correct behavior.

OnStartDrag ( object sender, PInputEventArgs e ) : void

Subclasses should override this method to get notified of the start of a new drag sequence.

This method is called at the beginning of a drag sequence.

Unlike the OnMouseDrag method, this method will not get called until after the MinDragStartDistance has been reached.

Notes to Inheritors: Overriding methods must still call base.OnStartDrag() for correct behavior.

ShouldStartDragInteraction ( PInputEventArgs e ) : bool

Returns true if a drag sequence should be initiated.

StartDragActivity ( PInputEventArgs e ) : void

Schedules the drag activity to run.

Private Methods

Méthode Description
StopDragActivity ( PInputEventArgs e ) : void

Stops the drag activity.

Method Details

ActivityFinished() public méthode

Called when the drag activity stops running.
public ActivityFinished ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void
activity UMD.HCIL.Piccolo.Activities.PActivity The drag activity.
Résultat void

ActivityStarted() public méthode

Called when the drag activity starts running.
public ActivityStarted ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void
activity UMD.HCIL.Piccolo.Activities.PActivity The drag activity.
Résultat void

ActivityStepped() public méthode

Called when the drag activity is running.
public ActivityStepped ( UMD.HCIL.Piccolo.Activities.PActivity activity ) : void
activity UMD.HCIL.Piccolo.Activities.PActivity The drag activity.
Résultat void

OnDrag() protected méthode

Subclasses should override this method to get notified of the drag events in a drag sequence.
This method is called in the middle of a drag sequence, between the OnStartDrag and the OnEndDrag methods.

Unlike the OnMouseDrag method, this method will not get called until after the MinDragStartDistance has been reached.

Notes to Inheritors: Overriding methods must still call base.OnDrag() for correct behavior.

protected OnDrag ( object sender, PInputEventArgs e ) : void
sender object The source of the end drag event.
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat void

OnDragActivityFinalStep() protected méthode

Override this method to get notified when the drag activity stops stepping.
protected OnDragActivityFinalStep ( object sender, PInputEventArgs e ) : void
sender object The source of the drag event.
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat void

OnDragActivityFirstStep() protected méthode

Override this method to get notified when the drag activity is stepping.
During a drag sequence an activity is scheduled that runs continuously while the drag sequence is active. This can be used to support some additional behavior that is not driven directly by mouse events. For example PZoomEventHandler uses it for zooming and PPanEventHandler uses it for auto panning.
protected OnDragActivityFirstStep ( object sender, PInputEventArgs e ) : void
sender object The source of the drag event.
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat void

OnDragActivityStep() protected méthode

Override this method to get notified when the drag activity starts stepping.
protected OnDragActivityStep ( object sender, PInputEventArgs e ) : void
sender object The source of the drag event.
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat void

OnEndDrag() protected méthode

Subclasses should override this method to get notified of the end event in a drag sequence.
This method is called at the end of a drag sequence.

Unlike the OnMouseDrag method, this method will not get called until after the MinDragStartDistance has been reached.

Notes to Inheritors: Overriding methods must still call base.OnEndDrag() for correct behavior.

protected OnEndDrag ( object sender, PInputEventArgs e ) : void
sender object The source of the end drag event.
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat void

OnMouseDown() public méthode

Overridden. See PBasicInputEventHandler.OnMouseDown.
public OnMouseDown ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
Résultat void

OnMouseDrag() public méthode

Overridden. See PBasicInputEventHandler.OnMouseDrag.
public OnMouseDrag ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
Résultat void

OnMouseUp() public méthode

Overridden. See PBasicInputEventHandler.OnMouseUp.
public OnMouseUp ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
Résultat void

OnStartDrag() protected méthode

Subclasses should override this method to get notified of the start of a new drag sequence.
This method is called at the beginning of a drag sequence.

Unlike the OnMouseDrag method, this method will not get called until after the MinDragStartDistance has been reached.

Notes to Inheritors: Overriding methods must still call base.OnStartDrag() for correct behavior.

protected OnStartDrag ( object sender, PInputEventArgs e ) : void
sender object The source of the start drag event.
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat void

PDragSequenceEventHandler() public méthode

Constructs a new PDragSequenceEventHandler.
public PDragSequenceEventHandler ( ) : System
Résultat System

ShouldStartDragInteraction() protected méthode

Returns true if a drag sequence should be initiated.
protected ShouldStartDragInteraction ( PInputEventArgs e ) : bool
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat bool

StartDragActivity() protected méthode

Schedules the drag activity to run.
protected StartDragActivity ( PInputEventArgs e ) : void
e PInputEventArgs A PInputEventArgs that contains the event data.
Résultat void

Property Details

Drag public_oe property

Used to notify classes of drag events in a drag sequence.
public DragDelegate Drag
Résultat DragDelegate

DragActivityFinalStep public_oe property

Used to notify classes that the drag activity has stopped stepping.
public DragActivityFinalStepDelegate DragActivityFinalStep
Résultat DragActivityFinalStepDelegate

DragActivityFirstStep public_oe property

Used to notify classes that the drag activity has started stepping.
public DragActivityFirstStepDelegate DragActivityFirstStep
Résultat DragActivityFirstStepDelegate

DragActivityStep public_oe property

Used to notify classes that the drag activity is stepping.
public DragActivityStepDelegate DragActivityStep
Résultat DragActivityStepDelegate

EndDrag public_oe property

Used to notify classes of the end of a drag sequence.
public EndDragDelegate EndDrag
Résultat EndDragDelegate

StartDrag public_oe property

Used to notify classes of the start of a new drag sequence.
public StartDragDelegate StartDrag
Résultat StartDragDelegate