// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_awt_Polygon__
#define __java_awt_Polygon__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
      class Polygon;
      namespace geom
      {
        class PathIterator;
        class AffineTransform;
        class Rectangle2D;
        class Point2D;
      }
      class Point;
      class Rectangle;
    }
  }
};

class ::java::awt::Polygon : public ::java::lang::Object
{
public:
  Polygon ();
  Polygon (jintArray, jintArray, jint);
  virtual void addPoint (jint, jint);
  virtual jboolean contains (jdouble, jdouble);
  virtual jboolean contains (jdouble, jdouble, jdouble, jdouble);
  virtual jboolean contains (jint, jint);
  virtual jboolean contains (::java::awt::Point *);
  virtual jboolean contains (::java::awt::geom::Point2D *);
  virtual jboolean contains (::java::awt::geom::Rectangle2D *);
  virtual ::java::awt::Rectangle *getBoundingBox ();
  virtual ::java::awt::Rectangle *getBounds ();
  virtual ::java::awt::geom::Rectangle2D *getBounds2D ();
  virtual ::java::awt::geom::PathIterator *getPathIterator (::java::awt::geom::AffineTransform *);
  virtual ::java::awt::geom::PathIterator *getPathIterator (::java::awt::geom::AffineTransform *, jdouble);
  virtual jboolean inside (jint, jint);
  virtual jboolean intersects (jdouble, jdouble, jdouble, jdouble);
  virtual jboolean intersects (::java::awt::geom::Rectangle2D *);
private:
  jboolean intersectOrContains (jdouble, jdouble, jdouble, jdouble, jboolean);
public:
  virtual void translate (jint, jint);
private:
  void computeBoundingBox ();
public:  // actually protected
  ::java::awt::Rectangle *bounds;
public:
  jint npoints;
  jintArray xpoints;
  jintArray ypoints;

  static ::java::lang::Class class$;
};

#endif /* __java_awt_Polygon__ */
