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

#ifndef __javax_swing_text_BoxView__
#define __javax_swing_text_BoxView__

#pragma interface

#include <javax/swing/text/CompositeView.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
      class Shape;
      class Rectangle;
      class Graphics;
    }
  }
  namespace javax
  {
    namespace swing
    {
      class SizeRequirements;
      namespace text
      {
        class BoxView;
        class Position$Bias;
        class View;
        class Element;
      }
    }
  }
}

class javax::swing::text::BoxView : public ::javax::swing::text::CompositeView
{
public:
  BoxView (::javax::swing::text::Element *, jint);
  virtual jint getAxis () { return myAxis; }
  virtual void setAxis (jint);
  virtual void layoutChanged (jint);
public:  // actually protected
  virtual jboolean isLayoutValid (jint);
  virtual void paintChild (::java::awt::Graphics *, ::java::awt::Rectangle *, jint);
public:
  virtual void replace (jint, jint, JArray< ::javax::swing::text::View *> *);
  virtual void paint (::java::awt::Graphics *, ::java::awt::Shape *);
  virtual jfloat getPreferredSpan (jint);
  virtual jfloat getMaximumSpan (jint);
public:  // actually protected
  virtual ::javax::swing::SizeRequirements *baselineRequirements (jint, ::javax::swing::SizeRequirements *);
  virtual void baselineLayout (jint, jint, jintArray, jintArray);
  virtual ::javax::swing::SizeRequirements *calculateMajorAxisRequirements (jint, ::javax::swing::SizeRequirements *);
  virtual ::javax::swing::SizeRequirements *calculateMinorAxisRequirements (jint, ::javax::swing::SizeRequirements *);
  virtual jboolean isBefore (jint, jint, ::java::awt::Rectangle *);
  virtual jboolean isAfter (jint, jint, ::java::awt::Rectangle *);
  virtual ::javax::swing::text::View *getViewAtPoint (jint, jint, ::java::awt::Rectangle *);
  virtual void childAllocation (jint, ::java::awt::Rectangle *);
  virtual void layout (jint, jint);
  virtual void layoutMajorAxis (jint, jint, jintArray, jintArray);
  virtual void layoutMinorAxis (jint, jint, jintArray, jintArray);
  virtual jboolean isAllocationValid ();
public:
  virtual jint getWidth () { return width; }
  virtual jint getHeight () { return height; }
  virtual void setSize (jfloat, jfloat);
public: // actually package-private
  virtual void validateLayout (jint);
  virtual JArray< ::javax::swing::SizeRequirements *> *getChildRequirements (jint);
public:  // actually protected
  virtual jint getSpan (jint, jint);
  virtual jint getOffset (jint, jint);
public:
  virtual jfloat getAlignment (jint);
  virtual void preferenceChanged (::javax::swing::text::View *, jboolean, jboolean);
  virtual ::java::awt::Shape *modelToView (jint, ::java::awt::Shape *, ::javax::swing::text::Position$Bias *);
public: // actually package-private
  jint __attribute__((aligned(__alignof__( ::javax::swing::text::CompositeView ))))  myAxis;
  jboolean xLayoutValid;
  jboolean yLayoutValid;
  jintArray spansX;
  jintArray spansY;
  jintArray offsetsX;
  jintArray offsetsY;
  jint width;
  jint height;
public:

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

#endif /* __javax_swing_text_BoxView__ */
