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.

Author:
dlegland
See Also:
Contour2D

Field Summary
 
Fields inherited from interface math.geom2d.Shape2D
ACCURACY
 
Method Summary
 java.util.Collection<? extends Contour2D> continuousCurves()
          Overloads the declaration of continuousCurves to return a collection of contours (instances of Contour2D).
 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 isInside(Point2D pt)
          Returns true if the point is 'inside' the domain bounded by the curve.
 Boundary2D reverse()
          Forces the subclasses to return an instance of Boundary2D.
 Boundary2D transform(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:
isInside in interface OrientedCurve2D
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:
continuousCurves in interface Curve2D
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:
reverse in interface Curve2D
Specified by:
reverse in interface OrientedCurve2D

transform

Boundary2D transform(AffineTransform2D trans)
Forces the subclasses to return an instance of Boundary2D.

Specified by:
transform in interface Curve2D
Specified by:
transform in interface OrientedCurve2D
Specified by:
transform in interface Shape2D
Parameters:
trans - an affine transform
Returns:
the transformed shape

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