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