Search Results for

    Show / Hide Table of Contents

    Class AxisDragModifierBase

    Provides base class for dragging operations on axes See Also: XAxisDragModifier, YAxisDragModifier

    Inheritance
    java.lang.Object
    ReceiveMotionEventsBase
    ChartModifierCore
    ChartModifierBase
    GestureModifierBase
    AxisDragModifierBase
    Inherited Members
    ChartModifierBase.<T>getMasterModifier(T,IReceiveMotionEvents)
    ChartModifierBase.getAllXAxes()
    ChartModifierBase.getAllYAxes()
    ChartModifierBase.getContext()
    ChartModifierBase.getModifierSurface()
    ChartModifierBase.getParentSurface()
    ChartModifierBase.getPointRelativeTo(PointF,IHitTestable)
    ChartModifierBase.getRenderableSeries()
    ChartModifierBase.getRenderableSeriesArea()
    ChartModifierBase.getXAxes()
    ChartModifierBase.getXAxis()
    ChartModifierBase.getXAxis(String)
    ChartModifierBase.getYAxes()
    ChartModifierBase.getYAxis()
    ChartModifierBase.getYAxis(String)
    ChartModifierBase.includeAllAxes()
    ChartModifierBase.includeXAxis(IAxis,boolean)
    ChartModifierBase.includeYAxis(IAxis,boolean)
    ChartModifierBase.isWithinSourceBounds(float,float,boolean,IReceiveMotionEvents)
    ChartModifierBase.onAnnotationsCollectionChanged(CollectionChangedEventArgs<IAnnotation>)
    ChartModifierBase.onAnnotationsDrasticallyChanged()
    ChartModifierBase.onParentSurfaceResized(ResizedMessage)
    ChartModifierBase.onRenderSurfaceRendered(RenderedMessage)
    ChartModifierBase.onXAxesCollectionChanged(CollectionChangedEventArgs<IAxis>)
    ChartModifierBase.onXAxesDrasticallyChanged()
    ChartModifierBase.onYAxesCollectionChanged(CollectionChangedEventArgs<IAxis>)
    ChartModifierBase.onYAxesDrasticallyChanged()
    ChartModifierCore.applyThemeProvider(IThemeProvider)
    ChartModifierCore.checkPointerCounter(MotionEvent,int)
    ChartModifierCore.getEventsGroupTag()
    ChartModifierCore.getIsEnabled()
    ChartModifierCore.getReceiveHandledEvents()
    ChartModifierCore.getServices()
    ChartModifierCore.isAttached()
    ChartModifierCore.onGenericMotion(ModifierTouchEventArgs)
    ChartModifierCore.onIsEnabledChanged(boolean)
    ChartModifierCore.onRenderableSeriesCollectionChanged(CollectionChangedEventArgs<? extends renderableSeries.IRenderableSeriesCore>)
    ChartModifierCore.onRenderableSeriesDrasticallyChanged()
    ChartModifierCore.onSelectedSeriesCollectionChanged(CollectionChangedEventArgs<? extends renderableSeries.IRenderableSeriesCore>)
    ChartModifierCore.setEventsGroupTag(String)
    ChartModifierCore.setIsEnabled(boolean)
    ChartModifierCore.setReceiveHandledEvents(boolean)
    GestureModifierBase.attachTo(IServiceContainer)
    GestureModifierBase.detach()
    GestureModifierBase.getOriginalTouchEvent()
    GestureModifierBase.onCancel(MotionEvent)
    GestureModifierBase.onDoubleTap(MotionEvent)
    GestureModifierBase.onDoubleTapEvent(MotionEvent)
    GestureModifierBase.onDown(MotionEvent)
    GestureModifierBase.onFling(MotionEvent,MotionEvent,float,float)
    GestureModifierBase.onLongPress(MotionEvent)
    GestureModifierBase.onScroll(MotionEvent,MotionEvent,float,float)
    GestureModifierBase.onShowPress(MotionEvent)
    GestureModifierBase.onSingleTapConfirmed(MotionEvent)
    GestureModifierBase.onSingleTapUp(MotionEvent)
    GestureModifierBase.onTouch(ModifierTouchEventArgs)
    GestureModifierBase.onUp(MotionEvent)
    ReceiveMotionEventsBase.getName()
    Object.clone()
    Object.equals(Object)
    Object.finalize()
    Object.getClass()
    Object.hashCode()
    Object.notify()
    Object.notifyAll()
    Object.toString()
    Object.wait()
    Object.wait(long)
    Object.wait(long,int)
    Namespace:
    Assembly: .dll
    Syntax
    public abstract class AxisDragModifierBase extends GestureModifierBase

    Constructors

    AxisDragModifierBase()

    Declaration
    public AxisDragModifierBase()

    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 abstract void applyScaleToRange(IRange applyTo, float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)
    Parameters
    Type Name Description
    IRange applyTo

    The IRange instance which will be scaled.

    float xDelta

    The x delta value.

    float yDelta

    The y delta value.

    boolean isSecondHalf

    Boolean flag to determine which side of the axis is scaled.

    IAxis axis

    The IAxis instance being operated on.

    getApplicableAxes()

    Gets the Iterable collection of the IAxis to which this modifier may be applicable on.

    Declaration
    protected abstract Iterable<IAxis> getApplicableAxes()
    Returns
    Type Description
    Iterable<IAxis>

    The collection of IAxis which this modifier may be applicable on.

    getDragMode()

    Gets the AxisDragMode of the AxisDragModifierBase. This modifier may be used to scale or pan the AxisCore#getVisibleRange() creating a scrolling or panning effect.

    Declaration
    public final AxisDragModifierBase.AxisDragMode getDragMode()
    Returns
    Type Description
    AxisDragModifierBase.AxisDragMode

    The AxisDragMode which is used.

    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

    The x value of the MotionEvent.

    float y

    The y value of the MotionEvent.

    android.graphics.RectF axisBounds

    The axis bounds.

    boolean isHorizontalAxis

    Value, which indicates whether current axis is horizontal or not.

    Returns
    Type Description
    boolean

    True if the point is within the second (right-most or top-most) half of the axis bounds, else false.

    getMinTouchArea()

    Gets minimal area of recognition (min height for horizontal axis or min width for vertical), where user click or touch triggers zoom behavior.

    Declaration
    public final float getMinTouchArea()
    Returns
    Type Description
    float

    The minimal area of recognition, where user click or touch triggers zoom behavior.

    onCancel(MotionEvent e)

    Called when MotionEvent#ACTION_CANCEL event occurs

    Declaration
    protected void onCancel(MotionEvent e)
    Parameters
    Type Name Description
    android.view.MotionEvent e
    Overrides
    GestureModifierBase.onCancel(MotionEvent e)

    onDown(MotionEvent e)

    Declaration
    public boolean onDown(MotionEvent e)
    Parameters
    Type Name Description
    android.view.MotionEvent e
    Returns
    Type Description
    boolean
    Overrides
    GestureModifierBase.onDown(MotionEvent e)

    onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)

    Declaration
    public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
    Parameters
    Type Name Description
    android.view.MotionEvent e1
    android.view.MotionEvent e2
    float distanceX
    float distanceY
    Returns
    Type Description
    boolean
    Overrides
    GestureModifierBase.onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)

    onUp(MotionEvent e)

    Called when MotionEvent#ACTION_UP event occurs

    Declaration
    protected void onUp(MotionEvent e)
    Parameters
    Type Name Description
    android.view.MotionEvent e
    Overrides
    GestureModifierBase.onUp(MotionEvent e)

    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 abstract void performPan(float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)
    Parameters
    Type Name Description
    float xDelta

    The x delta value.

    float yDelta

    The y delta value.

    boolean isSecondHalf

    Boolean flag to determine which side of the axis is panned.

    IAxis axis

    The IAxis instance being operated on.

    performScale(float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)

    Performs a Scale on the associated IAxis which is given in the input parameters.

    Declaration
    protected void performScale(float xDelta, float yDelta, boolean isSecondHalf, IAxis axis)
    Parameters
    Type Name Description
    float xDelta

    The x delta value.

    float yDelta

    The y delta value.

    boolean isSecondHalf

    Boolean flag to determine which side of the axis is scaled.

    IAxis axis

    The IAxis instance on which the scale operation will be performed.

    setDragMode(AxisDragModifierBase.AxisDragMode dragMode)

    Sets the AxisDragMode of the AxisDragModifierBase. This modifier may be used to scale or pan the AxisCore#getVisibleRange() creating a scrolling or panning effect.

    Declaration
    public final void setDragMode(AxisDragModifierBase.AxisDragMode dragMode)
    Parameters
    Type Name Description
    AxisDragModifierBase.AxisDragMode dragMode

    The new AxisDragMode of the AxisDragModifierBase.

    setMinTouchArea(float minTouchArea)

    Sets minimal area of recognition (min height for horizontal axis or min width for vertical), where user click or touch triggers zoom behavior.

    Declaration
    public final void setMinTouchArea(float minTouchArea)
    Parameters
    Type Name Description
    float minTouchArea

    The minimal area of recognition, where user click or touch triggers zoom behavior.

    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml