JPlanner Programmer's Guide
MutableRectangle Members
Constructors Fields Methods
 


Represents a Rectangle that can be modified.

The following tables list the members exposed by the MutableRectangle type.

 Public Constructors

  Name Description

MutableRectangle

Overloaded.  

 Public Fields

  Name Description

Empty

Represents a rectangle with all properties set to zero. (Inherited from Rectangle.)

 Public Methods

  Name Description

clone

Rectangle.clone override.

contains

Overloaded. Checks a point or a rectangle is contained within this rectangle. (Inherited from Rectangle.)

equals

Checks whether this rectangle has the same values as the specified object. (Inherited from Rectangle.)

fromLTRB

Creates a new Rectangle with the specified edge locations. (Inherited from Rectangle.)

getBottom

Gets the y-coordinate of the bottom side of this rectangle. (Inherited from Rectangle.)

getHeight

Gets the height of the upper-left corner of this rectangle. (Inherited from Rectangle.)

getLeft

Gets the x-coordinate of the left side of this rectangle. (Inherited from Rectangle.)

getLocation

Gets the coordinates of the upper-left corner of this rectangle. (Inherited from Rectangle.)

getRight

Gets the x-coordinate of the right side of this rectangle. (Inherited from Rectangle.)

getSize

Gets the size of this rectangle. (Inherited from Rectangle.)

getTop

Gets the y-coordinate of the top side of this rectangle. (Inherited from Rectangle.)

getWidth

Gets the width of the upper-left corner of this rectangle. (Inherited from Rectangle.)

getX

Gets the x-coordinate of the upper-left corner of this rectangle. (Inherited from Rectangle.)

getY

Gets the y-coordinate of the upper-left corner of this rectangle. (Inherited from Rectangle.)

hashCode

Returns a hash code for the rectangle. (Inherited from Rectangle.)

inflate

Inflates the current rectangle with the specified amount horizontally and vertically and returns a new MutableRectangle object representing the result.

inflateBottom

Inflates the bottom side of the current rectangle with the specified amount and returns a new Rectangle object representing the result. (Inherited from Rectangle.)

inflateLeft

Inflates the left side of the current rectangle with the specified amount and returns a new Rectangle object representing the result. (Inherited from Rectangle.)

inflateRight

Inflates the right side of the current rectangle with the specified amount and returns a new Rectangle object representing the result. (Inherited from Rectangle.)

inflateTop

Inflates the top side of the current rectangle with the specified amount and returns a new Rectangle object representing the result. (Inherited from Rectangle.)

intersect

Overloaded. Intersects two rectangles. (Inherited from Rectangle.)

intersectsWith

Determines if this rectangle intersects with the specified rectangle. (Inherited from Rectangle.)

isEmpty

Gets a value indicating whether all properties of this rectangles have values of zero. (Inherited from Rectangle.)

normalize

Returns a normalized representation of the current rectangle, that is, a rectangle with non-negative dimensions. (Inherited from Rectangle.)

offset

Overloaded. Translates this rectangle by a specified amount. (Inherited from Rectangle.)

readExternal

Externalizable.readExternal implementation. (Inherited from Rectangle.)

set

Overloaded.  

setHeight

Sets the height of the upper-left corner of this rectangle.

setWidth

Sets the width of the upper-left corner of this rectangle.

setX

Sets the x-coordinate of the upper-left corner of this rectangle.

setY

Sets the y-coordinate of the upper-left corner of this rectangle.

toString

Converts this rectangle to a human-readable string. (Inherited from Rectangle.)

union

Overloaded. Unions two rectangles. (Inherited from Rectangle.)

withHeight

Creates a new rectangle with height set to the specified value and all other values equal to that of the current rectangle. (Inherited from Rectangle.)

withWidth

Creates a new rectangle with width set to the specified value and all other values equal to that of the current rectangle. (Inherited from Rectangle.)

withX

Creates a new rectangle with x-coordinate set to the specified value and all other values equal to that of the current rectangle. (Inherited from Rectangle.)

withY

Creates a new rectangle with y-coordinate set to the specified value and all other values equal to that of the current rectangle. (Inherited from Rectangle.)

writeExternal

Externalizable.writeExternal implementation. (Inherited from Rectangle.)

 See Also

MutableRectangle Class
com.mindfusion.common Namespace