Dimension.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_DIMENSION_H
00002 #define JAVA_AWT_DIMENSION_H 1
00003 
00004 #ifndef JAVA_AWT_GEOM_DIMENSION2D_H
00005 #include <java_awt_geom/Dimension2D.h>
00006 #endif /* JAVA_AWT_GEOM_DIMENSION2D_H */
00007 #ifndef JAVA_AWT_SPEC
00008 #include <java_awt/Spec.h>
00009 #endif /* JAVA_AWT_SPEC */
00010 
00011 namespace java {
00012   namespace awt {
00013 
00038     class JAVA_AWT_SPEC Dimension : virtual public geom::Dimension2D {
00039 
00040     public:
00041 
00049       jint width;
00050 
00058       jint height;
00059 
00070       Dimension(jint w = 0, jint h = 0);
00071 
00076       virtual jdouble getWidth() const;
00077 
00082       virtual jdouble getHeight() const;
00083 
00095       virtual Dimension getSize() const;
00096 
00107       virtual void setSize(jdouble width, jdouble height);
00108 
00117       virtual void setSize(const geom::Dimension2D& d);
00118 
00128       virtual void setSize(const Dimension& d);
00129 
00142       virtual void setSize(jint width, jint height);
00143 
00147       virtual jboolean equals(const Object& obj) const;
00148 
00154       virtual jint hashCode() const;
00155 
00167       String toString() const;
00168 
00169     private:
00170 
00171       REGISTER_MEMBERS;
00172 
00173     };
00174 
00175   } // namespace awt
00176 } // namespace java
00177 
00178 #endif /* JAVA_AWT_DIMENSION_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3