/*------------------------override functions------------------------------*/
 @Override
 public boolean onDown(MotionEvent e) {
   StarObjectClass self = BasicAndroidObject.getStarObject();
   StarServiceClass Service = (StarServiceClass) self._Get("_Service");
   StarObjectClass definedclass = self._DefinedClass("onDown");
   StarObjectClass basicclass = Service._GetObject("GalleryClass");
   if (definedclass._GetStr("_ID").equals(basicclass._GetStr("_ID"))) return super.onDown(e);
   if (motionevent1 == null) motionevent1 = Service._GetObject("MotionEventClass")._New();
   StarCLEMotionEvent star_motionevent1 =
       (StarCLEMotionEvent) WrapAndroidClass.GetAndroidObject(motionevent1, "AndroidObject");
   star_motionevent1.motionevent = e;
   boolean Result = self._Tobool(self._Call("onDown", motionevent1));
   star_motionevent1.motionevent = null;
   return Result;
 }
 @Override
 public void onShowPress(MotionEvent e) {
   StarObjectClass self = BasicAndroidObject.getStarObject();
   StarServiceClass Service = (StarServiceClass) self._Get("_Service");
   StarObjectClass definedclass = self._DefinedClass("onShowPress");
   StarObjectClass basicclass = Service._GetObject("GalleryClass");
   if (definedclass._GetStr("_ID").equals(basicclass._GetStr("_ID"))) {
     super.onShowPress(e);
     return;
   }
   if (motionevent1 == null) motionevent1 = Service._GetObject("MotionEventClass")._New();
   StarCLEMotionEvent star_motionevent1 =
       (StarCLEMotionEvent) WrapAndroidClass.GetAndroidObject(motionevent1, "AndroidObject");
   star_motionevent1.motionevent = e;
   self._Call("onShowPress", motionevent1);
   star_motionevent1.motionevent = null;
   return;
 }
 @Override
 public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
   StarObjectClass self = BasicAndroidObject.getStarObject();
   StarServiceClass Service = (StarServiceClass) self._Get("_Service");
   StarObjectClass definedclass = self._DefinedClass("onFling");
   StarObjectClass basicclass = Service._GetObject("GalleryClass");
   if (definedclass._GetStr("_ID").equals(basicclass._GetStr("_ID")))
     return super.onFling(e1, e2, velocityX, velocityY);
   if (motionevent1 == null) motionevent1 = Service._GetObject("MotionEventClass")._New();
   StarCLEMotionEvent star_motionevent1 =
       (StarCLEMotionEvent) WrapAndroidClass.GetAndroidObject(motionevent1, "AndroidObject");
   star_motionevent1.motionevent = e1;
   if (motionevent2 == null) motionevent2 = Service._GetObject("MotionEventClass")._New();
   StarCLEMotionEvent star_motionevent2 =
       (StarCLEMotionEvent) WrapAndroidClass.GetAndroidObject(motionevent2, "AndroidObject");
   star_motionevent2.motionevent = e2;
   boolean Result =
       self._Tobool(self._Call("onFling", motionevent1, motionevent2, velocityX, velocityY));
   star_motionevent1.motionevent = null;
   star_motionevent2.motionevent = null;
   return Result;
 }