public final class Rect extends Object
AFE's coordinates are in y-positive. Values are: xmin, ymin, xmax, ymax where xmin <= xmax and ymin <= ymax.
These objects are immutable.
| Modifier and Type | Field and Description |
|---|---|
static Rect |
emptyRect
A rectangle with xmin = ymin = xmax = ymax = 0.
|
double |
xmax |
double |
xmin |
double |
ymax |
double |
ymin |
| Constructor and Description |
|---|
Rect(double[] vals)
Create a Rect from an array of doubles.
|
Rect(double xmin,
double ymin,
double xmax,
double ymax) |
| Modifier and Type | Method and Description |
|---|---|
Rect |
applyMatrix(Matrix m)
Convert this Rect through a matrix.
|
boolean |
equals(Object obj) |
int |
hashCode() |
Rect |
toDesignSpace(double unitsPerEmX,
double unitsPerEmY) |
Rect |
toEmSpace(double unitsPerEmX,
double unitsPerEmY) |
String |
toString() |
public final double xmin
public final double ymin
public final double xmax
public final double ymax
public static final Rect emptyRect
public Rect(double xmin,
double ymin,
double xmax,
double ymax)
public Rect(double[] vals)
vals - An array of length 4 whose entries are in the order xmin, ymin, xmax, ymax.public Rect applyMatrix(Matrix m)
m - the matrixpublic Rect toEmSpace(double unitsPerEmX, double unitsPerEmY)
public Rect toDesignSpace(double unitsPerEmX, double unitsPerEmY)
Copyright © 2010 - 2020 Adobe. All Rights Reserved