public abstract class ShapePair extends Shape
| Modifier and Type | Field and Description |
|---|---|
static int |
INCLUDES_I_NOT_O |
static int |
INCLUDES_NEITHER |
static int |
INCLUDES_O_AND_I |
static int |
INCLUDES_O_NOT_I |
static int |
TYPE_INTERSECT
Constant used to indicate that the Inner shape should be
intersected with the Outer shape.
|
static int |
TYPE_SUBTRACT
Constant used to indicate that the Inner shape should be
subtracted from the Outer shape.
|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP, RECT_INTERSECTS| Constructor and Description |
|---|
ShapePair() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getCombinationType()
Returns the method with which to combine the two shapes.
|
abstract Shape |
getInnerShape()
Returns the inner
Shape. |
abstract Shape |
getOuterShape()
Returns the outer
Shape. |
accumulate, accumulateCubic, accumulateCubic, accumulateQuad, contains, contains, contains, contains, copy, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, outcode, pointCrossingsForCubic, pointCrossingsForLine, pointCrossingsForPath, pointCrossingsForQuad, rectCrossingsForCubic, rectCrossingsForLine, rectCrossingsForPath, rectCrossingsForQuadpublic static final int INCLUDES_O_NOT_I
public static final int INCLUDES_I_NOT_O
public static final int INCLUDES_O_AND_I
public static final int INCLUDES_NEITHER
public static final int TYPE_SUBTRACT
public static final int TYPE_INTERSECT
public abstract int getCombinationType()
TYPE_SUBTRACT and TYPE_INTERSECT
are supported.public abstract Shape getOuterShape()
Shape.Shape.