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

ZoomEventhandler provides event handlers for basic zooming of the canvas view with the right (third) button.
Tthe initial mouse press defines the zoom anchor point, and then moving the mouse to the right zooms with a speed proportional to the amount the mouse is moved to the right of the anchor point. Similarly, if the mouse is moved to the left, the the view is zoomed out.
Inheritance: PDragSequenceEventHandler
Show file Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Methods

Method Description
PZoomEventHandler ( ) : System

Constructs a new PZoomEventHandler.

Protected Methods

Method Description
OnDragActivityFirstStep ( object sender, PInputEventArgs e ) : void

Overridden. See PDragSequenceEventHandler.OnDragActivityFirstStep.

OnDragActivityStep ( object sender, PInputEventArgs e ) : void

Overridden. See PDragSequenceEventHandler.OnDragActivityStep.

PZoomEventHandlerAcceptsEvent ( PInputEventArgs e ) : bool

The filter for a PZoomEventHandler. This method only accepts right mouse button events that have not yet been handled.

Method Details

OnDragActivityFirstStep() protected method

Overridden. See PDragSequenceEventHandler.OnDragActivityFirstStep.
protected OnDragActivityFirstStep ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
return void

OnDragActivityStep() protected method

Overridden. See PDragSequenceEventHandler.OnDragActivityStep.
protected OnDragActivityStep ( object sender, PInputEventArgs e ) : void
sender object
e PInputEventArgs
return void

PZoomEventHandler() public method

Constructs a new PZoomEventHandler.
public PZoomEventHandler ( ) : System
return System

PZoomEventHandlerAcceptsEvent() protected method

The filter for a PZoomEventHandler. This method only accepts right mouse button events that have not yet been handled.
protected PZoomEventHandlerAcceptsEvent ( PInputEventArgs e ) : bool
e PInputEventArgs A PInputEventArgs that contains the event data.
return bool