-
public class MultiTouchController.PositionAndScaleA class that is used to store scroll offsets and scale information for objects that are managed by the multitouch controller
-
-
Method Summary
Modifier and Type Method Description floatgetXOff()floatgetYOff()floatgetScale()floatgetScaleX()Included in case you want to support anisotropic scaling floatgetScaleY()Included in case you want to support anisotropic scaling floatgetAngle()voidset(float xOff, float yOff, boolean updateScale, float scale, boolean updateScaleXY, float scaleX, float scaleY, boolean updateAngle, float angle)Set position and optionally scale, anisotropic scale, and/or angle. -
-
Method Detail
-
getXOff
float getXOff()
-
getYOff
float getYOff()
-
getScale
float getScale()
-
getScaleX
float getScaleX()
Included in case you want to support anisotropic scaling
-
getScaleY
float getScaleY()
Included in case you want to support anisotropic scaling
-
getAngle
float getAngle()
-
set
void set(float xOff, float yOff, boolean updateScale, float scale, boolean updateScaleXY, float scaleX, float scaleY, boolean updateAngle, float angle)
Set position and optionally scale, anisotropic scale, and/or angle. Where if the corresponding "update" flag is set to false, the field'svalue will not be changed during a pinch operation. If the value is not being updated *and* the value is not used by the clientapplication, then the value can just be zero. However if the value is not being updated but the value *is* being used by the clientapplication, the value should still be specified and the update flag should be false (e.g. angle of the object being dragged should stillbe specified even if the program is in "resize" mode rather than "rotate" mode).
-
-
-
-