Code example for PointF

Methods: offset

0
	private void updateViewRect() { 
		mController.setViewRect(mScheme.width, mScheme.height, new RectF(0, 0, getWidth(), getHeight()));
		if(mChangeCenterPoint!=null || mChangeScale!=null){
			float width = getWidth() / mChangeScale;
			float height = getHeight() / mChangeScale;
			mChangeCenterPoint.offset( -width/2, -height/2 );
			mController.setPositionAndScale(mChangeCenterPoint, mChangeScale);
			mChangeCenterPoint = null;
			mChangeScale = null;
		} 
	} 
 
	private void updateScrollBars(Matrix matrix) {
		matrix.getValues(values);
		float scale = values[Matrix.MSCALE_X];
		float x = -values[Matrix.MTRANS_X];
		float y = -values[Matrix.MTRANS_Y];
		float contentWidth = mScheme.width * scale;
		float contentHeight = mScheme.height * scale;