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.
-
height
- The height of the bounding rectangle.
-
width
- The width of the bounding rectangle.
-
x
- The x-coordinate of the bounding rectangle.
-
y
- The y-coordinate of the bounding rectangle.
-
RectangleUC()
- Construct a rectangle with unset field values.
-
RectangleUC(double, double, double, double)
- Construct a rectangle with the given field values.
-
RectangleUC(RectangleUC)
- Construct a rectangle from another one.
-
assign(RectangleUC)
- Set the fields of this object equal to those of another one.
-
equals(RectangleUC)
- Return whether the fields of this object are equal to those of
another one.
-
equalsXDim(RectangleUC)
- Return whether the x and width fields of this object are equal to
those of another object.
-
equalsYDim(RectangleUC)
- Return whether the y and height fields of this object are equal to
those of another object.
-
isSet()
- Return whether the fields are set.
-
normalize()
- Make width and height non-negative.
-
paramString()
- Return the string representation of the fields.
-
toString()
- Return the string representation of the object.
-
union(RectangleUC)
- Expand this rectangle to include the region defined by another one.
-
unionResized(RectangleUC)
- Expand this rectangle to include the region defined by another one.
-
unset()
- Set the fields to their unset value.
x
public double x
- The x-coordinate of the bounding rectangle.
y
public double y
- The y-coordinate of the bounding rectangle.
width
public double width
- The width of the bounding rectangle.
height
public double height
- The height of the bounding rectangle.
RectangleUC
public RectangleUC()
- Construct a rectangle with unset field values.
RectangleUC
public RectangleUC(RectangleUC gb)
- Construct a rectangle from another one.
RectangleUC
public RectangleUC(double x,
double y,
double width,
double height)
- Construct a rectangle with the given field values.
assign
public final RectangleUC assign(RectangleUC gb)
- Set the fields of this object equal to those of another one.
- Returns:
- this
unset
public final RectangleUC unset()
- Set the fields to their unset value.
- Returns:
- this
isSet
public final boolean isSet()
- Return whether the fields are set.
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.
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.
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.
normalize
public final RectangleUC normalize()
- Make width and height non-negative.
- Returns:
- this
paramString
protected String paramString()
- Return the string representation of the fields.
toString
public String toString()
- Return the string representation of the object.
- Overrides:
- toString in class Object
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
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