Shape.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_SHAPE_H
00002 #define JAVA_AWT_SHAPE_H 1
00003 
00004 #ifndef JAVA_AWT_GEOM_AFFINETRANSFORM_H
00005 #include <java_awt_geom/AffineTransform.h>
00006 #endif /* JAVA_AWT_GEOM_AFFINETRANSFORM_H */
00007 #ifndef JAVA_AWT_GEOM_PATHITERATOR_H
00008 #include <java_awt_geom/PathIterator.h>
00009 #endif /* JAVA_AWT_GEOM_PATHITERATOR_H */
00010 #ifndef JAVA_AWT_GEOM_POINT2D_H
00011 #include <java_awt_geom/Point2D.h>
00012 #endif /* JAVA_AWT_GEOM_POINT2D_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 
00021       class Rectangle2D;
00022 
00023     } // namespace geom
00024 
00025     class Rectangle;
00026 
00072     class JAVA_AWT_SPEC Shape : virtual public Interface {
00073 
00074     public:
00075 
00092       virtual Rectangle getBounds() const = 0;
00093 
00110       virtual Ref<geom::Rectangle2D> getBounds2D() const = 0;
00111 
00121       virtual jboolean contains(jdouble x, jdouble y) const = 0;
00122 
00132       virtual jboolean contains(const geom::Point2D& p) const;
00133 
00165       virtual jboolean intersects(jdouble x, jdouble y, jdouble w, jdouble h) const = 0;
00166 
00190       virtual jboolean intersects(const geom::Rectangle2D& r) const;
00191 
00227       virtual jboolean contains(jdouble x, jdouble y, jdouble w, jdouble h) const = 0;
00228 
00257       virtual jboolean contains(const geom::Rectangle2D& r) const;
00258 
00303       virtual Ref<geom::PathIterator> getPathIterator(const geom::AffineTransform& at, jdouble flatness = -1.0) const = 0;
00304 
00305     private:
00306 
00307       REGISTER_MEMBERS;
00308 
00309     };
00310 
00311   } // namespace awt
00312 } // namespace java
00313 
00314 #endif /* JAVA_AWT_SHAPE_H */

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