Point.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_POINT_H
00002 #define JAVA_AWT_POINT_H 1
00003 
00004 #ifndef JAVA_AWT_GEOM_POINT2D_H
00005 #include <java_awt_geom/Point2D.h>
00006 #endif /* JAVA_AWT_GEOM_POINT2D_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 
00022     class JAVA_AWT_SPEC Point : public geom::Point2D {
00023 
00024     public:
00025 
00034       jint x;
00035           
00044       jint y;
00045 
00052       Point(jint x = 0, jint y = 0);
00053 
00058       virtual jdouble getX() const;
00059 
00064       virtual jdouble getY() const;
00065 
00076       virtual Point getLocation() const;
00077 
00087       virtual void setLocation(const Point& p);
00088 
00102       virtual void setLocation(jint x, jint y);
00103 
00110       virtual void setLocation(jdouble x, jdouble y);
00111 
00119       virtual void setLocation(const geom::Point2D& p);
00120 
00129       virtual void move(jint x, jint y);
00130 
00142       virtual void translate(jint dx, jint dy);
00143 
00148       virtual jint hashCode() const;
00149 
00160       virtual jboolean equals(const Object& obj) const;
00161 
00171       virtual String toString() const;
00172 
00173     private:
00174 
00175       REGISTER_MEMBERS;
00176 
00177     };
00178 
00179   } // namespace awt
00180 } // namespace java
00181 
00182 #endif /* JAVA_AWT_POINT_H */

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