source: trunk/gcc/libjava/javax/swing/RepaintManager.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 6.3 KB
Line 
1/* RepaintManager.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GNU Classpath.
5
6GNU Classpath is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Classpath is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Classpath; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1902111-1307 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception statement from your version. */
37
38package javax.swing;
39
40// Imports
41import java.awt.*;
42import java.util.*;
43
44/**
45 * RepaintManager
46 * @author Andrew Selkirk
47 * @version 1.0
48 */
49public class RepaintManager {
50
51 //-------------------------------------------------------------
52 // Variables --------------------------------------------------
53 //-------------------------------------------------------------
54
55 /**
56 * dirtyComponents
57 */
58 Hashtable dirtyComponents;
59
60 /**
61 * tmpDirtyComponents
62 */
63 Hashtable tmpDirtyComponents;
64
65 /**
66 * invalidComponents
67 */
68 Vector invalidComponents;
69
70 /**
71 * doubleBufferingEnabled
72 */
73 boolean doubleBufferingEnabled;
74
75 /**
76 * doubleBuffer
77 */
78 Image doubleBuffer;
79
80 /**
81 * doubleBufferSize
82 */
83 Dimension doubleBufferSize;
84
85 /**
86 * doubleBufferMaxSize
87 */
88 private Dimension doubleBufferMaxSize;
89
90 /**
91 * resetDoubleBuffer
92 */
93 private boolean resetDoubleBuffer;
94
95 /**
96 * repaintManagerKey
97 */
98 private static final Object repaintManagerKey = null; // TODO
99
100 /**
101 * tmp
102 */
103 Rectangle tmp;
104
105
106 //-------------------------------------------------------------
107 // Initialization ---------------------------------------------
108 //-------------------------------------------------------------
109
110 /**
111 * Constructor RepaintManager
112 */
113 public RepaintManager() {
114 // TODO
115 } // RepaintManager()
116
117
118 //-------------------------------------------------------------
119 // Methods ----------------------------------------------------
120 //-------------------------------------------------------------
121
122 /**
123 * toString
124 * @returns String
125 */
126 public synchronized String toString() {
127 return null; // TODO
128 } // toString()
129
130 /**
131 * currentManager
132 * @param component TODO
133 * @returns RepaintManager
134 */
135 public static RepaintManager currentManager(Component component) {
136 return null; // TODO
137 } // currentManager()
138
139 /**
140 * currentManager
141 * @param component TODO
142 * @returns RepaintManager
143 */
144 public static RepaintManager currentManager(JComponent component) {
145 return null; // TODO
146 } // currentManager()
147
148 /**
149 * setCurrentManager
150 * @param manager TODO
151 */
152 public static void setCurrentManager(RepaintManager manager) {
153 // TODO
154 } // setCurrentManager()
155
156 /**
157 * addInvalidComponent
158 * @param component TODO
159 */
160 public synchronized void addInvalidComponent(JComponent component) {
161 // TODO
162 } // addInvalidComponent()
163
164 /**
165 * removeInvalidComponent
166 * @param component TODO
167 */
168 public synchronized void removeInvalidComponent(JComponent component) {
169 // TODO
170 } // removeInvalidComponent()
171
172 /**
173 * addDirtyRegion
174 * @param component TODO
175 * @param x TODO
176 * @param y TODO
177 * @param w TODO
178 * @param h TODO
179 */
180 public synchronized void addDirtyRegion(JComponent component, int x,
181 int y, int w, int h) {
182 // TODO
183 } // addDirtyRegion()
184
185 /**
186 * getDirtyRegion
187 * @param component TODO
188 * @returns Rectangle
189 */
190 public Rectangle getDirtyRegion(JComponent component) {
191 return null; // TODO
192 } // getDirtyRegion()
193
194 /**
195 * markCompletelyDirty
196 * @param component TODO
197 */
198 public void markCompletelyDirty(JComponent component) {
199 // TODO
200 } // markCompletelyDirty()
201
202 /**
203 * markCompletelyClean
204 * @param component TODO
205 */
206 public void markCompletelyClean(JComponent component) {
207 // TODO
208 } // markCompletelyClean()
209
210 /**
211 * isCompletelyDirty
212 * @param component TODO
213 * @returns boolean
214 */
215 public boolean isCompletelyDirty(JComponent component) {
216 return false; // TODO
217 } // isCompletelyDirty()
218
219 /**
220 * validateInvalidComponents
221 */
222 public void validateInvalidComponents() {
223 // TODO
224 } // validateInvalidComponents()
225
226 /**
227 * paintDirtyRegions
228 */
229 public void paintDirtyRegions() {
230 // TODO
231 } // paintDirtyRegions()
232
233 /**
234 * getOffscreenBuffer
235 * @param component TODO
236 * @param proposedWidth TODO
237 * @param proposedHeight TODO
238 * @returns Image
239 */
240 public Image getOffscreenBuffer(Component component,
241 int proposedWidth, int proposedHeight) {
242 return null; // TODO
243 } // getOffscreenBuffer()
244
245 /**
246 * getDoubleBufferMaximumSize
247 * @returns Dimension
248 */
249 public Dimension getDoubleBufferMaximumSize() {
250 return null; // TODO
251 } // getDoubleBufferMaximumSize()
252
253 /**
254 * setDoubleBufferMaximumSize
255 * @param size TODO
256 */
257 public void setDoubleBufferMaximumSize(Dimension size) {
258 // TODO
259 } // setDoubleBufferMaximumSize()
260
261 /**
262 * setDoubleBufferingEnabled
263 * @param buffer TODO
264 */
265 public void setDoubleBufferingEnabled(boolean buffer) {
266 // TODO
267 } // setDoubleBufferingEnabled()
268
269 /**
270 * isDoubleBufferingEnabled
271 * @returns boolean
272 */
273 public boolean isDoubleBufferingEnabled() {
274 return false; // TODO
275 } // isDoubleBufferingEnabled()
276
277
278} // RepaintManager
Note: See TracBrowser for help on using the repository browser.