Class PinchZoomModifier
The PinchZoomModifier provides zooming of the SciChartSurface with the pinch gesture.
Inheritance
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class PinchZoomModifier extends ScaleModifierBase
Constructors
PinchZoomModifier()
Declaration
public PinchZoomModifier()
Methods
getApplicableXAxes()
Gets the Iterable collection of the XAxes to which this modifier may be applicable on.
Declaration
protected Iterable<IAxis> getApplicableXAxes()
Returns
Type | Description |
---|---|
Iterable<IAxis> | The collection of the XAxes which this modifier may be applicable on. |
getApplicableYAxes()
Gets the Iterable collection of the YAxes to which this modifier may be applicable on.
Declaration
protected Iterable<IAxis> getApplicableYAxes()
Returns
Type | Description |
---|---|
Iterable<IAxis> | The collection of the YAxes which this modifier may be applicable on. |
getDirection()
Gets the Direction2D to restrict zoom interactivity to.
Declaration
public final Direction2D getDirection()
Returns
Type | Description |
---|---|
Direction2D | The Direction2D to restrict zoom interactivity to. |
getIsUniformZoom()
Sets the value which indicates whether uniform zoom should be used by this modifier.
When uniform zoom is set to true then modifier applies same scale factor for both x and y direction, otherwise scale factor calculated separately for x and y direction based on information from touch events
Declaration
public final boolean getIsUniformZoom()
Returns
Type | Description |
---|---|
boolean | Current |
getScaleFactor()
Gets the scale factor to scale (or shrink) both axes on pinch gesture.
Declaration
public final float getScaleFactor()
Returns
Type | Description |
---|---|
float | Float value which indicates scale factor. |
onScale(ScaleGestureDetector detector)
Declaration
public boolean onScale(ScaleGestureDetector detector)
Parameters
Type | Name | Description |
---|---|---|
android.view.ScaleGestureDetector | detector |
Returns
Type | Description |
---|---|
boolean |
onScaleBegin(ScaleGestureDetector detector)
Declaration
public boolean onScaleBegin(ScaleGestureDetector detector)
Parameters
Type | Name | Description |
---|---|---|
android.view.ScaleGestureDetector | detector |
Returns
Type | Description |
---|---|
boolean |
onScaleEnd(ScaleGestureDetector detector)
Declaration
public void onScaleEnd(ScaleGestureDetector detector)
Parameters
Type | Name | Description |
---|---|---|
android.view.ScaleGestureDetector | detector |
performZoom(PointF point, double xValue, double yValue)
Performs a zoom around the passed in point by the specified X and Y factor
Declaration
protected void performZoom(PointF point, double xValue, double yValue)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.PointF | point | The point to perform zoom around. |
double | xValue | The x zoom factor. |
double | yValue | The y zoom factor. |
setDirection(Direction2D direction)
Sets the Direction2D to restrict zoom interactivity to.
Declaration
public final void setDirection(Direction2D direction)
Parameters
Type | Name | Description |
---|---|---|
Direction2D | direction | The new Direction2D to restrict zoom interactivity to. |
setIsUniformZoom(boolean isUniformZoom)
Sets the value which indicates whether uniform zoom should be used by this modifier
When uniform zoom is set to true then modifier applies same scale factor for both x and y direction, otherwise scale factor calculated separately for x and y direction based on information from touch events
Declaration
public final void setIsUniformZoom(boolean isUniformZoom)
Parameters
Type | Name | Description |
---|---|---|
boolean | isUniformZoom | The new |
setScaleFactor(float scaleFactor)
Sets the scale factor to scale (or shrink) both axes on pinch gesture.
Declaration
public final void setScaleFactor(float scaleFactor)
Parameters
Type | Name | Description |
---|---|---|
float | scaleFactor | The scale factor to scale (or shrink) both axes on pinch gesture. |