public class RubberBandXyZoomModifier extends TouchModifierBase
RubberBandXyZoomModifier
provides a touch move to zoom into a rectangular region, or horizontal section of the chart.
Add to a SciChartSurface
and set ChartModifierBase.isEnabled
to True to enable this behaviour.Constructor and Description |
---|
RubberBandXyZoomModifier() |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
detach() |
boolean |
getIsAnimated()
Gets whether zoom operations should be animated.
|
boolean |
getIsXAxisOnly()
Gets whether the RubberBand should zoom the X-Axis only.
|
double |
getMinDragSensitivity()
Gets the drag sensitivity - rectangles dragged smaller than this size in the diagonal will be ignored when zooming.
|
com.scichart.drawing.common.BrushStyle |
getRubberBandFillStyle()
Gets the
BrushStyle of the reticule drawn on the screen as the user zooms. |
com.scichart.drawing.common.PenStyle |
getRubberBandStrokeStyle()
Gets the
PenStyle of the reticule drawn on the screen as the user zooms. |
boolean |
getZoomExtentsY()
Gets whether the RubberBand should perform zoom to extents on the Y-Axis on the each zoom operation.
|
protected boolean |
onTouchDown(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Called when
MotionEvent.ACTION_DOWN event occurs |
protected boolean |
onTouchMove(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Called when
MotionEvent.ACTION_MOVE event occurs |
protected boolean |
onTouchUp(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Called when
MotionEvent.ACTION_UP event occurs |
void |
setIsAnimated(boolean isAnimated)
Sets whether zoom operations should be animated.
|
void |
setIsXAxisOnly(boolean isXAxisOnly)
Sets whether the RubberBand should zoom the X-Axis only.
|
void |
setMinDragSensitivity(double minDragSensitivity)
Sets the drag sensitivity - rectangles dragged smaller than this size in the diagonal will be ignored when zooming.
|
void |
setRubberBandFillStyle(com.scichart.drawing.common.BrushStyle rubberBandFill)
Sets the
BrushStyle of the reticule drawn on the screen as the user zooms. |
void |
setRubberBandStrokeStyle(com.scichart.drawing.common.PenStyle rubberBandStrokeStyle)
Sets the
PenStyle of the reticule drawn on the screen as the user zooms. |
void |
setZoomExtentsY(boolean zoomExtentsY)
Sets whether the RubberBand should perform zoom to extents on the Y-Axis on the each zoom operation.
|
onTouch, onTouchCancel
getContext, getEventsGroupTag, getIsEnabled, getMasterModifier, getModifierSurface, getParentSurface, getPointRelativeTo, getReceiveHandledEvents, getRenderableSeries, getRenderableSeriesArea, getServices, getXAxes, getXAxis, getXAxis, getYAxes, getYAxis, getYAxis, isAttached, isWithinSourceBounds, onAnnotationsCollectionChanged, onAnnotationsDrasticallyChanged, onGenericMotion, onIsEnabledChanged, onParentSurfaceResized, onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onRenderSurfaceRendered, onSelectedSeriesCollectionChanged, onXAxesCollectionChanged, onXAxesDrasticallyChanged, onYAxesCollectionChanged, onYAxesDrasticallyChanged, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
public final boolean getIsAnimated()
public final void setIsAnimated(boolean isAnimated)
isAnimated
- Value which indicates whether zoom operations should be animated.public final boolean getIsXAxisOnly()
public final void setIsXAxisOnly(boolean isXAxisOnly)
isXAxisOnly
- Value which indicates whether RubberBand should zoom the X-Axis only.public final double getMinDragSensitivity()
public final void setMinDragSensitivity(double minDragSensitivity)
minDragSensitivity
- Minimal drag sensitivity in pixels.public final com.scichart.drawing.common.PenStyle getRubberBandStrokeStyle()
PenStyle
of the reticule drawn on the screen as the user zooms.PenStyle
instance, to draw reticule.public final void setRubberBandStrokeStyle(com.scichart.drawing.common.PenStyle rubberBandStrokeStyle)
PenStyle
of the reticule drawn on the screen as the user zooms.rubberBandStrokeStyle
- The PenStyle
instance, to draw reticule.public final com.scichart.drawing.common.BrushStyle getRubberBandFillStyle()
BrushStyle
of the reticule drawn on the screen as the user zooms.BrushStyle
instance, to fill reticule.public final void setRubberBandFillStyle(com.scichart.drawing.common.BrushStyle rubberBandFill)
BrushStyle
of the reticule drawn on the screen as the user zooms.rubberBandFill
- The BrushStyle
instance, to fill reticule.public final boolean getZoomExtentsY()
isXAxisOnly
to achieve different zooming effects.public final void setZoomExtentsY(boolean zoomExtentsY)
isXAxisOnly
to achieve different zooming effects.zoomExtentsY
- Value which indicates whether the RubberBand should zoom to extents on the Y-Axis on the each zoom operation.public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
applyThemeProvider
in class ChartModifierBase
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class ChartModifierBase
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class ChartModifierBase
protected boolean onTouchDown(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
MotionEvent.ACTION_DOWN
event occursonTouchDown
in class TouchModifierBase
args
- The touch event args for this eventprotected boolean onTouchMove(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
MotionEvent.ACTION_MOVE
event occursonTouchMove
in class TouchModifierBase
args
- The touch event args for this eventprotected boolean onTouchUp(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
MotionEvent.ACTION_UP
event occursonTouchUp
in class TouchModifierBase
args
- The touch event args for this event