IAxisInteractivityHelper
Defines a set of operations which allows to interact with axis that owns current instance of IAxisInteractivityHelper
Methods
public IRange ClipRange(IRange rangeToClip, IRange maximumRange, ClipMode clipMode)
result = iAxisInteractivityHelper.ClipRange(rangeToClip, maximumRange, clipMode)
Performs clipping of passed using
- rangeToClip
- maximumRange
- clipMode
public IRange Scroll(IRange rangeToScroll, double pixels)
result = iAxisInteractivityHelper.Scroll(rangeToScroll, pixels)
From the starting IRange, scrolls to a new range by the specified number of pixels
- rangeToScroll
- The start range
- pixels
- Scroll N pixels from the start visible range
public IRange ScrollBy(IRange rangeToScroll, int pointAmount)
result = iAxisInteractivityHelper.ScrollBy(rangeToScroll, pointAmount)
Translates the passed range by the specified number of datapoints
- rangeToScroll
- The start range
- pointAmount
- Amount of points that the start visible range is scrolled by
public IRange ScrollInMaxDirection(IRange rangeToScroll, double pixels)
result = iAxisInteractivityHelper.ScrollInMaxDirection(rangeToScroll, pixels)
From the starting IRange, scrolls to a new range by the specified number of pixels in Max direction
- rangeToScroll
- The start range
- pixels
- Scroll N pixels from the start visible range
public IRange ScrollInMinDirection(IRange rangeToScroll, double pixels)
result = iAxisInteractivityHelper.ScrollInMinDirection(rangeToScroll, pixels)
From the starting IRange, scrolls to a new range by the specified number of pixels in Min direction
- rangeToScroll
- The start range
- pixels
- Scroll N pixels from the start visible range
public IRange Zoom(IRange initialRange, double fromCoord, double toCoord)
result = iAxisInteractivityHelper.Zoom(initialRange, fromCoord, toCoord)
Calculates and returns a Zoomed Range on current IAxis, using as a coordinate of new range start and as a coordinate of new range end
- initialRange
- Initial range
- fromCoord
- The coordinate of new range start in pixels
- toCoord
- The coordinate of new range end in pixels
public IRange ZoomBy(IRange initialRange, double minFraction, double maxFraction)
result = iAxisInteractivityHelper.ZoomBy(initialRange, minFraction, maxFraction)
Calculates and returns a Zoomed Range on current IAxis, using as a multiplier of range start and as a multiplier of range end
- initialRange
- Initial range
- minFraction
- The multiplier of range start
- maxFraction
- The multiplier of range end