static class BasicStroke.CAGShapePair extends GeneralShapePair
Modifier and Type | Field and Description |
---|---|
private Shape |
cagshape |
INCLUDES_I_NOT_O, INCLUDES_NEITHER, INCLUDES_O_AND_I, INCLUDES_O_NOT_I, TYPE_INTERSECT, TYPE_SUBTRACT
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP, RECT_INTERSECTS
Constructor and Description |
---|
CAGShapePair(Shape outer,
Shape inner,
int type) |
Modifier and Type | Method and Description |
---|---|
PathIterator |
getPathIterator(BaseTransform tx)
Returns an iterator object that iterates along the
Shape boundary and provides access to the geometry of the
Shape outline. |
contains, contains, copy, getBounds, getCombinationType, getInnerShape, getOuterShape, getPathIterator, intersects
accumulate, accumulateCubic, accumulateCubic, accumulateQuad, contains, contains, intersects, pointCrossingsForCubic, pointCrossingsForLine, pointCrossingsForPath, pointCrossingsForQuad, rectCrossingsForCubic, rectCrossingsForLine, rectCrossingsForPath, rectCrossingsForQuad
private Shape cagshape
public PathIterator getPathIterator(BaseTransform tx)
Shape
Shape
boundary and provides access to the geometry of the
Shape
outline. If an optional BaseTransform
is specified, the coordinates returned in the iteration are
transformed accordingly.
Each call to this method returns a fresh PathIterator
object that traverses the geometry of the Shape
object
independently from any other PathIterator
objects in use
at the same time.
It is recommended, but not guaranteed, that objects
implementing the Shape
interface isolate iterations
that are in process from any changes that might occur to the original
object's geometry during such iterations.
getPathIterator
in class GeneralShapePair
tx
- an optional BaseTransform
to be applied to the
coordinates as they are returned in the iteration, or
null
if untransformed coordinates are desiredPathIterator
object, which independently
traverses the geometry of the Shape
.