| Constructor and Description |
|---|
Rect(T llx,
T lly,
T urx,
T ury)
Constructs a
Rect -object. |
Rect(T llx,
T lly,
T urx,
T ury,
T width,
T height)
Constructs a
Rect -object. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
create(T llx,
T lly,
T urx,
T ury) |
static <T extends Number> |
createUsingDimension(T llx,
T lly,
Dimension<T> dimension) |
static <T extends Number> |
createUsingDimension(T llx,
T lly,
T width,
T height) |
T |
getLowerLeftX()
Returns the lower left x-coordinate.
|
T |
getLowerLeftY()
Returns the lower left y-coordinate.
|
T |
getUpperRightX()
Returns the upper right x-coordinate.
|
T |
getUpperRightY()
Returns the upper right y-coordinate.
|
Rect<T> |
move(Point<T> offset) |
Rect<T> |
move(T offsetX,
T offsetY) |
getHeight, getWidth, toRectanglepublic Rect(T llx, T lly, T urx, T ury)
Rect -object.llx - lower left xlly - lower left yurx - upper right xury - upper right ypublic T getLowerLeftX()
public T getUpperRightX()
public T getUpperRightY()
public T getLowerLeftY()
public static <T extends Number> Rect<T> createUsingDimension(T llx, T lly, Dimension<T> dimension)
Copyright © 2017 Codeblock GmbH. All rights reserved.