Package com.adobe.fontengine.font
Class Rect
- java.lang.Object
-
- com.adobe.fontengine.font.Rect
-
public final class Rect extends java.lang.Object
A bounding box.AFE's coordinates are in y-positive. Values are: xmin, ymin, xmax, ymax where xmin <= xmax and ymin <= ymax.
Synchronization
These objects are immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rect
applyMatrix(Matrix m)
Convert this Rect through a matrix.boolean
equals(java.lang.Object obj)
int
hashCode()
Rect
toDesignSpace(double unitsPerEmX, double unitsPerEmY)
Rect
toEmSpace(double unitsPerEmX, double unitsPerEmY)
java.lang.String
toString()
-
-
-
Field Detail
-
xmin
public final double xmin
-
ymin
public final double ymin
-
xmax
public final double xmax
-
ymax
public final double ymax
-
emptyRect
public static final Rect emptyRect
A rectangle with xmin = ymin = xmax = ymax = 0.
-
-
Method Detail
-
applyMatrix
public Rect applyMatrix(Matrix m)
Convert this Rect through a matrix.- Parameters:
m
- the matrix- Returns:
- the transformed bounding box
-
toEmSpace
public Rect toEmSpace(double unitsPerEmX, double unitsPerEmY)
-
toDesignSpace
public Rect toDesignSpace(double unitsPerEmX, double unitsPerEmY)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-