All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class GraphicPlotter.RectangleUC

java.lang.Object
   |
   +----GraphicPlotter.RectangleUC

public class RectangleUC
extends Object
A two dimensional user (Cartesian) coordinates bounds.


Variable Index

 o height
The height of the bounding rectangle.
 o width
The width of the bounding rectangle.
 o x
The x-coordinate of the bounding rectangle.
 o y
The y-coordinate of the bounding rectangle.

Constructor Index

 o RectangleUC()
Construct a rectangle with unset field values.
 o RectangleUC(double, double, double, double)
Construct a rectangle with the given field values.
 o RectangleUC(RectangleUC)
Construct a rectangle from another one.

Method Index

 o assign(RectangleUC)
Set the fields of this object equal to those of another one.
 o equals(RectangleUC)
Return whether the fields of this object are equal to those of another one.
 o equalsXDim(RectangleUC)
Return whether the x and width fields of this object are equal to those of another object.
 o equalsYDim(RectangleUC)
Return whether the y and height fields of this object are equal to those of another object.
 o isSet()
Return whether the fields are set.
 o normalize()
Make width and height non-negative.
 o paramString()
Return the string representation of the fields.
 o toString()
Return the string representation of the object.
 o union(RectangleUC)
Expand this rectangle to include the region defined by another one.
 o unionResized(RectangleUC)
Expand this rectangle to include the region defined by another one.
 o unset()
Set the fields to their unset value.

Variables

 o x
 public double x
The x-coordinate of the bounding rectangle.

 o y
 public double y
The y-coordinate of the bounding rectangle.

 o width
 public double width
The width of the bounding rectangle.

 o height
 public double height
The height of the bounding rectangle.

Constructors

 o RectangleUC
 public RectangleUC()
Construct a rectangle with unset field values.

 o RectangleUC
 public RectangleUC(RectangleUC gb)
Construct a rectangle from another one.

 o RectangleUC
 public RectangleUC(double x,
                    double y,
                    double width,
                    double height)
Construct a rectangle with the given field values.

Methods

 o assign
 public final RectangleUC assign(RectangleUC gb)
Set the fields of this object equal to those of another one.

Returns:
this
 o unset
 public final RectangleUC unset()
Set the fields to their unset value.

Returns:
this
 o isSet
 public final boolean isSet()
Return whether the fields are set.

 o equals
 public final boolean equals(RectangleUC gb)
Return whether the fields of this object are equal to those of another one. Unset objects are considred to be equal.

 o equalsXDim
 public final boolean equalsXDim(RectangleUC gb)
Return whether the x and width fields of this object are equal to those of another object. Unset fields are considered to be equal.

 o equalsYDim
 public final boolean equalsYDim(RectangleUC gb)
Return whether the y and height fields of this object are equal to those of another object. Unset fields are considered to be equal.

 o normalize
 public final RectangleUC normalize()
Make width and height non-negative.

Returns:
this
 o paramString
 protected String paramString()
Return the string representation of the fields.

 o toString
 public String toString()
Return the string representation of the object.

Overrides:
toString in class Object
 o union
 public final RectangleUC union(RectangleUC gb)
Expand this rectangle to include the region defined by another one. Both rectangles must be normalized.

Returns:
this
 o unionResized
 public final boolean unionResized(RectangleUC gb)
Expand this rectangle to include the region defined by another one. Both rectangles must be normalized.

Returns:
Whether rectangle was resized by the operation.

All Packages  Class Hierarchy  This Package  Previous  Next  Index