public class LayoutRect extends Object
Constructor and Description |
---|
LayoutRect() |
LayoutRect(float x,
float y,
float width,
float height) |
LayoutRect(LayoutPoint location,
LayoutSize size) |
LayoutRect(LayoutRect layoutRect) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(float px,
float py) |
boolean |
contains(LayoutPoint point) |
void |
contract(float dw,
float dh) |
void |
contract(LayoutSize size) |
void |
copyFrom(LayoutRect rect) |
boolean |
equals(LayoutRect a,
LayoutRect b) |
void |
expand(float dw,
float dh) |
void |
expand(LayoutSize size) |
float |
height() |
void |
inflate(float d) |
void |
inflateX(float dx) |
void |
inflateY(float dy) |
boolean |
isEmpty() |
LayoutPoint |
location() |
float |
maxX() |
LayoutPoint |
maxXMaxYCorner() |
LayoutPoint |
maxXMinYCorner() |
float |
maxY() |
LayoutPoint |
minXMaxYCorner() |
LayoutPoint |
minXMinYCorner() |
void |
move(float dx,
float dy) |
void |
move(LayoutSize size) |
void |
moveBy(LayoutPoint offset) |
void |
setHeight(float height) |
void |
setLocation(LayoutPoint location) |
void |
setSize(LayoutSize size) |
void |
setWidth(float width) |
void |
setX(float x) |
void |
setY(float y) |
void |
shiftMaxXEdgeTo(float edge) |
void |
shiftMaxYEdgeTo(float edge) |
void |
shiftX(float delta) |
void |
shiftXEdgeTo(float edge) |
void |
shiftY(float delta) |
void |
shiftYEdgeTo(float edge) |
LayoutSize |
size() |
String |
toString() |
LayoutRect |
transposedRect() |
float |
width() |
float |
x() |
float |
y() |
public LayoutRect()
public LayoutRect(float x, float y, float width, float height)
public LayoutRect(LayoutPoint location, LayoutSize size)
public LayoutRect(LayoutRect layoutRect)
public LayoutPoint location()
public LayoutSize size()
public void setLocation(LayoutPoint location)
public void setSize(LayoutSize size)
public float x()
public float y()
public float maxX()
public float maxY()
public float width()
public float height()
public void setX(float x)
public void setY(float y)
public void setWidth(float width)
public void setHeight(float height)
public boolean isEmpty()
public void move(LayoutSize size)
public void moveBy(LayoutPoint offset)
public void move(float dx, float dy)
public void expand(LayoutSize size)
public void expand(float dw, float dh)
public void contract(LayoutSize size)
public void contract(float dw, float dh)
public void shiftXEdgeTo(float edge)
public void shiftMaxXEdgeTo(float edge)
public void shiftX(float delta)
public void shiftY(float delta)
public void shiftYEdgeTo(float edge)
public void shiftMaxYEdgeTo(float edge)
public LayoutPoint minXMinYCorner()
public LayoutPoint maxXMinYCorner()
public LayoutPoint minXMaxYCorner()
public LayoutPoint maxXMaxYCorner()
public boolean contains(float px, float py)
public boolean contains(LayoutPoint point)
public void inflateX(float dx)
public void inflateY(float dy)
public void inflate(float d)
public LayoutRect transposedRect()
public boolean equals(LayoutRect a, LayoutRect b)
public void copyFrom(LayoutRect rect)
Revision 4.0.15 / 20220727-0149