ViewPoint

public class ViewPoint extends Point

A point in view 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 view coordinates instead of workspace coordinates, and vice versa.

Inherited Constant Summary

Field Summary

public static final Creator<ViewPoint> CREATOR

Inherited Field Summary

Public Constructor Summary

ViewPoint()
Delegate default constructor.
ViewPoint(Point point)
Create from generic Point.
ViewPoint(int x, int y)
Create from x, y coordinates.

Public Method Summary

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

Inherited Method Summary

Fields

public static final Creator<ViewPoint> CREATOR

Public Constructors

public ViewPoint ()

Delegate default constructor.

public ViewPoint (Point point)

Create from generic Point.

Parameters
point

public ViewPoint (int x, int y)

Create from x, y coordinates.

Parameters
x
y

Public Methods

public void setFrom (ViewPoint other)

Set this point from an existing one.

Parameters
other