Back to project page codemap.
The source code is released under:
GNU General Public License
If you think the Android project codemap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.hdweiss.codemap.util; /*from w w w .j a v a 2s. c o m*/ import com.hdweiss.codemap.view.workspace.WorkspaceView; import android.graphics.PointF; /** * Wrapper for points that are clicked on canvas. */ public class CodeMapCursorPoint extends PointF { public CodeMapCursorPoint() { super(); } public CodeMapCursorPoint(float x, float y) { super(x, y); } public CodeMapPoint getCodeMapPoint(WorkspaceView codeMapView) { CodeMapPoint transformedPoint = new CodeMapPoint(); transformedPoint.x = (x + codeMapView.getScrollX()) / codeMapView.getScaleFactor(); transformedPoint.y = (y + codeMapView.getScrollY()) / codeMapView.getScaleFactor(); return transformedPoint; } }