YAxisDragModifier
The YAxisDragModifier provides a mouse drag to scale the Y-Axis. This behaviour scales the axis in a different direction depending on which half of the axis the user starts the operation in Add to a UltrachartSurface and set IsEnabled to true to enable this behaviour
Hereda de: AxisDragModifierBase
Métodos
CalculateScaledRange(Point, Point, bool, IAxis) : IRange
When overriden in a derived class, calculates an output IRange to apply to the associated AxisBaseAxis, given the input parameters
- currentPoint
- The current mouse position
- lastPoint
- The last mouse position
- isSecondHalf
- A flag, which determines how the scale operates, e.g. which half of the axis (top or bottom, left or right) was dragged
- axis
- The axis being operated on
Devuelve: The output IRange
GetCurrentAxis() : IAxis
Gets the IAxis instance, which current modifier is associated with, on the parent UltrachartSurface
GetIsSecondHalf(Point, Rect, bool) : bool
Gets whether the specified mouse point is within the second (right-most or top-most) half of the Axis bounds
- point
- The mouse point
- axisBounds
- The axis bounds
- isHorizontalAxis
- Value, which indicates whether current axis is horizontal or not
Devuelve: True if the point is within the second (right-most or top-most) half of the axis bounds, else false
GetUsedCursor(IAxis) : Cursor
Depending on axis orientation and AxisAlignment, returns a Cursor to show during mouse-over of the axis
- axis
- The axis instance
OnModifierMouseDown(ModifierMouseArgs)
Called when a Mouse Button is pressed on the parent UltrachartSurface
- e
- Arguments detailing the mouse button operation
OnModifierMouseMove(ModifierMouseArgs)
Called when the Mouse is moved on the parent UltrachartSurface
- e
- Arguments detailing the mouse move operation
OnModifierMouseUp(ModifierMouseArgs)
Called when a Mouse Button is released on the parent UltrachartSurface
- e
- Arguments detailing the mouse button operation
PerformPan(Point, Point)
Peforms a pan on the assocaited AxisBase. The pan is considered to be a drag from to
- currentPoint
- The current mouse point
- lastPoint
- The last mouse point