Point Type

A variable of type Point is used to represent a point in two-dimensional space. A Point primitive type encapsulates two integer values: the x (horizontal) and y (vertical) coordinates.

You can use the Point primitive type to represent a position on the display or within a form or control. (When used to represent a position in a form or control, the integer values represent the units of the scaleMode property of the form or control.) Additionally, you can use the Point primitive type to represent any other two-dimensional data; for example, points on a graph.

For details about the methods defined in the Point primitive type, see "Point Methods", in the following subsection.

For details about converting primitive types, see "Converting Primitive Types", in Chapter 1 of the JADE Developer’s Reference.