|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.geom2d.curve.CurveArray2D<T>
math.geom2d.curve.PolyCurve2D<T>
math.geom2d.domain.PolyOrientedCurve2D<T>
math.geom2d.domain.BoundaryPolyCurve2D<T>
public class BoundaryPolyCurve2D<T extends ContinuousOrientedCurve2D>
A single continuous oriented curve, which defines the boundary of a planar domain. The boundary curve is composed of several continuous and oriented curves linked together to form a continuous curve. The resulting boundary curve is either a closed curve, or an infinite curve at both ends.
| Field Summary |
|---|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY |
| Constructor Summary | |
|---|---|
BoundaryPolyCurve2D()
Creates an empty BoundaryPolyCurve2D. |
|
BoundaryPolyCurve2D(java.util.Collection<? extends T> curves)
Creates a BoundaryPolyCurve2D from the specified set of curves. |
|
BoundaryPolyCurve2D(int n)
Creates a BoundaryPolyCurve2D by reserving space for n curves. |
|
BoundaryPolyCurve2D(T... curves)
Creates a BoundaryPolyCurve2D from the specified set of curves. |
|
| Method Summary | ||
|---|---|---|
java.util.Collection<BoundaryPolyCurve2D<T>> |
continuousCurves()
Returns a collection of PolyCurve2D that contains only this instance. |
|
static
|
create(java.util.Collection<T> curves)
Static factory for creating a new BoundaryPolyCurve2D from a collection of curves. |
|
static
|
create(T... curves)
Static factory for creating a new BoundaryPolyCurve2D from an array of curves. |
|
Domain2D |
domain()
Returns the domain delimited by this boundary. |
|
void |
fill(java.awt.Graphics2D g2)
Fills the interior of the boundary, using the Graphics current Paint. |
|
boolean |
isClosed()
Overrides the isClosed() in the following way: return true if all curves are bounded. |
|
BoundaryPolyCurve2D<? extends ContinuousOrientedCurve2D> |
reverse()
Returns the reverse curve of this PolyCurve2D. |
|
BoundaryPolyCurve2D<ContinuousOrientedCurve2D> |
transform(AffineTransform2D trans)
Transforms each smooth piece in this PolyCurve2D and returns a new instance of PolyCurve2D. |
|
| Methods inherited from class math.geom2d.domain.PolyOrientedCurve2D |
|---|
clip, create, create, createClosed, equals, isInside, signedDistance, signedDistance, subCurve, windingAngle |
| Methods inherited from class math.geom2d.curve.PolyCurve2D |
|---|
appendPath, asPolyline, curvature, draw, getGeneralPath, leftTangent, rightTangent, setClosed, smoothPieces |
| Methods inherited from class math.geom2d.curve.CurveArray2D |
|---|
add, add, almostEquals, asAwtShape, boundingBox, childCurve, clear, clone, contains, contains, contains, curveIndex, curves, distance, distance, firstCurve, firstPoint, get, getT0, getT1, globalPosition, indexOf, intersections, isBounded, isEmpty, isSingular, iterator, lastCurve, lastPoint, localPosition, point, position, project, remove, remove, singularPoints, size, t0, t1, vertices |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface math.geom2d.domain.Boundary2D |
|---|
isInside |
| Methods inherited from interface math.geom2d.domain.ContinuousOrientedCurve2D |
|---|
clip, subCurve |
| Methods inherited from interface math.geom2d.curve.ContinuousCurve2D |
|---|
appendPath, asPolyline, curvature, leftTangent, rightTangent, smoothPieces |
| Methods inherited from interface math.geom2d.domain.OrientedCurve2D |
|---|
signedDistance, signedDistance, windingAngle |
| Methods inherited from interface math.geom2d.curve.Curve2D |
|---|
asAwtShape, clone, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, t0, t1, vertices |
| Methods inherited from interface math.geom2d.Shape2D |
|---|
boundingBox, contains, contains, distance, distance, isBounded, isEmpty |
| Methods inherited from interface math.geom2d.GeometricObject2D |
|---|
almostEquals |
| Constructor Detail |
|---|
public BoundaryPolyCurve2D()
public BoundaryPolyCurve2D(int n)
n - the number of curves to storepublic BoundaryPolyCurve2D(T... curves)
public BoundaryPolyCurve2D(java.util.Collection<? extends T> curves)
| Method Detail |
|---|
public static <T extends ContinuousOrientedCurve2D> BoundaryPolyCurve2D<T> create(java.util.Collection<T> curves)
public static <T extends ContinuousOrientedCurve2D> BoundaryPolyCurve2D<T> create(T... curves)
public boolean isClosed()
isClosed in interface ContinuousCurve2DisClosed in class PolyCurve2D<T extends ContinuousOrientedCurve2D>public java.util.Collection<BoundaryPolyCurve2D<T>> continuousCurves()
PolyCurve2D
continuousCurves in interface Curve2DcontinuousCurves in interface Boundary2DcontinuousCurves in class PolyCurve2D<T extends ContinuousOrientedCurve2D>public Domain2D domain()
Boundary2D
domain in interface Boundary2Dpublic void fill(java.awt.Graphics2D g2)
Boundary2D
fill in interface Boundary2Dg2 - the Graphics to fill onpublic BoundaryPolyCurve2D<? extends ContinuousOrientedCurve2D> reverse()
PolyCurve2D
reverse in interface ContinuousCurve2Dreverse in interface Curve2Dreverse in interface Boundary2Dreverse in interface ContinuousOrientedCurve2Dreverse in interface Contour2Dreverse in interface OrientedCurve2Dreverse in class PolyOrientedCurve2D<T extends ContinuousOrientedCurve2D>public BoundaryPolyCurve2D<ContinuousOrientedCurve2D> transform(AffineTransform2D trans)
PolyCurve2D
transform in interface ContinuousCurve2Dtransform in interface Curve2Dtransform in interface CurveSet2D<T extends ContinuousOrientedCurve2D>transform in interface Boundary2Dtransform in interface ContinuousOrientedCurve2Dtransform in interface Contour2Dtransform in interface OrientedCurve2Dtransform in interface Shape2Dtransform in class PolyOrientedCurve2D<T extends ContinuousOrientedCurve2D>trans - an affine transform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||