math.geom2d.domain
Interface Boundary2D
-
- All Superinterfaces:
- java.lang.Cloneable, Curve2D, GeometricObject2D, OrientedCurve2D, Shape2D
- All Known Subinterfaces:
- CircleLine2D, CirculinearBoundary2D, CirculinearContour2D, CirculinearRing2D, Conic2D, Contour2D, EllipseShape2D, SmoothContour2D
- All Known Implementing Classes:
- BoundaryPolyCirculinearCurve2D, BoundaryPolyCurve2D, Circle2D, CirculinearContourArray2D, ContourArray2D, Ellipse2D, GenericCirculinearRing2D, Hyperbola2D, HyperbolaBranch2D, LinearRing2D, Parabola2D, StraightLine2D
public interface Boundary2D extends OrientedCurve2D
A Boundary2D is the curve which defines the contour of a domain in the plane. It is compound of one or several non-intersecting and oriented curves. Curves composing the boundary implements the Contour2D interface.- See Also:
Contour2D
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.util.Collection<? extends Contour2D>continuousCurves()Overloads the declaration of continuousCurves to return a collection of contours (instances of Contour2D).Domain2Ddomain()Returns the domain delimited by this boundary.voidfill(java.awt.Graphics2D g2)Fills the interior of the boundary, using the Graphics current Paint.booleanisInside(Point2D pt)Returns true if the point is 'inside' the domain bounded by the curve.Boundary2Dreverse()Forces the subclasses to return an instance of Boundary2D.Boundary2Dtransform(AffineTransform2D trans)Forces the subclasses to return an instance of Boundary2D.-
Methods inherited from interface math.geom2d.domain.OrientedCurve2D
clip, signedDistance, signedDistance, windingAngle
-
Methods inherited from interface math.geom2d.curve.Curve2D
asAwtShape, clone, draw, firstPoint, getT0, getT1, intersections, isSingular, lastPoint, point, position, project, singularPoints, subCurve, 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
-
-
-
-
Method Detail
-
isInside
boolean isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve.- Specified by:
isInsidein interfaceOrientedCurve2D- Parameters:
pt- a point in the plane- Returns:
- true if the point is on the left side of the curve.
-
continuousCurves
java.util.Collection<? extends Contour2D> continuousCurves()
Overloads the declaration of continuousCurves to return a collection of contours (instances of Contour2D).- Specified by:
continuousCurvesin interfaceCurve2D- Returns:
- a collection of continuous curves.
-
domain
Domain2D domain()
Returns the domain delimited by this boundary.- Returns:
- the domain delimited by this boundary
-
reverse
Boundary2D reverse()
Forces the subclasses to return an instance of Boundary2D.- Specified by:
reversein interfaceCurve2D- Specified by:
reversein interfaceOrientedCurve2D
-
transform
Boundary2D transform(AffineTransform2D trans)
Forces the subclasses to return an instance of Boundary2D.
-
fill
void fill(java.awt.Graphics2D g2)
Fills the interior of the boundary, using the Graphics current Paint.- Parameters:
g2- the Graphics to fill on
-
-
DMelt 3.0 © DataMelt by jWork.ORG