public class Point
extends java.lang.Object
| Constructor | Description |
|---|---|
Point(Length x,
Length y) |
Construct
Point object from x and y. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
Length |
getX() |
Gets the horizontal coordinate as
Length object. |
Length |
getY() |
Gets the vertical coordinate as
Length object. |
int |
hashCode() |
|
static Point |
parse(java.lang.String value) |
Create a
Point object from the string representation of a x-y-coordinate pair. |
java.lang.String |
toString() |
Creates a string representation as x-y-pair with associated suitable metric units, "m", "cm" or "mm".
|
java.lang.String |
toString(Length.Units unit) |
Creates a string representation as x-y-pair with the specified unit.
|
public static Point parse(java.lang.String value)
Point object from the string representation of a x-y-coordinate pair.value - Allowed values are value-unit pairs of the form "<x_value><x_unit> <y_value><y_unit>". Allowed associated units are "um", "mm", "cm", "m", "km", "pt" and "in". Example: "12.3cm 23.9mm".public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(Length.Units unit)
public Length getX()
Gets the horizontal coordinate as Length object.
The horizontal axis is oriented from left to right.
public Length getY()
Gets the vertical coordinate as Length object.
The vertical axis is oriented from bottom to top.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object