コード例 #1
0
 public static void dumpVertex(AnimationRect rect) {
   Log.i(TAG, "Dump Vertex Animation Rect begin");
   Log.i(
       TAG,
       "("
           + rect.getLeftTop()[0]
           + " , "
           + rect.getLeftTop()[1]
           + ")"
           + " , "
           + "("
           + rect.getRightTop()[0]
           + " , "
           + rect.getRightTop()[1]
           + ")");
   Log.i(
       TAG,
       "("
           + rect.getLeftBottom()[0]
           + " , "
           + rect.getLeftBottom()[1]
           + ")"
           + " , "
           + "("
           + rect.getRightBottom()[0]
           + " , "
           + rect.getRightBottom()[1]
           + ")");
   Log.i(TAG, "Dump Vertex Animation Rect end");
   Log.i(TAG, "(centerX , centerY) = " + "(" + rect.centerX() + " , " + rect.centerY() + ")");
 }
コード例 #2
0
 public AnimationRect copy() {
   AnimationRect resultRect = new AnimationRect();
   resultRect.mCurrentScaleValue = this.mCurrentScaleValue;
   resultRect.mAnimationMatrix.set(this.mAnimationMatrix);
   resultRect.mOriginalDistance = this.mOriginalDistance;
   resultRect.mRectF.set(this.mRectF);
   resultRect.mPreviewWidth = this.mPreviewWidth;
   resultRect.mPreviewHeight = this.mPreviewHeight;
   resultRect.mCurrentRotationValue = this.mCurrentRotationValue;
   resultRect.setLeftTop(this.getLeftTop());
   resultRect.setRightTop(this.getRightTop());
   resultRect.setLeftBottom(this.getLeftBottom());
   resultRect.setRightBottom(this.getRightBottom());
   resultRect.setHighLightEnable(this.mIsHighlightEnable);
   return resultRect;
 }