RectangularShape.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_GEOM_RECTANGULARSHAPE_H
00002 #define JAVA_AWT_GEOM_RECTANGULARSHAPE_H 1
00003 
00004 #ifndef JAVA_AWT_SHAPE_H
00005 #include <java_awt/Shape.h>
00006 #endif /* JAVA_AWT_SHAPE_H */
00007 #ifndef JAVA_AWT_GEOM_POINT2D_H
00008 #include <java_awt_geom/Point2D.h>
00009 #endif /* JAVA_AWT_GEOM_POINT2D_H */
00010 #ifndef JAVA_AWT_GEOM_DIMENSION2D_H
00011 #include <java_awt_geom/Dimension2D.h>
00012 #endif /* JAVA_AWT_GEOM_DIMENSION2D_H */
00013 #ifndef JAVA_AWT_SPEC
00014 #include <java_awt/Spec.h>
00015 #endif /* JAVA_AWT_SPEC */
00016 
00017 namespace java {
00018   namespace awt {
00019     namespace geom {
00020 
00034       class JAVA_AWT_SPEC RectangularShape : virtual public Shape {
00035 
00036       public:
00037 
00044         virtual jdouble getX() const = 0;
00045 
00052         virtual jdouble getY() const = 0;
00053 
00059         virtual jdouble getWidth() const = 0;
00060 
00066         virtual jdouble getHeight() const = 0;
00067 
00075         virtual jdouble getMinX() const;
00076 
00084         virtual jdouble getMinY() const;
00085 
00093         virtual jdouble getMaxX() const;
00094 
00102         virtual jdouble getMaxY() const;
00103 
00111         virtual jdouble getCenterX() const;
00112 
00120         virtual jdouble getCenterY() const;
00121 
00131         virtual Ref<Rectangle2D> getFrame() const;
00132 
00140         virtual jboolean isEmpty() const = 0;
00141 
00153         virtual void setFrame(jdouble x, jdouble y, jdouble w, jdouble h) = 0;
00154 
00165         virtual void setFrame(const Point2D& loc, const Dimension2D& size);
00166 
00175         virtual void setFrame(const Rectangle2D& r);
00176 
00185         virtual void setFrameFromDiagonal(jdouble x1, jdouble y1, jdouble x2, jdouble y2);
00186 
00194         virtual void setFrameFromDiagonal(const Point2D& p1, const Point2D& p2);
00195 
00204         virtual void setFrameFromCenter(jdouble centerX, jdouble centerY, jdouble cornerX, jdouble cornerY);
00205 
00214         virtual void setFrameFromCenter(const Point2D& center, const Point2D& corner);
00215 
00221         virtual Rectangle getBounds() const;
00222 
00230         virtual String toString() const;
00231 
00232       private:
00233 
00234         REGISTER_MEMBERS;
00235 
00236       };
00237 
00238     } // namespace geom
00239   } // namespace awt
00240 } // namespace java
00241 
00242 #endif /* JAVA_AWT_GEOM_RECTANGULARSHAPE_H */

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