Class XAxisDragModifier
The XAxisDragModifier provides a mouse drag to scale the X-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: YAxisDragModifier
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class XAxisDragModifier extends AxisDragModifierBase
Constructors
XAxisDragModifier()
Declaration
public XAxisDragModifier()
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
getClipModeTargetX()
Gets which target is used as limit by ClipModeX when you reach the edge of the X-Axis extents
Declaration
public final ClipModeTarget getClipModeTargetX()
Returns
Type | Description |
---|---|
ClipModeTarget | The target range which is used as limit by ClipModeX |
getClipModeX()
Gets the ClipMode which is define how panning behaves when you reach the edge of the X-Axis extents. e.g. The ClipMode#ClipAtExtents prevents panning outside of the X-Axis, ClipMode#None allows panning outside.
Declaration
public final ClipMode getClipModeX()
Returns
Type | Description |
---|---|
ClipMode | The ClipMode. |
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 |
Overrides
setClipModeTargetX(ClipModeTarget clipModeTargetX)
Sets which target is used as limit by ClipModeX when you reach the edge of the X-Axis extents
Declaration
public final void setClipModeTargetX(ClipModeTarget clipModeTargetX)
Parameters
Type | Name | Description |
---|---|---|
ClipModeTarget | clipModeTargetX | The target range which is used as limit by ClipModeX |
setClipModeX(ClipMode clipModeX)
Sets the ClipMode which is define how panning behaves when you reach the edge of the X-Axis extents. e.g. The ClipMode#ClipAtExtents prevents panning outside of the X-Axis, ClipMode#None allows panning outside.
Declaration
public final void setClipModeX(ClipMode clipModeX)
Parameters
Type | Name | Description |
---|---|---|
ClipMode | clipModeX | The new ClipMode, which determines behavior when you reach the edge of the X-Axis extents by panning. |