WorkspacePoint

public class WorkspacePoint extends PointF

A point in workspace coordinates.

This class primarily serves as a typesafe means of enforcing the use of the correct type of coordinate in a given context, i.e., it prevents accidental use of workspace coordinates instead of view coordinates, and vice versa.

Inherited Constant Summary

Field Summary

public static final Creator<WorkspacePoint> CREATOR

Inherited Field Summary

Public Constructor Summary

WorkspacePoint()
Delegate default constructor.
WorkspacePoint(Point point)
Create from generic Point.
WorkspacePoint(PointF pointf)
Create from generic PointF.
WorkspacePoint(int x, int y)
Create from x, y int coordinates.
WorkspacePoint(float x, float y)
Create from x, y float coordinates.

Public Method Summary

void
setFrom(WorkspacePoint other)
Set this point from an existing one.

Inherited Method Summary

Fields

public static final Creator<WorkspacePoint> CREATOR

Public Constructors

public WorkspacePoint ()

Delegate default constructor.

public WorkspacePoint (Point point)

Create from generic Point.

Parameters
point

public WorkspacePoint (PointF pointf)

Create from generic PointF.

Parameters
pointf

public WorkspacePoint (int x, int y)

Create from x, y int coordinates.

Parameters
x
y

public WorkspacePoint (float x, float y)

Create from x, y float coordinates.

Parameters
x
y

Public Methods

public void setFrom (WorkspacePoint other)

Set this point from an existing one.

Parameters
other