summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/text/View.h
blob: f9d97e5731fcaad242eae196d87c0d6d758ed03e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_text_View__
#define __javax_swing_text_View__

#pragma interface

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

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Container;
        class Graphics;
        class Shape;
    }
  }
  namespace javax
  {
    namespace swing
    {
      namespace event
      {
          class DocumentEvent;
          class DocumentEvent$ElementChange;
      }
      namespace text
      {
          class AttributeSet;
          class Document;
          class Element;
          class Position$Bias;
          class View;
          class ViewFactory;
      }
    }
  }
}

class javax::swing::text::View : public ::java::lang::Object
{

public:
  View(::javax::swing::text::Element *);
  virtual void paint(::java::awt::Graphics *, ::java::awt::Shape *) = 0;
  virtual void setParent(::javax::swing::text::View *);
  virtual ::javax::swing::text::View * getParent();
  virtual ::java::awt::Container * getContainer();
  virtual ::javax::swing::text::Document * getDocument();
  virtual ::javax::swing::text::Element * getElement();
  virtual jfloat getPreferredSpan(jint) = 0;
  virtual jint getResizeWeight(jint);
  virtual jfloat getMaximumSpan(jint);
  virtual jfloat getMinimumSpan(jint);
  virtual void setSize(jfloat, jfloat);
  virtual jfloat getAlignment(jint);
  virtual ::javax::swing::text::AttributeSet * getAttributes();
  virtual jboolean isVisible();
  virtual jint getViewCount();
  virtual ::javax::swing::text::View * getView(jint);
  virtual ::javax::swing::text::ViewFactory * getViewFactory();
  virtual void replace(jint, jint, JArray< ::javax::swing::text::View * > *);
  virtual void insert(jint, ::javax::swing::text::View *);
  virtual void append(::javax::swing::text::View *);
  virtual void removeAll();
  virtual void remove(jint);
  virtual ::javax::swing::text::View * createFragment(jint, jint);
  virtual jint getStartOffset();
  virtual jint getEndOffset();
  virtual ::java::awt::Shape * getChildAllocation(jint, ::java::awt::Shape *);
  virtual jint getViewIndex(jfloat, jfloat, ::java::awt::Shape *);
  virtual ::java::lang::String * getToolTipText(jfloat, jfloat, ::java::awt::Shape *);
  virtual ::java::awt::Graphics * getGraphics();
  virtual void preferenceChanged(::javax::swing::text::View *, jboolean, jboolean);
  virtual jint getBreakWeight(jint, jfloat, jfloat);
  virtual ::javax::swing::text::View * breakView(jint, jint, jfloat, jfloat);
  virtual jint getViewIndex(jint, ::javax::swing::text::Position$Bias *);
  virtual void insertUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  virtual void removeUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  virtual void changedUpdate(::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
public: // actually protected
  virtual jboolean updateChildren(::javax::swing::event::DocumentEvent$ElementChange *, ::javax::swing::event::DocumentEvent *, ::javax::swing::text::ViewFactory *);
  virtual void forwardUpdate(::javax::swing::event::DocumentEvent$ElementChange *, ::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  virtual void forwardUpdateToView(::javax::swing::text::View *, ::javax::swing::event::DocumentEvent *, ::java::awt::Shape *, ::javax::swing::text::ViewFactory *);
  virtual void updateLayout(::javax::swing::event::DocumentEvent$ElementChange *, ::javax::swing::event::DocumentEvent *, ::java::awt::Shape *);
public:
  virtual ::java::awt::Shape * modelToView(jint, ::java::awt::Shape *, ::javax::swing::text::Position$Bias *) = 0;
  virtual ::java::awt::Shape * modelToView(jint, ::javax::swing::text::Position$Bias *, jint, ::javax::swing::text::Position$Bias *, ::java::awt::Shape *);
  virtual ::java::awt::Shape * modelToView(jint, ::java::awt::Shape *);
  virtual jint viewToModel(jfloat, jfloat, ::java::awt::Shape *, JArray< ::javax::swing::text::Position$Bias * > *) = 0;
  virtual jint viewToModel(jfloat, jfloat, ::java::awt::Shape *);
public: // actually protected
  virtual void dump();
public: // actually package-private
  virtual void dump(jint);
public:
  virtual jint getNextVisualPositionFrom(jint, ::javax::swing::text::Position$Bias *, ::java::awt::Shape *, jint, JArray< ::javax::swing::text::Position$Bias * > *);
  static const jint BadBreakWeight = 0;
  static const jint ExcellentBreakWeight = 2000;
  static const jint ForcedBreakWeight = 3000;
  static const jint GoodBreakWeight = 1000;
  static const jint X_AXIS = 0;
  static const jint Y_AXIS = 1;
private:
  ::javax::swing::text::Element * __attribute__((aligned(__alignof__( ::java::lang::Object)))) elt;
  ::javax::swing::text::View * parent;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_text_View__