test_class.file: volley-views/src/test/java/com/navercorp/volleyextensions/view/ImageViewZoomExtenderTest.java
test_class.identifier: ImageViewZoomExtenderTest
test_case.body: @Test
  	public void extenderShouldCheckDrawableExistsWhenExtenderRestores() {
  		// Given
  		float zoomLevel = 7.0f;
  		ZoomInfo zoomInfo = new ZoomInfo(zoomLevel);
  		ImageView imageView = mock(ImageView.class);
  		imageView.setImageBitmap(createTestBitmap());
  		ZoomableComponent extender = new ImageViewZoomExtender(imageView);
  		// When
  		extender.restore(zoomInfo);
  		// Then
  		verify(imageView).getDrawable();
  	}
test_case.class_method_signature: ImageViewZoomExtenderTest.extenderShouldCheckDrawableExistsWhenExtenderRestores()
test_case.full_signature: @Test public void extenderShouldCheckDrawableExistsWhenExtenderRestores()
test_case.identifier: extenderShouldCheckDrawableExistsWhenExtenderRestores
test_case.invocations: mock setImageBitmap createTestBitmap restore getDrawable verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void extenderShouldCheckDrawableExistsWhenExtenderRestores()
focal_class.declarator: DEFAULT_MATRIX_SIZE = 3 * 3
focal_class.modifier: public static final
focal_class.original_string: public static final int DEFAULT_MATRIX_SIZE = 3 * 3;
focal_class.type: int
focal_class.var_name: DEFAULT_MATRIX_SIZE
focal_class.declarator: NONE_DEF_STYLE = 0
focal_class.modifier: public static final
focal_class.original_string: public static final int NONE_DEF_STYLE = 0;
focal_class.type: int
focal_class.var_name: NONE_DEF_STYLE
focal_class.declarator: ORIGINAL_LEVEL = 1.0f
focal_class.modifier: public static final
focal_class.original_string: public static final float ORIGINAL_LEVEL = 1.0f;
focal_class.type: float
focal_class.var_name: ORIGINAL_LEVEL
focal_class.declarator: topLeftPoint = new PointF(0.0f, 0.0f)
focal_class.modifier: private static final
focal_class.original_string: private static final PointF topLeftPoint = new PointF(0.0f, 0.0f);
focal_class.type: PointF
focal_class.var_name: topLeftPoint
focal_class.declarator: zoomLevel = ORIGINAL_LEVEL
focal_class.modifier: private
focal_class.original_string: private float zoomLevel = ORIGINAL_LEVEL;
focal_class.type: float
focal_class.var_name: zoomLevel
focal_class.declarator: imageView
focal_class.modifier: private
focal_class.original_string: private ImageView imageView;
focal_class.type: ImageView
focal_class.var_name: imageView
focal_class.declarator: currentMatrix = new Matrix()
focal_class.modifier: private final
focal_class.original_string: private final Matrix currentMatrix = new Matrix();
focal_class.type: Matrix
focal_class.var_name: currentMatrix
focal_class.declarator: initialScaleSize
focal_class.modifier: private
focal_class.original_string: private float initialScaleSize;
focal_class.type: float
focal_class.var_name: initialScaleSize
focal_class.declarator: viewWidth
focal_class.modifier: private
focal_class.original_string: private int viewWidth;
focal_class.type: int
focal_class.var_name: viewWidth
focal_class.declarator: viewHeight
focal_class.modifier: private
focal_class.original_string: private int viewHeight;
focal_class.type: int
focal_class.var_name: viewHeight
focal_class.declarator: imageWidth
focal_class.modifier: private
focal_class.original_string: private int imageWidth;
focal_class.type: int
focal_class.var_name: imageWidth
focal_class.declarator: imageHeight
focal_class.modifier: private
focal_class.original_string: private int imageHeight;
focal_class.type: int
focal_class.var_name: imageHeight
focal_class.file: volley-views/src/main/java/com/navercorp/volleyextensions/view/ImageViewZoomExtender.java
focal_class.identifier: ImageViewZoomExtender
focal_class.interfaces: implements ZoomableComponent
focal_class.class_method_signature: ImageViewZoomExtender.ImageViewZoomExtender(ImageView imageView)
focal_class.full_signature: public  ImageViewZoomExtender(ImageView imageView)
focal_class.identifier: ImageViewZoomExtender
focal_class.modifiers: public
focal_class.parameters: (ImageView imageView)
focal_class.signature:  ImageViewZoomExtender(ImageView imageView)
focal_class.class_method_signature: ImageViewZoomExtender.setImageView(ImageView imageView)
focal_class.full_signature: private void setImageView(ImageView imageView)
focal_class.identifier: setImageView
focal_class.modifiers: private
focal_class.parameters: (ImageView imageView)
focal_class.return: void
focal_class.signature: void setImageView(ImageView imageView)
focal_class.class_method_signature: ImageViewZoomExtender.setScaleTypeMatrix()
focal_class.full_signature: private void setScaleTypeMatrix()
focal_class.identifier: setScaleTypeMatrix
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setScaleTypeMatrix()
focal_class.class_method_signature: ImageViewZoomExtender.getZoomLevel()
focal_class.full_signature: @Override public float getZoomLevel()
focal_class.identifier: getZoomLevel
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float getZoomLevel()
focal_class.class_method_signature: ImageViewZoomExtender.restore(ZoomInfo zoomInfo)
focal_class.full_signature: @Override public void restore(ZoomInfo zoomInfo)
focal_class.identifier: restore
focal_class.modifiers: @Override public
focal_class.parameters: (ZoomInfo zoomInfo)
focal_class.return: void
focal_class.signature: void restore(ZoomInfo zoomInfo)
focal_class.class_method_signature: ImageViewZoomExtender.createZoomInfoIfNull(ZoomInfo zoomInfo)
focal_class.full_signature: private static ZoomInfo createZoomInfoIfNull(ZoomInfo zoomInfo)
focal_class.identifier: createZoomInfoIfNull
focal_class.modifiers: private static
focal_class.parameters: (ZoomInfo zoomInfo)
focal_class.return: ZoomInfo
focal_class.signature: ZoomInfo createZoomInfoIfNull(ZoomInfo zoomInfo)
focal_class.class_method_signature: ImageViewZoomExtender.resetZoomLevel()
focal_class.full_signature: private void resetZoomLevel()
focal_class.identifier: resetZoomLevel
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetZoomLevel()
focal_class.class_method_signature: ImageViewZoomExtender.resetImageMatrix()
focal_class.full_signature: private void resetImageMatrix()
focal_class.identifier: resetImageMatrix
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetImageMatrix()
focal_class.class_method_signature: ImageViewZoomExtender.saveCurrentSizes()
focal_class.full_signature: private void saveCurrentSizes()
focal_class.identifier: saveCurrentSizes
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void saveCurrentSizes()
focal_class.class_method_signature: ImageViewZoomExtender.initializeScaleSize()
focal_class.full_signature: private void initializeScaleSize()
focal_class.identifier: initializeScaleSize
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initializeScaleSize()
focal_class.class_method_signature: ImageViewZoomExtender.isImageSizeLargerThanView()
focal_class.full_signature: private boolean isImageSizeLargerThanView()
focal_class.identifier: isImageSizeLargerThanView
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isImageSizeLargerThanView()
focal_class.class_method_signature: ImageViewZoomExtender.computeFitScaleOfImage()
focal_class.full_signature: private float computeFitScaleOfImage()
focal_class.identifier: computeFitScaleOfImage
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: float
focal_class.signature: float computeFitScaleOfImage()
focal_class.class_method_signature: ImageViewZoomExtender.restoreActualZoomPosition(ZoomInfo zoomInfo)
focal_class.full_signature: private void restoreActualZoomPosition(ZoomInfo zoomInfo)
focal_class.identifier: restoreActualZoomPosition
focal_class.modifiers: private
focal_class.parameters: (ZoomInfo zoomInfo)
focal_class.return: void
focal_class.signature: void restoreActualZoomPosition(ZoomInfo zoomInfo)
focal_class.class_method_signature: ImageViewZoomExtender.save()
focal_class.full_signature: @Override public ZoomInfo save()
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ZoomInfo
focal_class.signature: ZoomInfo save()
focal_class.class_method_signature: ImageViewZoomExtender.createCurrentZoomInfo()
focal_class.full_signature: private ZoomInfo createCurrentZoomInfo()
focal_class.identifier: createCurrentZoomInfo
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ZoomInfo
focal_class.signature: ZoomInfo createCurrentZoomInfo()
focal_class.class_method_signature: ImageViewZoomExtender.zoomTo(float targetLevel)
focal_class.full_signature: public void zoomTo(float targetLevel)
focal_class.identifier: zoomTo
focal_class.modifiers: public
focal_class.parameters: (float targetLevel)
focal_class.return: void
focal_class.signature: void zoomTo(float targetLevel)
focal_class.class_method_signature: ImageViewZoomExtender.zoomTo(float targetLevel, PointF zoomPoint)
focal_class.full_signature: public void zoomTo(float targetLevel, PointF zoomPoint)
focal_class.identifier: zoomTo
focal_class.modifiers: public
focal_class.parameters: (float targetLevel, PointF zoomPoint)
focal_class.return: void
focal_class.signature: void zoomTo(float targetLevel, PointF zoomPoint)
focal_class.class_method_signature: ImageViewZoomExtender.zoomTo(float targetLevel, float zoomX, float zoomY)
focal_class.full_signature: @Override public void zoomTo(float targetLevel, float zoomX, float zoomY)
focal_class.identifier: zoomTo
focal_class.modifiers: @Override public
focal_class.parameters: (float targetLevel, float zoomX, float zoomY)
focal_class.return: void
focal_class.signature: void zoomTo(float targetLevel, float zoomX, float zoomY)
focal_class.class_method_signature: ImageViewZoomExtender.updateZoomLevel(float targetLevel)
focal_class.full_signature: private void updateZoomLevel(float targetLevel)
focal_class.identifier: updateZoomLevel
focal_class.modifiers: private
focal_class.parameters: (float targetLevel)
focal_class.return: void
focal_class.signature: void updateZoomLevel(float targetLevel)
focal_class.class_method_signature: ImageViewZoomExtender.scaleSize(Matrix matrix, float targetLevel, float zoomX, float zoomY)
focal_class.full_signature: private void scaleSize(Matrix matrix, float targetLevel, float zoomX, float zoomY)
focal_class.identifier: scaleSize
focal_class.modifiers: private
focal_class.parameters: (Matrix matrix, float targetLevel, float zoomX, float zoomY)
focal_class.return: void
focal_class.signature: void scaleSize(Matrix matrix, float targetLevel, float zoomX, float zoomY)
focal_class.class_method_signature: ImageViewZoomExtender.centerImage(Matrix matrix)
focal_class.full_signature: private void centerImage(Matrix matrix)
focal_class.identifier: centerImage
focal_class.modifiers: private
focal_class.parameters: (Matrix matrix)
focal_class.return: void
focal_class.signature: void centerImage(Matrix matrix)
focal_class.class_method_signature: ImageViewZoomExtender.isImageEmpty()
focal_class.full_signature: private boolean isImageEmpty()
focal_class.identifier: isImageEmpty
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isImageEmpty()
focal_class.class_method_signature: ImageViewZoomExtender.panTo(PointF difference)
focal_class.full_signature: public void panTo(PointF difference)
focal_class.identifier: panTo
focal_class.modifiers: public
focal_class.parameters: (PointF difference)
focal_class.return: void
focal_class.signature: void panTo(PointF difference)
focal_class.class_method_signature: ImageViewZoomExtender.panTo(float dx, float dy)
focal_class.full_signature: @Override public void panTo(float dx, float dy)
focal_class.identifier: panTo
focal_class.modifiers: @Override public
focal_class.parameters: (float dx, float dy)
focal_class.return: void
focal_class.signature: void panTo(float dx, float dy)
focal_class.class_method_signature: ImageViewZoomExtender.setImageMatrix(Matrix matrix)
focal_class.full_signature: private void setImageMatrix(Matrix matrix)
focal_class.identifier: setImageMatrix
focal_class.modifiers: private
focal_class.parameters: (Matrix matrix)
focal_class.return: void
focal_class.signature: void setImageMatrix(Matrix matrix)
focal_class.class_method_signature: ImageViewZoomExtender.translatePosition(Matrix matrix, float dx, float dy)
focal_class.full_signature: private void translatePosition(Matrix matrix, float dx, float dy)
focal_class.identifier: translatePosition
focal_class.modifiers: private
focal_class.parameters: (Matrix matrix, float dx, float dy)
focal_class.return: void
focal_class.signature: void translatePosition(Matrix matrix, float dx, float dy)
focal_class.class_method_signature: ImageViewZoomExtender.boundArea(Matrix matrix)
focal_class.full_signature: protected void boundArea(Matrix matrix)
focal_class.identifier: boundArea
focal_class.modifiers: protected
focal_class.parameters: (Matrix matrix)
focal_class.return: void
focal_class.signature: void boundArea(Matrix matrix)
focal_class.class_method_signature: ImageViewZoomExtender.getValuesOfMatrix(Matrix matrix)
focal_class.full_signature: private static float[] getValuesOfMatrix(Matrix matrix)
focal_class.identifier: getValuesOfMatrix
focal_class.modifiers: private static
focal_class.parameters: (Matrix matrix)
focal_class.return: float[]
focal_class.signature: float[] getValuesOfMatrix(Matrix matrix)
focal_method.body: @Override
  	public void restore(ZoomInfo zoomInfo) {
  		if (isImageEmpty()) {
  			return;
  		}
  
  		zoomInfo = createZoomInfoIfNull(zoomInfo);
  
  		resetZoomLevel();
  		resetImageMatrix();
  		saveCurrentSizes();
  
  		initializeScaleSize();
  
  		restoreActualZoomPosition(zoomInfo);
  	}
focal_method.class_method_signature: ImageViewZoomExtender.restore(ZoomInfo zoomInfo)
focal_method.full_signature: @Override public void restore(ZoomInfo zoomInfo)
focal_method.identifier: restore
focal_method.invocations: isImageEmpty createZoomInfoIfNull resetZoomLevel resetImageMatrix saveCurrentSizes initializeScaleSize restoreActualZoomPosition
focal_method.modifiers: @Override public
focal_method.parameters: (ZoomInfo zoomInfo)
focal_method.return: void
focal_method.signature: void restore(ZoomInfo zoomInfo)