Package com.pdftools.geometry.units
Class Point
java.lang.Object
com.pdftools.geometry.units.Point
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetX()Gets the horizontal coordinate asLengthobject.getY()Gets the vertical coordinate asLengthobject.inthashCode()static PointCreate aPointobject from the string representation of a x-y-coordinate pair.toString()Creates a string representation as x-y-pair with associated suitable metric units, "m", "cm" or "mm".toString(Length.Units unit) Creates a string representation as x-y-pair with the specified unit.
-
Constructor Details
-
Method Details
-
parse
Create aPointobject from the string representation of a x-y-coordinate pair.- Parameters:
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".- Returns:
-
toString
Creates a string representation as x-y-pair with associated suitable metric units, "m", "cm" or "mm". -
toString
Creates a string representation as x-y-pair with the specified unit. -
getX
Gets the horizontal coordinate as
Lengthobject.The horizontal axis is oriented from left to right.
-
getY
Gets the vertical coordinate as
Lengthobject.The vertical axis is oriented from bottom to top.
-
equals
-
hashCode
public int hashCode()
-