Class 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 SciChartSurface and set IsEnabled to true to enable this behaviour. See Also: com.scichart.charting.modifiers.XAxisDragModifier
Inheritance
YAxisDragModifier
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class YAxisDragModifier extends AxisDragModifierBase
Constructors
YAxisDragModifier()
Declaration
public YAxisDragModifier()
Methods
applyScaleToRange(IRange applyTo, float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)
When overridden in a derived class, calculates an output IRange to apply to the associated IAxis which is given in the input parameters.
Declaration
protected void applyScaleToRange(IRange applyTo, float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)
Parameters
Type | Name | Description |
---|---|---|
IRange | applyTo | |
float | xDelta | |
float | yDelta | |
boolean | isSecondHalf | |
IAxis | axis |
Overrides
getApplicableAxes()
Declaration
protected Iterable<IAxis> getApplicableAxes()
Returns
Type | Description |
---|---|
Iterable<IAxis> |
Overrides
getIsSecondHalf(float x, float y, RectF axisBounds, boolean isHorizontalAxis)
Gets whether the specified mouse point is within the second (right-most or top-most) half of the Axis bounds.
Declaration
protected boolean getIsSecondHalf(float x, float y, RectF axisBounds, boolean isHorizontalAxis)
Parameters
Type | Name | Description |
---|---|---|
float | x | |
float | y | |
android.graphics.RectF | axisBounds | |
boolean | isHorizontalAxis |
Returns
Type | Description |
---|---|
boolean |
Overrides
performPan(float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)
Performs a pan on the associated IAxis which is given in the input parameters.
Declaration
protected void performPan(float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)
Parameters
Type | Name | Description |
---|---|---|
float | xDelta | |
float | yDelta | |
boolean | isSecondHalf | |
IAxis | axis |