public class Rect
extends java.lang.Object
Constructor and Description |
---|
Rect() |
Rect(float x0,
float y0,
float x1,
float y1) |
Rect(Quad q) |
Rect(Rect r) |
Rect(RectI r) |
Modifier and Type | Method and Description |
---|---|
void |
adjustForStroke(StrokeState state,
Matrix ctm) |
boolean |
contains(float x,
float y) |
boolean |
contains(Point p) |
boolean |
contains(Rect r) |
void |
inset(float dx,
float dy) |
void |
inset(float left,
float top,
float right,
float bottom) |
boolean |
isEmpty() |
boolean |
isInfinite() |
boolean |
isValid() |
void |
offset(float dx,
float dy) |
void |
offsetTo(float left,
float top) |
java.lang.String |
toString() |
Rect |
transform(Matrix tm) |
void |
union(Rect r) |
public Rect()
public Rect(float x0, float y0, float x1, float y1)
public Rect(Quad q)
public Rect(Rect r)
public Rect(RectI r)
public void adjustForStroke(StrokeState state, Matrix ctm)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isInfinite()
public boolean contains(float x, float y)
public boolean contains(Point p)
public boolean contains(Rect r)
public boolean isEmpty()
public boolean isValid()
public void union(Rect r)
public void inset(float dx, float dy)
public void inset(float left, float top, float right, float bottom)
public void offset(float dx, float dy)
public void offsetTo(float left, float top)