public class StrictGeomUtility extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MAX_AUTO |
Modifier and Type | Method and Description |
---|---|
static Dimension2D |
createAWTDimension(long width,
long height)
Creates an AWT-Dimension2D object from the given strict sizes.
|
static Rectangle2D |
createAWTRectangle(long x,
long y,
long width,
long height)
Creates an AWT rectangle object from the given strict sizes.
|
static Rectangle2D |
createAWTRectangle(StrictBounds bounds) |
static StrictBounds |
createBounds(double x,
double y,
double width,
double height)
Creates a StrictBounds object from the given AWT sizes.
|
static StrictDimension |
createDimension(double w,
double h)
Creates a StrictDimension from the given AWT sizes.
|
static StrictPoint |
createPoint(double x,
double y)
Creates a StrictPoint from the given AWT coordinates.
|
static long |
fromFontMetricsValue(long value) |
static long |
multiply(long x,
long y) |
static double |
toExternalValue(long value)
Converts the given micro point value into an AWT value.
|
static double |
toFontMetricsValue(long value) |
static long |
toInternalValue(double value)
Converts the given AWT value into a strict value.
|
public static StrictDimension createDimension(double w, double h)
w
- the width in points (1/72th inch).h
- the height in points (1/72th inch).public static StrictPoint createPoint(double x, double y)
x
- the x coordinate in points (1/72th inch).y
- the y coordinate in points (1/72th inch).public static StrictBounds createBounds(double x, double y, double width, double height)
x
- the x coordinate in points (1/72th inch).y
- the y coordinate in points (1/72th inch).width
- the width in points (1/72th inch).height
- the height in points (1/72th inch).public static Dimension2D createAWTDimension(long width, long height)
width
- the width in micro points.height
- the height in micro points.public static Rectangle2D createAWTRectangle(long x, long y, long width, long height)
x
- the x coordinate in micro points.y
- the y coordinate in micro points.width
- the width in micro points.height
- the height in micro points.public static Rectangle2D createAWTRectangle(StrictBounds bounds)
public static long toInternalValue(double value)
value
- the AWT point value.public static double toExternalValue(long value)
value
- the micro point point value.public static double toFontMetricsValue(long value)
public static long fromFontMetricsValue(long value)
public static long multiply(long x, long y)