| Package | Description |
|---|---|
| com.io7m.jregions.core.unparameterized.areas |
Area types.
|
| com.io7m.jregions.generators |
Quickcheck generators.
|
| Modifier and Type | Method and Description |
|---|---|
static AreaI |
AreasI.alignCenter(AreaI outer,
AreaI inner)
Align the area
inner such that the center of the area is equal to
the center of outer. |
static AreaI |
AreasI.alignHorizontallyCenter(AreaI outer,
AreaI inner)
Align the area
inner horizontally in the center of outer. |
static AreaI |
AreasI.alignHorizontallyMaxX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignHorizontallyMaxXOffset(AreaI,
AreaI, int) with a zero offset. |
static AreaI |
AreasI.alignHorizontallyMaxXOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner horizontally against the inside maximum-x edge
of outer. |
static AreaI |
AreasI.alignHorizontallyMinX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignHorizontallyMinXOffset(AreaI, AreaI,
int) with a zero offset. |
static AreaI |
AreasI.alignHorizontallyMinXOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner horizontally against the inside minimum-x edge
of outer. |
static AreaI |
AreasI.alignMaxYMaxX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMaxYMaxXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMaxYMaxXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaI |
AreasI.alignMaxYMinX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMaxYMinXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMaxYMinXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaI |
AreasI.alignMinYMaxX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMinYMaxXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMinYMaxXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaI |
AreasI.alignMinYMinX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMinYMinXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMinYMinXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaI |
AreasI.alignVerticallyCenter(AreaI outer,
AreaI inner)
Align the area
inner vertically in the center of outer. |
static AreaI |
AreasI.alignVerticallyMaxY(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignVerticallyMaxYOffset(AreaI, AreaI,
int) with a zero offset. |
static AreaI |
AreasI.alignVerticallyMaxYOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner vertically against the inside maximum-y edge
of outer. |
static AreaI |
AreasI.alignVerticallyMinY(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignVerticallyMinYOffset(AreaI, AreaI,
int) with a zero offset. |
static AreaI |
AreasI.alignVerticallyMinYOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner vertically against the inside minimum-y edge
of outer. |
AreaI |
AreaI.Builder.build()
Builds a new
AreaI. |
static AreaI |
AreasI.containing(AreaI a,
AreaI b)
Construct a area that will contain both
a and b. |
static AreaI |
AreasI.create(int x,
int y,
int width,
int height)
Create an area of width
width and height height, placing
the minimum corner at (x, y). |
static AreaI |
AreasI.fitBetweenHorizontal(AreaI fit,
AreaI a,
AreaI b)
Attempt to fit
fit between a and b, horizontally. |
static AreaI |
AreasI.fitBetweenVertical(AreaI fit,
AreaI a,
AreaI b)
Attempt to fit
fit between a and b, vertically. |
static AreaI |
AreasI.hollowOut(AreaI outer,
int min_x_offset,
int max_x_offset,
int min_y_offset,
int max_y_offset)
Construct a new area that fits inside
outer based on the given
offsets from each edge. |
static AreaI |
AreasI.hollowOutEvenly(AreaI outer,
int offset)
Equivalent to calling
AreasI.hollowOut(AreaI, int, int,
int, int) with offset for all offset parameters. |
static AreaI |
AreasI.moveAbsolute(AreaI area,
int x,
int y)
Move the given area to
(x, y). |
static AreaI |
AreasI.moveRelative(AreaI area,
int x,
int y)
Move the given area by
(x, y). |
static AreaI |
AreasI.moveToOrigin(AreaI area)
Move the given area to
(0, 0). |
static AreaI |
AreaI.of(int minimumX,
int maximumX,
int minimumY,
int maximumY)
Construct a new immutable
AreaI instance. |
static AreaI |
AreasI.scaleFromCenter(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMaxYMaxX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMaxYMinX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMinYMaxX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMinYMinX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.setSizeFromCenter(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMaxYMaxX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMaxYMinX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMinYMaxX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMinYMinX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
| Modifier and Type | Method and Description |
|---|---|
static AreaXSplitI<AreaI> |
AreasI.splitAlongParallelToX(AreaI area,
int y)
Split
area along a line parallel to the X axis placed at
y units from its own minimum-y edge. |
static AreaYSplitI<AreaI> |
AreasI.splitAlongParallelToY(AreaI area,
int x)
Split
area along a line parallel to the Y axis placed at
x units from its own minimum-x edge. |
| Modifier and Type | Method and Description |
|---|---|
static AreaI |
AreasI.alignCenter(AreaI outer,
AreaI inner)
Align the area
inner such that the center of the area is equal to
the center of outer. |
static AreaI |
AreasI.alignHorizontallyCenter(AreaI outer,
AreaI inner)
Align the area
inner horizontally in the center of outer. |
static AreaI |
AreasI.alignHorizontallyMaxX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignHorizontallyMaxXOffset(AreaI,
AreaI, int) with a zero offset. |
static AreaI |
AreasI.alignHorizontallyMaxXOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner horizontally against the inside maximum-x edge
of outer. |
static AreaI |
AreasI.alignHorizontallyMinX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignHorizontallyMinXOffset(AreaI, AreaI,
int) with a zero offset. |
static AreaI |
AreasI.alignHorizontallyMinXOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner horizontally against the inside minimum-x edge
of outer. |
static AreaI |
AreasI.alignMaxYMaxX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMaxYMaxXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMaxYMaxXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaI |
AreasI.alignMaxYMinX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMaxYMinXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMaxYMinXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the maximum-y edge is at least
offset_y from the inside maximum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaI |
AreasI.alignMinYMaxX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMinYMaxXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMinYMaxXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
maximum-x edge is at least offset_x from the inside maximum-x edge
of outer. |
static AreaI |
AreasI.alignMinYMinX(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignMinYMinXOffset(AreaI, AreaI,
int, int) with zero offsets. |
static AreaI |
AreasI.alignMinYMinXOffset(AreaI outer,
AreaI inner,
int offset_x,
int offset_y)
Align the area
inner such that the minimum-y edge is at least
offset_y from the inside minimum-y edge of outer and the
minimum-x edge is at least offset_x from the inside minimum-x edge
of outer. |
static AreaI |
AreasI.alignVerticallyCenter(AreaI outer,
AreaI inner)
Align the area
inner vertically in the center of outer. |
static AreaI |
AreasI.alignVerticallyMaxY(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignVerticallyMaxYOffset(AreaI, AreaI,
int) with a zero offset. |
static AreaI |
AreasI.alignVerticallyMaxYOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner vertically against the inside maximum-y edge
of outer. |
static AreaI |
AreasI.alignVerticallyMinY(AreaI outer,
AreaI inner)
Equivalent to calling
AreasI.alignVerticallyMinYOffset(AreaI, AreaI,
int) with a zero offset. |
static AreaI |
AreasI.alignVerticallyMinYOffset(AreaI outer,
AreaI inner,
int offset)
Align the area
inner vertically against the inside minimum-y edge
of outer. |
static AreaI |
AreasI.containing(AreaI a,
AreaI b)
Construct a area that will contain both
a and b. |
static boolean |
AreasI.contains(AreaI a,
AreaI b)
Determine whether or not one area contains another.
|
static boolean |
AreasI.containsPoint(AreaI a,
int x,
int y)
Determine whether or not a area contains a given point.
|
static boolean |
AreasI.couldFitInside(AreaI a,
AreaI b)
Determine whether or not one area could fit inside another.
|
static AreaI |
AreasI.fitBetweenHorizontal(AreaI fit,
AreaI a,
AreaI b)
Attempt to fit
fit between a and b, horizontally. |
static AreaI |
AreasI.fitBetweenVertical(AreaI fit,
AreaI a,
AreaI b)
Attempt to fit
fit between a and b, vertically. |
static AreaI |
AreasI.hollowOut(AreaI outer,
int min_x_offset,
int max_x_offset,
int min_y_offset,
int max_y_offset)
Construct a new area that fits inside
outer based on the given
offsets from each edge. |
static AreaI |
AreasI.hollowOutEvenly(AreaI outer,
int offset)
Equivalent to calling
AreasI.hollowOut(AreaI, int, int,
int, int) with offset for all offset parameters. |
static AreaI |
AreasI.moveAbsolute(AreaI area,
int x,
int y)
Move the given area to
(x, y). |
static AreaI |
AreasI.moveRelative(AreaI area,
int x,
int y)
Move the given area by
(x, y). |
static AreaI |
AreasI.moveToOrigin(AreaI area)
Move the given area to
(0, 0). |
static boolean |
AreasI.overlaps(AreaI a,
AreaI b)
Determine whether or not two areas overlap.
|
static AreaI |
AreasI.scaleFromCenter(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMaxYMaxX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMaxYMinX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMinYMaxX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.scaleFromMinYMinX(AreaI area,
int x_diff,
int y_diff)
Scale
area by adding x_diff to the width, and y_diff to the height. |
static AreaI |
AreasI.setSizeFromCenter(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMaxYMaxX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMaxYMinX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMinYMaxX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static AreaI |
AreasI.setSizeFromMinYMinX(AreaI area,
int width,
int height)
Set the width and height of
area to width and height, respectively. |
static String |
AreasI.show(AreaI area) |
static String |
AreasI.showToBuilder(AreaI area,
StringBuilder sb) |
static AreaXSplitI<AreaI> |
AreasI.splitAlongParallelToX(AreaI area,
int y)
Split
area along a line parallel to the X axis placed at
y units from its own minimum-y edge. |
static AreaYSplitI<AreaI> |
AreasI.splitAlongParallelToY(AreaI area,
int x)
Split
area along a line parallel to the Y axis placed at
x units from its own minimum-x edge. |
| Modifier and Type | Method and Description |
|---|---|
AreaI |
AreaIGenerator.next() |
Copyright © 2017 <code@io7m.com> http://io7m.com