2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_JViewport__
5 #define __javax_swing_JViewport__
9 #include <javax/swing/JComponent.h>
10 #include <gcj/array.h>
30 namespace accessibility
32 class AccessibleContext
;
37 class JViewport$ViewListener
;
55 class javax::swing::JViewport
: public ::javax::swing::JComponent
60 virtual ::java::awt::Dimension
* getExtentSize();
61 virtual ::java::awt::Dimension
* toViewCoordinates(::java::awt::Dimension
*);
62 virtual ::java::awt::Point
* toViewCoordinates(::java::awt::Point
*);
63 virtual void setExtentSize(::java::awt::Dimension
*);
64 virtual ::java::awt::Dimension
* getViewSize();
65 virtual void setViewSize(::java::awt::Dimension
*);
66 virtual ::java::awt::Point
* getViewPosition();
67 virtual void setViewPosition(::java::awt::Point
*);
68 virtual ::java::awt::Rectangle
* getViewRect();
69 virtual jboolean
isBackingStoreEnabled();
70 virtual void setBackingStoreEnabled(jboolean
);
71 virtual void setScrollMode(jint
);
72 virtual jint
getScrollMode();
73 virtual ::java::awt::Component
* getView();
74 virtual void setView(::java::awt::Component
*);
75 virtual void reshape(jint
, jint
, jint
, jint
);
76 virtual ::java::awt::Insets
* getInsets();
77 virtual ::java::awt::Insets
* getInsets(::java::awt::Insets
*);
78 virtual jboolean
isOptimizedDrawingEnabled();
79 virtual void paint(::java::awt::Graphics
*);
80 virtual void addChangeListener(::javax::swing::event::ChangeListener
*);
81 virtual void removeChangeListener(::javax::swing::event::ChangeListener
*);
82 virtual JArray
< ::javax::swing::event::ChangeListener
* > * getChangeListeners();
83 virtual ::java::lang::String
* getUIClassID();
84 virtual void updateUI();
85 virtual ::javax::swing::plaf::ViewportUI
* getUI();
86 virtual void setUI(::javax::swing::plaf::ViewportUI
*);
87 virtual void setBorder(::javax::swing::border::Border
*);
88 virtual void scrollRectToVisible(::java::awt::Rectangle
*);
89 virtual ::javax::accessibility::AccessibleContext
* getAccessibleContext();
90 virtual void repaint(jlong
, jint
, jint
, jint
, jint
);
91 public: // actually protected
92 virtual void addImpl(::java::awt::Component
*, ::java::lang::Object
*, jint
);
93 virtual void fireStateChanged();
94 virtual ::javax::swing::JViewport$ViewListener
* createViewListener();
95 virtual ::java::awt::LayoutManager
* createLayoutManager();
96 virtual jboolean
computeBlit(jint
, jint
, ::java::awt::Point
*, ::java::awt::Point
*, ::java::awt::Dimension
*, ::java::awt::Rectangle
*);
97 public: // actually package-private
98 virtual void paintSimple(::java::awt::Graphics
*);
99 virtual void paintBackingStore(::java::awt::Graphics
*);
100 virtual void paintBlit(::java::awt::Graphics
*);
101 virtual void paintImmediately2(jint
, jint
, jint
, jint
);
102 virtual jboolean
isPaintRoot();
104 static const jint SIMPLE_SCROLL_MODE
= 0;
105 static const jint BLIT_SCROLL_MODE
= 1;
106 static const jint BACKINGSTORE_SCROLL_MODE
= 2;
108 static const jlong serialVersionUID
= -6925142919680527970LL;
109 static jint defaultScrollMode
;
110 public: // actually protected
111 jboolean
__attribute__((aligned(__alignof__( ::javax::swing::JComponent
)))) scrollUnderway
;
112 jboolean isViewSizeSet
;
113 jboolean backingStore
;
114 ::java::awt::Image
* backingStoreImage
;
115 ::java::awt::Point
* lastPaintPosition
;
116 public: // actually package-private
117 ::javax::swing::event::ChangeEvent
* changeEvent
;
119 ::javax::swing::JViewport$ViewListener
* viewListener
;
120 ::java::awt::Point
* cachedBlitFrom
;
121 ::java::awt::Point
* cachedBlitTo
;
122 ::java::awt::Dimension
* cachedBlitSize
;
123 ::java::awt::Rectangle
* cachedBlitPaint
;
125 jboolean sizeChanged
;
127 jboolean isPaintRoot__
;
129 static ::java::lang::Class
class$
;
132 #endif // __javax_swing_JViewport__