java::awt::geom::Rectangle2D::Double Class Reference

Inheritance diagram for java::awt::geom::Rectangle2D::Double:

Inheritance graph
java::awt::geom::Rectangle2Djava::awt::geom::RectangularShapejava::awt::Shapejava::lang::Interfacejava::lang::Object
[legend]
Collaboration diagram for java::awt::geom::Rectangle2D::Double:

Collaboration graph
java::awt::geom::Rectangle2Djava::awt::geom::RectangularShapejava::awt::Shapejava::lang::Interfacejava::lang::Object
[legend]

List of all members.

Public Member Functions

 Double (jdouble x=0, jdouble y=0, jdouble w=0, jdouble h=0)
virtual jdouble getX () const
 Returns the X coordinate of this Rectangle2D in double precision.
virtual jdouble getY () const
 Returns the Y coordinate of this Rectangle2D in double precision.
virtual jdouble getWidth () const
 Returns the width of this Rectangle2D in double precision.
virtual jdouble getHeight () const
 Returns the height of this Rectangle2D in double precision.
virtual jboolean isEmpty () const
 Determines whether or not this Rectangle2D is empty.
virtual void setRect (jdouble x, jdouble y, jdouble w, jdouble h)
 Sets the location and size of this Rectangle2D to the specified double values.
virtual void setRect (const Rectangle2D &r)
 Sets this Rectangle2D to be the same as the specified Rectangle2D.
virtual jint outcode (jdouble x, jdouble y) const
 Determines where the specified double coordinates lie with respect to this Rectangle2D.
virtual jint outcode (const Point2D &p) const
 Determines where the specified Point2D lies with respect to this Rectangle2D.
virtual Ref
< Rectangle2D
getBounds2D () const
 Returns the high precision bounding box of this Rectangle2D.
virtual Ref
< Rectangle2D
createIntersection (const Rectangle2D &r) const
 Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D.
virtual Ref
< Rectangle2D
createUnion (const Rectangle2D &r) const
 Returns a new Rectangle2D object representing the union of this Rectangle2D with the specified Rectangle2D.

Public Attributes

jdouble x
 The x coordinate of this Rectangle2D.
jdouble y
 The y coordinate of this Rectangle2D.
jdouble width
 The width of this Rectangle2D.
jdouble height
 The height of this Rectangle2D.


Constructor & Destructor Documentation

java::awt::geom::Rectangle2D::Double::Double ( jdouble  x = 0,
jdouble  y = 0,
jdouble  w = 0,
jdouble  h = 0 
)


Member Function Documentation

virtual jdouble java::awt::geom::Rectangle2D::Double::getX (  )  const [virtual]

Returns the X coordinate of this Rectangle2D in double precision.

Returns:
the X coordinate of this Rectangle2D.
Since:
1.2

Implements java::awt::geom::RectangularShape.

virtual jdouble java::awt::geom::Rectangle2D::Double::getY (  )  const [virtual]

Returns the Y coordinate of this Rectangle2D in double precision.

Returns:
the Y coordinate of this Rectangle2D.
Since:
1.2

Implements java::awt::geom::RectangularShape.

virtual jdouble java::awt::geom::Rectangle2D::Double::getWidth (  )  const [virtual]

Returns the width of this Rectangle2D in double precision.

Returns:
the width of this Rectangle2D.
Since:
1.2

Implements java::awt::geom::RectangularShape.

virtual jdouble java::awt::geom::Rectangle2D::Double::getHeight (  )  const [virtual]

Returns the height of this Rectangle2D in double precision.

Returns:
the height of this Rectangle2D.
Since:
1.2

Implements java::awt::geom::RectangularShape.

virtual jboolean java::awt::geom::Rectangle2D::Double::isEmpty (  )  const [virtual]

Determines whether or not this Rectangle2D is empty.

Returns:
true if this Rectangle2D is empty; false otherwise.
Since:
1.2

Implements java::awt::geom::RectangularShape.

virtual void java::awt::geom::Rectangle2D::Double::setRect ( jdouble  x,
jdouble  y,
jdouble  w,
jdouble  h 
) [virtual]

Sets the location and size of this Rectangle2D to the specified double values.

Parameters:
x,&nbsp;y the coordinates to which to set the upper left corner of this Rectangle2D
w the value to use to set the width of this Rectangle2D
h the value to use to set the height of this Rectangle2D
Since:
1.2

Implements java::awt::geom::Rectangle2D.

virtual void java::awt::geom::Rectangle2D::Double::setRect ( const Rectangle2D r  )  [virtual]

Sets this Rectangle2D to be the same as the specified Rectangle2D.

Parameters:
r the specified Rectangle2D
Since:
1.2

Reimplemented from java::awt::geom::Rectangle2D.

virtual jint java::awt::geom::Rectangle2D::Double::outcode ( jdouble  x,
jdouble  y 
) const [virtual]

Determines where the specified double coordinates lie with respect to this Rectangle2D.

This method computes a binary OR of the appropriate mask values indicating, for each side of this Rectangle2D, whether or not the specified coordinates are on the same side of the edge as the rest of this Rectangle2D.

Parameters:
x,&nbsp;y the specified coordinates
Returns:
the logical OR of all appropriate out codes.
See also:
Rectangle2D::OUT_LEFT

Rectangle2D::OUT_TOP

Rectangle2D::OUT_RIGHT

Rectangle2D::OUT_BOTTOM

Since:
1.2

Implements java::awt::geom::Rectangle2D.

virtual jint java::awt::geom::Rectangle2D::Double::outcode ( const Point2D p  )  const [virtual]

Determines where the specified Point2D lies with respect to this Rectangle2D.

This method computes a binary OR of the appropriate mask values indicating, for each side of this Rectangle2D, whether or not the specified Point2D is on the same side of the edge as the rest of this Rectangle2D.

Parameters:
p the specified Point2D
Returns:
the logical OR of all appropriate out codes.
See also:
OUT_LEFT

OUT_TOP

OUT_RIGHT

OUT_BOTTOM

Since:
1.2

Reimplemented from java::awt::geom::Rectangle2D.

virtual Ref<Rectangle2D> java::awt::geom::Rectangle2D::Double::getBounds2D (  )  const [virtual]

Returns the high precision bounding box of this Rectangle2D.

Returns:
the bounding box of this Rectangle2D.
Since:
1.2

Reimplemented from java::awt::geom::Rectangle2D.

virtual Ref<Rectangle2D> java::awt::geom::Rectangle2D::Double::createIntersection ( const Rectangle2D r  )  const [virtual]

Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D.

Parameters:
r the Rectangle2D to be intersected with this Rectangle2D
Returns:
the largest Rectangle2D contained in both the specified Rectangle2D and in this Rectangle2D.
Since:
1.2

Implements java::awt::geom::Rectangle2D.

virtual Ref<Rectangle2D> java::awt::geom::Rectangle2D::Double::createUnion ( const Rectangle2D r  )  const [virtual]

Returns a new Rectangle2D object representing the union of this Rectangle2D with the specified Rectangle2D.

Parameters:
r the Rectangle2D to be combined with this Rectangle2D
Returns:
the smallest Rectangle2D containing both the specified Rectangle2D and this Rectangle2D.
Since:
1.2

Implements java::awt::geom::Rectangle2D.


Member Data Documentation

jdouble java::awt::geom::Rectangle2D::Double::x

The x coordinate of this Rectangle2D.

Since:
1.2

jdouble java::awt::geom::Rectangle2D::Double::y

The y coordinate of this Rectangle2D.

Since:
1.2

jdouble java::awt::geom::Rectangle2D::Double::width

The width of this Rectangle2D.

Since:
1.2

jdouble java::awt::geom::Rectangle2D::Double::height

The height of this Rectangle2D.

Since:
1.2


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:22 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3