PR testsuite/44195
[official-gcc.git] / libjava / javax / swing / text / View.h
blobf9d97e5731fcaad242eae196d87c0d6d758ed03e
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_text_View__
5 #define __javax_swing_text_View__
7 #pragma interface
9 #include <java/lang/Object.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace awt
18 class Container;
19 class Graphics;
20 class Shape;
23 namespace javax
25 namespace swing
27 namespace event
29 class DocumentEvent;
30 class DocumentEvent$ElementChange;
32 namespace text
34 class AttributeSet;
35 class Document;
36 class Element;
37 class Position$Bias;
38 class View;
39 class ViewFactory;
45 class javax::swing::text::View : public ::java::lang::Object
48 public:
49 View(::javax::swing::text::Element *);
50 virtual void paint(::java::awt::Graphics *, ::java::awt::Shape *) = 0;
51 virtual void setParent(::javax::swing::text::View *);
52 virtual ::javax::swing::text::View * getParent();
53 virtual ::java::awt::Container * getContainer();
54 virtual ::javax::swing::text::Document * getDocument();
55 virtual ::javax::swing::text::Element * getElement();
56 virtual jfloat getPreferredSpan(jint) = 0;
57 virtual jint getResizeWeight(jint);
58 virtual jfloat getMaximumSpan(jint);
59 virtual jfloat getMinimumSpan(jint);
60 virtual void setSize(jfloat, jfloat);
61 virtual jfloat getAlignment(jint);
62 virtual ::javax::swing::text::AttributeSet * getAttributes();
63 virtual jboolean isVisible();
64 virtual jint getViewCount();
65 virtual ::javax::swing::text::View * getView(jint);
66 virtual ::javax::swing::text::ViewFactory * getViewFactory();
67 virtual void replace(jint, jint, JArray< ::javax::swing::text::View * > *);
68 virtual void insert(jint, ::javax::swing::text::View *);
69 virtual void append(::javax::swing::text::View *);
70 virtual void removeAll();
71 virtual void remove(jint);
72 virtual ::javax::swing::text::View * createFragment(jint, jint);
73 virtual jint getStartOffset();
74 virtual jint getEndOffset();
75 virtual ::java::awt::Shape * getChildAllocation(jint, ::java::awt::Shape *);
76 virtual jint getViewIndex(jfloat, jfloat, ::java::awt::Shape *);
77 virtual ::java::lang::String * getToolTipText(jfloat, jfloat, ::java::awt::Shape *);
78 virtual ::java::awt::Graphics * getGraphics();
79 virtual void preferenceChanged(::javax::swing::text::View *, jboolean, jboolean);
80 virtual jint getBreakWeight(jint, jfloat, jfloat);
81 virtual ::javax::swing::text::View * breakView(jint, jint, jfloat, jfloat);
82 virtual jint getViewIndex(jint, ::javax::swing::text::Position$Bias *);
83 virtual void insertUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
84 virtual void removeUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
85 virtual void changedUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
86 public: // actually protected
87 virtual jboolean updateChildren(::javax::swing::event::DocumentEvent$ElementChange *, ::javax::swing::event::DocumentEvent *, ::javax::swing::text::ViewFactory *);
88 virtual void forwardUpdate(::javax::swing::event::DocumentEvent$ElementChange *, ::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
89 virtual void forwardUpdateToView(::javax::swing::text::View *, ::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
90 virtual void updateLayout(::javax::swing::event::DocumentEvent$ElementChange *, ::javax::swing::event::DocumentEvent *, ::java::awt::Shape *);
91 public:
92 virtual ::java::awt::Shape * modelToView(jint, ::java::awt::Shape *, ::javax::swing::text::Position$Bias *) = 0;
93 virtual ::java::awt::Shape * modelToView(jint, ::javax::swing::text::Position$Bias *, jint, ::javax::swing::text::Position$Bias *, ::java::awt::Shape *);
94 virtual ::java::awt::Shape * modelToView(jint, ::java::awt::Shape *);
95 virtual jint viewToModel(jfloat, jfloat, ::java::awt::Shape *, JArray< ::javax::swing::text::Position$Bias * > *) = 0;
96 virtual jint viewToModel(jfloat, jfloat, ::java::awt::Shape *);
97 public: // actually protected
98 virtual void dump();
99 public: // actually package-private
100 virtual void dump(jint);
101 public:
102 virtual jint getNextVisualPositionFrom(jint, ::javax::swing::text::Position$Bias *, ::java::awt::Shape *, jint, JArray< ::javax::swing::text::Position$Bias * > *);
103 static const jint BadBreakWeight = 0;
104 static const jint ExcellentBreakWeight = 2000;
105 static const jint ForcedBreakWeight = 3000;
106 static const jint GoodBreakWeight = 1000;
107 static const jint X_AXIS = 0;
108 static const jint Y_AXIS = 1;
109 private:
110 ::javax::swing::text::Element * __attribute__((aligned(__alignof__( ::java::lang::Object)))) elt;
111 ::javax::swing::text::View * parent;
112 public:
113 static ::java::lang::Class class$;
116 #endif // __javax_swing_text_View__