/[debian]/libspin-java/branches/upstream/current/docs/api/spin/over/CheckingRepaintManager.html
ViewVC logotype

Contents of /libspin-java/branches/upstream/current/docs/api/spin/over/CheckingRepaintManager.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 376 - (show annotations)
Fri Sep 29 21:09:27 2006 UTC (14 years, 8 months ago) by gregoa
File MIME type: text/html
File size: 15688 byte(s)
[svn-inject] Installing original source of libspin-java
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_01) on Tue Oct 18 20:10:26 CEST 2005 -->
6 <TITLE>
7 CheckingRepaintManager
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="spin.over.CheckingRepaintManager class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="CheckingRepaintManager";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42 </TR>
43 </TABLE>
44 </TD>
45 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46 </EM>
47 </TD>
48 </TR>
49
50 <TR>
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52 &nbsp;PREV CLASS&nbsp;
53 &nbsp;<A HREF="../../spin/over/SpinOverEvaluator.html" title="class in spin.over"><B>NEXT CLASS</B></A></FONT></TD>
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 <A HREF="../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56 &nbsp;<A HREF="CheckingRepaintManager.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57 &nbsp;<SCRIPT type="text/javascript">
58 <!--
59 if(window==top) {
60 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
61 }
62 //-->
63 </SCRIPT>
64 <NOSCRIPT>
65 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
66 </NOSCRIPT>
67
68 </FONT></TD>
69 </TR>
70 <TR>
71 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75 </TR>
76 </TABLE>
77 <A NAME="skip-navbar_top"></A>
78 <!-- ========= END OF TOP NAVBAR ========= -->
79
80 <HR>
81 <!-- ======== START OF CLASS DATA ======== -->
82 <H2>
83 <FONT SIZE="-1">
84 spin.over</FONT>
85 <BR>
86 Class CheckingRepaintManager</H2>
87 <PRE>
88 java.lang.Object
89 <IMG SRC="../../resources/inherit.gif" ALT="extended by">javax.swing.RepaintManager
90 <IMG SRC="../../resources/inherit.gif" ALT="extended by"><B>spin.over.CheckingRepaintManager</B>
91 </PRE>
92 <HR>
93 <DL>
94 <DT>public class <B>CheckingRepaintManager</B><DT>extends javax.swing.RepaintManager</DL>
95
96 <P>
97 A repaintManager that checks bad access - i.e. access from non EDT -
98 to Swing components. Install with:
99 <pre>
100 RepaintManager.setCurrentManager(new CheckingRepaintManager());
101 </pre>
102 Based on an idea by Scott Delap (http://www.clientjava.com).
103 <P>
104
105 <P>
106 <DL>
107 <DT><B>See Also:</B><DD><CODE>RepaintManager</CODE></DL>
108 <HR>
109
110 <P>
111 <!-- ======== NESTED CLASS SUMMARY ======== -->
112
113
114 <!-- =========== FIELD SUMMARY =========== -->
115
116
117 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
118
119 <A NAME="constructor_summary"><!-- --></A>
120 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122 <TD COLSPAN=2><FONT SIZE="+2">
123 <B>Constructor Summary</B></FONT></TD>
124 </TR>
125 <TR BGCOLOR="white" CLASS="TableRowColor">
126 <TD><CODE><B><A HREF="../../spin/over/CheckingRepaintManager.html#CheckingRepaintManager()">CheckingRepaintManager</A></B>()</CODE>
127
128 <BR>
129 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
130 </TR>
131 </TABLE>
132 &nbsp;
133 <!-- ========== METHOD SUMMARY =========== -->
134
135 <A NAME="method_summary"><!-- --></A>
136 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
138 <TD COLSPAN=2><FONT SIZE="+2">
139 <B>Method Summary</B></FONT></TD>
140 </TR>
141 <TR BGCOLOR="white" CLASS="TableRowColor">
142 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143 <CODE>&nbsp;void</CODE></FONT></TD>
144 <TD><CODE><B><A HREF="../../spin/over/CheckingRepaintManager.html#addDirtyRegion(javax.swing.JComponent, int, int, int, int)">addDirtyRegion</A></B>(javax.swing.JComponent&nbsp;component,
145 int&nbsp;x,
146 int&nbsp;y,
147 int&nbsp;w,
148 int&nbsp;h)</CODE>
149
150 <BR>
151 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overriden to check EDT rule.</TD>
152 </TR>
153 <TR BGCOLOR="white" CLASS="TableRowColor">
154 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155 <CODE>&nbsp;void</CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../../spin/over/CheckingRepaintManager.html#addInvalidComponent(javax.swing.JComponent)">addInvalidComponent</A></B>(javax.swing.JComponent&nbsp;component)</CODE>
157
158 <BR>
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overriden to check EDT rule.</TD>
160 </TR>
161 <TR BGCOLOR="white" CLASS="TableRowColor">
162 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163 <CODE>protected &nbsp;void</CODE></FONT></TD>
164 <TD><CODE><B><A HREF="../../spin/over/CheckingRepaintManager.html#checkEDTRule(java.awt.Component)">checkEDTRule</A></B>(java.awt.Component&nbsp;component)</CODE>
165
166 <BR>
167 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check EDT rule on access to the given component.</TD>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171 <CODE>protected &nbsp;void</CODE></FONT></TD>
172 <TD><CODE><B><A HREF="../../spin/over/CheckingRepaintManager.html#indicate(spin.over.EDTRuleViolation)">indicate</A></B>(<A HREF="../../spin/over/EDTRuleViolation.html" title="class in spin.over">EDTRuleViolation</A>&nbsp;violation)</CODE>
173
174 <BR>
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicate a violation of the EDT rule. </TD>
176 </TR>
177 <TR BGCOLOR="white" CLASS="TableRowColor">
178 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
180 <TD><CODE><B><A HREF="../../spin/over/CheckingRepaintManager.html#isLiableToEDTRule(java.lang.StackTraceElement)">isLiableToEDTRule</A></B>(java.lang.StackTraceElement&nbsp;element)</CODE>
181
182 <BR>
183 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is the given stackTraceElement liable to the EDT rule.</TD>
184 </TR>
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
188 <TD><CODE><B><A HREF="../../spin/over/CheckingRepaintManager.html#violatesEDTRule(java.awt.Component)">violatesEDTRule</A></B>(java.awt.Component&nbsp;component)</CODE>
189
190 <BR>
191 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does acces to the given component violate the EDT rule.</TD>
192 </TR>
193 </TABLE>
194 &nbsp;<A NAME="methods_inherited_from_class_javax.swing.RepaintManager"><!-- --></A>
195 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
197 <TD><B>Methods inherited from class javax.swing.RepaintManager</B></TD>
198 </TR>
199 <TR BGCOLOR="white" CLASS="TableRowColor">
200 <TD><CODE>currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents</CODE></TD>
201 </TR>
202 </TABLE>
203 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
204 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
205 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
206 <TD><B>Methods inherited from class java.lang.Object</B></TD>
207 </TR>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
210 </TR>
211 </TABLE>
212 &nbsp;
213 <P>
214
215 <!-- ============ FIELD DETAIL =========== -->
216
217
218 <!-- ========= CONSTRUCTOR DETAIL ======== -->
219
220 <A NAME="constructor_detail"><!-- --></A>
221 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
222 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
223 <TD COLSPAN=1><FONT SIZE="+2">
224 <B>Constructor Detail</B></FONT></TD>
225 </TR>
226 </TABLE>
227
228 <A NAME="CheckingRepaintManager()"><!-- --></A><H3>
229 CheckingRepaintManager</H3>
230 <PRE>
231 public <B>CheckingRepaintManager</B>()</PRE>
232 <DL>
233 </DL>
234
235 <!-- ============ METHOD DETAIL ========== -->
236
237 <A NAME="method_detail"><!-- --></A>
238 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
239 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
240 <TD COLSPAN=1><FONT SIZE="+2">
241 <B>Method Detail</B></FONT></TD>
242 </TR>
243 </TABLE>
244
245 <A NAME="addInvalidComponent(javax.swing.JComponent)"><!-- --></A><H3>
246 addInvalidComponent</H3>
247 <PRE>
248 public void <B>addInvalidComponent</B>(javax.swing.JComponent&nbsp;component)</PRE>
249 <DL>
250 <DD>Overriden to check EDT rule.
251 <P>
252 <DD><DL>
253 </DL>
254 </DD>
255 </DL>
256 <HR>
257
258 <A NAME="addDirtyRegion(javax.swing.JComponent, int, int, int, int)"><!-- --></A><H3>
259 addDirtyRegion</H3>
260 <PRE>
261 public void <B>addDirtyRegion</B>(javax.swing.JComponent&nbsp;component,
262 int&nbsp;x,
263 int&nbsp;y,
264 int&nbsp;w,
265 int&nbsp;h)</PRE>
266 <DL>
267 <DD>Overriden to check EDT rule.
268 <P>
269 <DD><DL>
270 </DL>
271 </DD>
272 </DL>
273 <HR>
274
275 <A NAME="checkEDTRule(java.awt.Component)"><!-- --></A><H3>
276 checkEDTRule</H3>
277 <PRE>
278 protected void <B>checkEDTRule</B>(java.awt.Component&nbsp;component)</PRE>
279 <DL>
280 <DD>Check EDT rule on access to the given component.
281 <P>
282 <DD><DL>
283 <DT><B>Parameters:</B><DD><CODE>component</CODE> - component to be repainted</DL>
284 </DD>
285 </DL>
286 <HR>
287
288 <A NAME="violatesEDTRule(java.awt.Component)"><!-- --></A><H3>
289 violatesEDTRule</H3>
290 <PRE>
291 protected boolean <B>violatesEDTRule</B>(java.awt.Component&nbsp;component)</PRE>
292 <DL>
293 <DD>Does acces to the given component violate the EDT rule.
294 <P>
295 <DD><DL>
296 <DT><B>Parameters:</B><DD><CODE>component</CODE> - accessed component
297 <DT><B>Returns:</B><DD><code>true</code> if EDT rule is violated</DL>
298 </DD>
299 </DL>
300 <HR>
301
302 <A NAME="isLiableToEDTRule(java.lang.StackTraceElement)"><!-- --></A><H3>
303 isLiableToEDTRule</H3>
304 <PRE>
305 protected boolean <B>isLiableToEDTRule</B>(java.lang.StackTraceElement&nbsp;element)
306 throws java.lang.Exception</PRE>
307 <DL>
308 <DD>Is the given stackTraceElement liable to the EDT rule.
309 <P>
310 <DD><DL>
311 <DT><B>Parameters:</B><DD><CODE>element</CODE> - element
312 <DT><B>Returns:</B><DD><code>true</code> if the className of the given element
313 denotes a subclass of <code>java.awt.Component</code>
314 <DT><B>Throws:</B>
315 <DD><CODE>java.lang.Exception</CODE></DL>
316 </DD>
317 </DL>
318 <HR>
319
320 <A NAME="indicate(spin.over.EDTRuleViolation)"><!-- --></A><H3>
321 indicate</H3>
322 <PRE>
323 protected void <B>indicate</B>(<A HREF="../../spin/over/EDTRuleViolation.html" title="class in spin.over">EDTRuleViolation</A>&nbsp;violation)
324 throws <A HREF="../../spin/over/EDTRuleViolation.html" title="class in spin.over">EDTRuleViolation</A></PRE>
325 <DL>
326 <DD>Indicate a violation of the EDT rule. This default implementation throws
327 the given exception, subclasses may want to log the exception instead.
328 <P>
329 <DD><DL>
330 <DT><B>Parameters:</B><DD><CODE>violation</CODE> - violation of EDT rule
331 <DT><B>Throws:</B>
332 <DD><CODE><A HREF="../../spin/over/EDTRuleViolation.html" title="class in spin.over">EDTRuleViolation</A></CODE></DL>
333 </DD>
334 </DL>
335 <!-- ========= END OF CLASS DATA ========= -->
336 <HR>
337
338
339 <!-- ======= START OF BOTTOM NAVBAR ====== -->
340 <A NAME="navbar_bottom"><!-- --></A>
341 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
342 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
343 <TR>
344 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
345 <A NAME="navbar_bottom_firstrow"><!-- --></A>
346 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
347 <TR ALIGN="center" VALIGN="top">
348 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
349 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
350 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
351 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
352 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
353 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
354 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
355 </TR>
356 </TABLE>
357 </TD>
358 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
359 </EM>
360 </TD>
361 </TR>
362
363 <TR>
364 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
365 &nbsp;PREV CLASS&nbsp;
366 &nbsp;<A HREF="../../spin/over/SpinOverEvaluator.html" title="class in spin.over"><B>NEXT CLASS</B></A></FONT></TD>
367 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
368 <A HREF="../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
369 &nbsp;<A HREF="CheckingRepaintManager.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
370 &nbsp;<SCRIPT type="text/javascript">
371 <!--
372 if(window==top) {
373 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
374 }
375 //-->
376 </SCRIPT>
377 <NOSCRIPT>
378 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
379 </NOSCRIPT>
380
381 </FONT></TD>
382 </TR>
383 <TR>
384 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
385 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
386 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
387 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
388 </TR>
389 </TABLE>
390 <A NAME="skip-navbar_bottom"></A>
391 <!-- ======== END OF BOTTOM NAVBAR ======= -->
392
393 <HR>
394
395 </BODY>
396 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26