Package snap.geom
Class ShapeBox
java.lang.Object
snap.geom.Shape
snap.geom.ShapeBox
A Shape implementation to present another shape in a given rect.
-
Field Summary
Fields inherited from class snap.geom.Shape
_bounds, WIND_EVEN_ODD, WIND_NON_ZERO
-
Constructor Summary
-
Method Summary
Methods inherited from class snap.geom.Shape
addShapes, contains, contains, contains, containsSeg, copyFor, copyFor, copyForBounds, crossesSeg, getArcLength, getBounds, getBoundsImpl, getCrossings, getDistance, getFlattenedShape, getFlattenedShape, getHeight, getNotSelfIntersectingShape, getSvgString, getWidth, getX, getY, intersectShapes, intersectsSeg, intersectsShape, intersectsShape, intersectsXY, isClosed, isFlat, isMultiCycle, isSelfIntersecting, isSingleCycle, shapeChanged, subtractShapes, toString
-
Constructor Details
-
ShapeBox
Creates a ShapeBox for given shape and rect.
-
-
Method Details
-
getShape
Returns the ecapsulated shape. -
contains
public boolean contains(double aX, double aY) Returns whether shape contains x/y. -
getPathIter
Returns a path iterator.- Specified by:
getPathIter
in classShape
-