/// <summary> /// Adds the specified mouse hover manipulator and invokes the <see cref="TouchManipulator.Started" /> method with the specified mouse event arguments. /// </summary> /// <param name="view">The plot view.</param> /// <param name="manipulator">The manipulator.</param> /// <param name="args">The <see cref="OxyTouchEventArgs" /> instance containing the event data.</param> public virtual void AddTouchManipulator( IView view, ManipulatorBase <OxyTouchEventArgs> manipulator, OxyTouchEventArgs args) { this.TouchManipulators.Add(manipulator); manipulator.Started(args); }
/// <summary> /// Adds the specified mouse hover manipulator and invokes the <see cref="MouseManipulator.Started" /> method with the specified mouse event arguments. /// </summary> /// <param name="view">The plot view.</param> /// <param name="manipulator">The manipulator.</param> /// <param name="args">The <see cref="OxyMouseEventArgs" /> instance containing the event data.</param> public virtual void AddHoverManipulator( IView view, ManipulatorBase <OxyMouseEventArgs> manipulator, OxyMouseEventArgs args) { this.MouseHoverManipulators.Add(manipulator); manipulator.Started(args); }
/// <summary> /// Adds the specified mouse hover manipulator and invokes the <see cref="MouseManipulator.Started" /> method with the specified mouse event arguments. /// </summary> /// <param name="view">The plot view.</param> /// <param name="manipulator">The manipulator.</param> /// <param name="args">The <see cref="OxyMouseEventArgs" /> instance containing the event data.</param> public virtual void AddHoverManipulator( IView view, ManipulatorBase<OxyMouseEventArgs> manipulator, OxyMouseEventArgs args) { this.MouseHoverManipulators.Add(manipulator); manipulator.Started(args); }
/// <summary> /// Adds the specified mouse hover manipulator and invokes the <see cref="TouchManipulator.Started" /> method with the specified mouse event arguments. /// </summary> /// <param name="view">The plot view.</param> /// <param name="manipulator">The manipulator.</param> /// <param name="args">The <see cref="OxyTouchEventArgs" /> instance containing the event data.</param> public virtual void AddTouchManipulator( IView view, ManipulatorBase<OxyTouchEventArgs> manipulator, OxyTouchEventArgs args) { this.TouchManipulators.Add(manipulator); manipulator.Started(args); }
/// <summary> /// Raises the <see cref="E:System.Windows.Forms.Control.MouseUp"/> event. /// </summary> /// <param name="e"> /// A <see cref="T:System.Windows.Forms.MouseEventArgs"/> that contains the event data. /// </param> protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); if (this.mouseManipulator != null) { this.mouseManipulator.Completed(this.CreateManipulationEventArgs(e)); } this.mouseManipulator = null; this.Capture = false; }
/// <summary> /// The on mouse down. /// </summary> /// <param name="e"> /// The e. /// </param> protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); if (this.mouseManipulator != null) { return; } this.Focus(); this.Capture = true; this.mouseManipulator = this.GetManipulator(e); if (this.mouseManipulator != null) { this.mouseManipulator.Started(this.CreateManipulationEventArgs(e)); } }