Guest User

Untitled

a guest
May 20th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1.  
  2.  
  3. class TouchHelper implements MultiTouchObjectCanvas {
  4.  
  5. Object getDraggableObjectAtPoint(PointInfo pt) {
  6. return this;
  7. }
  8.  
  9. void getPositionAndScale(Object obj, PositionAndScale objPosAndScaleOut) {
  10. objPosAndScaleOut.set(tx,ty,sc);
  11. }
  12.  
  13. boolean setPositionAndScale(Object obj, PositionAndScale newObjPosAndScale, PointInfo touchPoint) {
  14. tx = newObjPosAndScale.getXOff();
  15. ty = newObjPosAndScale.getYOff();
  16. sc = newObjPosAndScale.getScale();
  17. return true;
  18. }
  19.  
  20. void selectObject(Object obj, PointInfo pt) {
  21. }
  22. }
Add Comment
Please, Sign In to add comment