java::awt::geom::Dimension2D Class Reference

Inheritance diagram for java::awt::geom::Dimension2D:

Inheritance graph
java::awt::Dimensionjava::lang::Objectjava::awt::Rectangle
[legend]
Collaboration diagram for java::awt::geom::Dimension2D:

Collaboration graph
java::lang::Object
[legend]

List of all members.


Detailed Description

The Dimension2D class is to encapsulate a width and a height dimension.

This class is only the abstract superclass for all objects that store a 2D dimension. The actual storage representation of the sizes is left to the subclass.

Version:
1.12, 01/23/03
Author:
Jim Graham

Public Member Functions

virtual jdouble getWidth () const =0
 Returns the width of this Dimension in double precision.
virtual jdouble getHeight () const =0
 Returns the height of this Dimension in double precision.
virtual void setSize (jdouble width, jdouble height)=0
 Sets the size of this Dimension object to the specified width and height.
virtual void setSize (const Dimension2D &d)
 Sets the size of this Dimension2D object to match the specified size.

Member Function Documentation

virtual jdouble java::awt::geom::Dimension2D::getWidth (  )  const [pure virtual]

Returns the width of this Dimension in double precision.

Returns:
the width of this Dimension.

Implemented in java::awt::Dimension, and java::awt::Rectangle.

virtual jdouble java::awt::geom::Dimension2D::getHeight (  )  const [pure virtual]

Returns the height of this Dimension in double precision.

Returns:
the height of this Dimension.

Implemented in java::awt::Dimension, and java::awt::Rectangle.

virtual void java::awt::geom::Dimension2D::setSize ( jdouble  width,
jdouble  height 
) [pure virtual]

Sets the size of this Dimension object to the specified width and height.

This method is included for completeness, to parallel the getSize method of java.awt.Component.

Parameters:
width the new width for the Dimension object
height the new height for the Dimension object

Implemented in java::awt::Dimension.

virtual void java::awt::geom::Dimension2D::setSize ( const Dimension2D d  )  [virtual]

Sets the size of this Dimension2D object to match the specified size.

This method is included for completeness, to parallel the getSize method of Component.

Parameters:
d the new size for the Dimension2D object

Reimplemented in java::awt::Dimension.


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