Lines Matching defs:Area

38  * An <code>Area</code> object stores and manipulates a
41 * <code>Area</code> objects can be transformed and can perform
42 * various Constructive Area Geometry (CAG) operations when combined
43 * with other <code>Area</code> objects.
50 * The <code>Area</code> class implements the <code>Shape</code>
52 * and path iteration facilities, but an <code>Area</code> is more
56 * <code>Area</code> objects constructed from unclosed paths
68 * <code>Area</code> resembles the path from which it was
74 * the <code>Area</code> include:
76 * <li>Creating an <code>Area</code> from an unclosed (open)
78 * <code>Area</code> object.
79 * <li>Creating an <code>Area</code> from a <code>Shape</code>
81 * empty <code>Area</code>. A common example of this issue
82 * is that producing an <code>Area</code> from a line will
84 * <code>Area</code> will iterate no geometry in its
89 * <li>An <code>Area</code> may take more path segments to
92 * <code>Area</code> class must perform on the path may
99 public class Area implements Shape, Cloneable {
108 public Area() {
113 * The <code>Area</code> class creates an area geometry from the
122 public Area(Shape s) {
123 if (s instanceof Area) {
124 curves = ((Area) s).curves;
199 * Adds the shape of the specified <code>Area</code> to the
200 * shape of this <code>Area</code>.
201 * The resulting shape of this <code>Area</code> will include
203 * in either this or the specified <code>Area</code>.
206 * Area a1 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 0,8]);
207 * Area a2 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 8,8]);
221 * @param rhs the <code>Area</code> to be added to the
226 public void add(Area rhs) {
232 * Subtracts the shape of the specified <code>Area</code> from the
233 * shape of this <code>Area</code>.
234 * The resulting shape of this <code>Area</code> will include
235 * areas that were contained only in this <code>Area</code>
236 * and not in the specified <code>Area</code>.
239 * Area a1 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 0,8]);
240 * Area a2 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 8,8]);
254 * @param rhs the <code>Area</code> to be subtracted from the
259 public void subtract(Area rhs) {
265 * Sets the shape of this <code>Area</code> to the intersection of
266 * its current shape and the shape of the specified <code>Area</code>.
267 * The resulting shape of this <code>Area</code> will include
268 * only areas that were contained in both this <code>Area</code>
269 * and also in the specified <code>Area</code>.
272 * Area a1 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 0,8]);
273 * Area a2 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 8,8]);
287 * @param rhs the <code>Area</code> to be intersected with this
288 * <code>Area</code>
292 public void intersect(Area rhs) {
298 * Sets the shape of this <code>Area</code> to be the combined area
299 * of its current shape and the shape of the specified <code>Area</code>,
301 * The resulting shape of this <code>Area</code> will include
302 * only areas that were contained in either this <code>Area</code>
303 * or in the specified <code>Area</code>, but not in both.
306 * Area a1 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 0,8]);
307 * Area a2 = new Area([triangle 0,0 =&gt; 8,0 =&gt; 8,8]);
321 * @param rhs the <code>Area</code> to be exclusive ORed with this
322 * <code>Area</code>.
326 public void exclusiveOr(Area rhs) {
332 * Removes all of the geometry from this <code>Area</code> and
342 * Tests whether this <code>Area</code> object encloses any area.
343 * @return <code>true</code> if this <code>Area</code> object
352 * Tests whether this <code>Area</code> consists entirely of
355 * <code>Area</code> consists entirely of line segments;
370 * Tests whether this <code>Area</code> is rectangular in shape.
372 * <code>Area</code> is rectangular in shape; <code>false</code>
400 * Tests whether this <code>Area</code> is comprised of a single
406 * @return <code>true</code> if the <code>Area</code> is comprised
446 * completely encloses this <code>Area</code>.
448 * The Area class will attempt to return the tightest bounding
454 * <code>Area</code>.
463 * this <code>Area</code>.
465 * The Area class will attempt to return the tightest bounding
474 * <code>Area</code>.
482 * Returns an exact copy of this <code>Area</code> object.
487 return new Area(this);
491 * Tests whether the geometries of the two <code>Area</code> objects
494 * @param other the <code>Area</code> to be compared to this
495 * <code>Area</code>
500 public boolean equals(Area other) {
515 * Transforms the geometry of this <code>Area</code> using the specified
533 * Creates a new <code>Area</code> object that contains the same
534 * geometry as this <code>Area</code> transformed by the specified
535 * <code>AffineTransform</code>. This <code>Area</code> object
538 * the new <code>Area</code>
540 * @return a new <code>Area</code> object representing the transformed
544 public Area createTransformedArea(AffineTransform t) {
545 Area a = new Area(this);
623 * <code>Area</code> object. This <code>Area</code> object is unchanged.
628 * geometry of the outline of this <code>Area</code>, one
638 * this <code>Area</code> object. Only uncurved path segments
640 * types are returned by the iterator. This <code>Area</code>
650 * geometry of the outline of this <code>Area</code>, one segment