C# Класс 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
Наследование: UMD.HCIL.Piccolo.Event.PBasicInputEventHandler, PActivity.PActivityDelegate
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Drag DragDelegate
DragActivityFinalStep DragActivityFinalStepDelegate
DragActivityFirstStep DragActivityFirstStepDelegate
DragActivityStep DragActivityStepDelegate
EndDrag EndDragDelegate
StartDrag StartDragDelegate

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
StopDragActivity ( PInputEventArgs e ) : void

Stops the drag activity.

Описание методов

ActivityFinished() публичный Метод

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.
Результат void

ActivityStarted() публичный Метод

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.
Результат void

ActivityStepped() публичный Метод

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.
Результат void

OnDrag() защищенный Метод

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.
Результат void

OnDragActivityFinalStep() защищенный Метод

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.
Результат void

OnDragActivityFirstStep() защищенный Метод

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.
Результат void

OnDragActivityStep() защищенный Метод

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.
Результат void

OnEndDrag() защищенный Метод

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.
Результат void

OnMouseDown() публичный Метод

Overridden. See PBasicInputEventHandler.OnMouseDown.
public OnMouseDown ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
Результат void

OnMouseDrag() публичный Метод

Overridden. See PBasicInputEventHandler.OnMouseDrag.
public OnMouseDrag ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
Результат void

OnMouseUp() публичный Метод

Overridden. See PBasicInputEventHandler.OnMouseUp.
public OnMouseUp ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
Результат void

OnStartDrag() защищенный Метод

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.
Результат void

PDragSequenceEventHandler() публичный Метод

Constructs a new PDragSequenceEventHandler.
public PDragSequenceEventHandler ( ) : System
Результат System

ShouldStartDragInteraction() защищенный Метод

Returns true if a drag sequence should be initiated.
protected ShouldStartDragInteraction ( PInputEventArgs e ) : bool
e PInputEventArgs A PInputEventArgs that contains the event data.
Результат bool

StartDragActivity() защищенный Метод

Schedules the drag activity to run.
protected StartDragActivity ( PInputEventArgs e ) : void
e PInputEventArgs A PInputEventArgs that contains the event data.
Результат void

Описание свойств

Drag публичное свойство

Used to notify classes of drag events in a drag sequence.
public DragDelegate Drag
Результат DragDelegate

DragActivityFinalStep публичное свойство

Used to notify classes that the drag activity has stopped stepping.
public DragActivityFinalStepDelegate DragActivityFinalStep
Результат DragActivityFinalStepDelegate

DragActivityFirstStep публичное свойство

Used to notify classes that the drag activity has started stepping.
public DragActivityFirstStepDelegate DragActivityFirstStep
Результат DragActivityFirstStepDelegate

DragActivityStep публичное свойство

Used to notify classes that the drag activity is stepping.
public DragActivityStepDelegate DragActivityStep
Результат DragActivityStepDelegate

EndDrag публичное свойство

Used to notify classes of the end of a drag sequence.
public EndDragDelegate EndDrag
Результат EndDragDelegate

StartDrag публичное свойство

Used to notify classes of the start of a new drag sequence.
public StartDragDelegate StartDrag
Результат StartDragDelegate