author | Stefan Vogel <sv@exept.de> |
Fri, 11 Oct 2013 19:27:45 +0200 | |
changeset 2815 | 9cf54c8df8b7 |
parent 2678 | c865275e48a7 |
child 2731 | 13f5be2bf83b |
permissions | -rw-r--r-- |
545 | 1 |
" |
2151 | 2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
545 | 3 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
5 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
7 |
SWING Research Group, Czech Technical University in Prague |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
8 |
|
545 | 9 |
This software is furnished under a license and may be used |
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
15 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
19 |
as of 1.9.2010 |
2151 | 20 |
" |
713 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
472 | 23 |
StandardSystemView subclass:#JavaTopView |
24 |
instanceVariableNames:'eventReceiver updateRegions javaPeer' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
713 | 27 |
category:'Languages-Java-Views-Support' |
472 | 28 |
! |
29 |
||
545 | 30 |
!JavaTopView class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
2151 | 34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
545 | 35 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
36 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
37 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
39 |
SWING Research Group, Czech Technical University in Prague |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
40 |
|
545 | 41 |
This software is furnished under a license and may be used |
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
48 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
49 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
50 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
51 |
as of 1.9.2010 |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
52 |
|
545 | 53 |
" |
54 |
! ! |
|
472 | 55 |
|
56 |
!JavaTopView methodsFor:'accessing'! |
|
57 |
||
58 |
delegate:anObject |
|
473 | 59 |
"/ super delegate:anObject. |
472 | 60 |
eventReceiver := anObject. |
61 |
||
62 |
"Created: / 2.12.1998 / 23:32:13 / cg" |
|
473 | 63 |
"Modified: / 2.12.1998 / 23:57:57 / cg" |
472 | 64 |
! |
65 |
||
66 |
getNextUpdateRectangle |
|
67 |
|r| |
|
68 |
||
69 |
updateRegions size == 0 ifTrue:[^ nil]. |
|
70 |
r := updateRegions removeFirst. |
|
71 |
updateRegions size == 0 ifTrue:[updateRegions := nil]. |
|
72 |
^ r |
|
73 |
||
74 |
"Created: / 2.12.1998 / 23:32:13 / cg" |
|
75 |
! |
|
76 |
||
77 |
javaPeer |
|
78 |
"for debugging support - here is a handle to the corresponding |
|
79 |
javaPeer" |
|
80 |
||
81 |
^ javaPeer |
|
82 |
||
83 |
"Created: / 2.12.1998 / 23:32:13 / cg" |
|
84 |
! |
|
85 |
||
86 |
javaPeer:aJavaView |
|
87 |
"for debugging support - here is a handle to the corresponding |
|
88 |
javaPeer" |
|
89 |
||
90 |
javaPeer := aJavaView |
|
91 |
||
92 |
"Created: / 2.12.1998 / 23:32:13 / cg" |
|
93 |
! ! |
|
94 |
||
95 |
!JavaTopView methodsFor:'event handling'! |
|
96 |
||
97 |
exposeX:x y:y width:w height:h |
|
98 |
|ev rect| |
|
99 |
||
100 |
rect := Rectangle left:x top:y width:w height:h. |
|
101 |
||
596 | 102 |
('JavaTopView exposeX:' , x printString , ' y:' , y printString , ' width:' , w printString , ' height:' , h printString) printCR. |
472 | 103 |
|
104 |
updateRegions isNil ifTrue:[ |
|
105 |
updateRegions := OrderedCollection new. |
|
106 |
]. |
|
107 |
updateRegions add:rect. |
|
108 |
eventReceiver notNil ifTrue:[ |
|
109 |
ev := WindowEvent |
|
110 |
damageFor:self |
|
111 |
rectangle:rect. |
|
112 |
eventReceiver processEvent:ev. |
|
113 |
]. |
|
114 |
"/ super exposeX:x y:y width:w height:h |
|
115 |
||
116 |
"Modified: / 19.10.1998 / 23:10:15 / cg" |
|
117 |
"Created: / 2.12.1998 / 23:32:13 / cg" |
|
118 |
! ! |
|
119 |
||
120 |
!JavaTopView methodsFor:'initialization'! |
|
121 |
||
122 |
initialize |
|
123 |
super initialize. |
|
124 |
||
125 |
self enableMotionEvents. |
|
126 |
||
127 |
"Modified: / 2.12.1998 / 23:32:30 / cg" |
|
128 |
! ! |
|
129 |
||
482 | 130 |
!JavaTopView methodsFor:'queries'! |
131 |
||
132 |
isJavaView |
|
133 |
^ true |
|
134 |
||
135 |
"Created: / 4.12.1998 / 14:09:37 / cg" |
|
136 |
! ! |
|
137 |
||
472 | 138 |
!JavaTopView class methodsFor:'documentation'! |
139 |
||
140 |
version |
|
2678
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
141 |
^ '$Header: /cvs/stx/stx/libjava/JavaTopView.st,v 1.12 2013-09-06 00:41:27 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
142 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
143 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
144 |
version_CVS |
2678
c865275e48a7
Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2396
diff
changeset
|
145 |
^ '$Header: /cvs/stx/stx/libjava/JavaTopView.st,v 1.12 2013-09-06 00:41:27 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
146 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
147 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
148 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
149 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
150 |
^ '$Changeset: <not expanded> $' |
2151 | 151 |
! |
152 |
||
153 |
version_SVN |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
154 |
^ '§Id§' |
2108 | 155 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2165
diff
changeset
|
156 |