public class ScaleInfo extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
double |
horizontalScale |
Indicates the horizontal zooming amount since the start of zooming.
|
double |
rotation |
Indicates the rotation degree after zooming.
|
double |
scale |
Indicates the scaling amount since the start of zooming.
|
Point |
startPoint |
Indicates the primary point of a zooming gesture.
|
Point |
updatePoint |
Indicates the secondary point of a zooming gesture.
|
double |
verticalScale |
Indicates the vertical zooming amount since the start of zooming.
|
double |
xVelocity |
Indicates the horizontal velocity (pixels per second) of start-point at the end of scale gesture.
|
double |
xVelocitySecondary |
Indicates the horizontal velocity (pixels per second) of update-point at the end of scale gesture.
|
double |
yVelocity |
Indicates the vertical velocity (pixels per second) of start-point at the end of scale gesture.
|
double |
yVelocitySecondary |
Indicates the vertical velocity (pixels per second) of update-point at the end of scale gesture.
|
| 构造器 | 说明 |
|---|---|
ScaleInfo(Point startPoint,
Point updatePoint,
double scale,
double horizontalScale,
double verticalScale,
double rotation,
double xVelocity,
double yVelocity) |
Provides information about zooming gestures.
|
ScaleInfo(Point primaryPoint,
Point secondaryPoint,
double scale,
double horizontalScale,
double verticalScale,
double rotation,
double xVelocity,
double yVelocity,
double xVelocity2,
double yVelocity2) |
Provides information about zooming gestures.
|
public final double horizontalScale
public final double rotation
public final double scale
public final Point startPoint
public final Point updatePoint
public final double verticalScale
public final double xVelocity
public final double xVelocitySecondary
public final double yVelocity
public final double yVelocitySecondary
public ScaleInfo(Point startPoint, Point updatePoint, double scale, double horizontalScale, double verticalScale, double rotation, double xVelocity, double yVelocity)
startPoint - Indicates the start point of zooming gesture.updatePoint - Indicates the update point of zooming gesture.scale - Indicates the gesture zooming scale.horizontalScale - Indicates the horizontal zooming scale.verticalScale - Indicates the vertical zooming scale.rotation - Indicates the rotation angle.xVelocity - Indicates the X-axis velocity, in unit of pixels per second.yVelocity - Indicates the Y-axis velocity, in unit of pixels per second.public ScaleInfo(Point primaryPoint, Point secondaryPoint, double scale, double horizontalScale, double verticalScale, double rotation, double xVelocity, double yVelocity, double xVelocity2, double yVelocity2)
primaryPoint - Indicates the primary point of zooming gesture.secondaryPoint - Indicates the secondary point of zooming gesture.scale - Indicates the gesture zooming scale.horizontalScale - Indicates the horizontal zooming scale.verticalScale - Indicates the vertical zooming scale.rotation - Indicates the rotation angle.xVelocity - Indicates the primary point X-axis velocity, in unit of pixels per second.yVelocity - Indicates the primary point Y-axis velocity, in unit of pixels per second.xVelocity2 - Indicates the secondary point X-axis velocity, in unit of pixels per second.yVelocity2 - Indicates the secondary point Y-axis velocity, in unit of pixels per second.