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
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer

공개 프로퍼티들

프로퍼티 타입 설명
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