249
|
1 |
VisualComponent subclass:#VisualPart
|
|
2 |
instanceVariableNames:'container'
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Graphics-Display Objects'
|
|
6 |
!
|
|
7 |
|
265
|
8 |
!VisualPart class methodsFor:'documentation'!
|
|
9 |
|
|
10 |
documentation
|
|
11 |
"
|
|
12 |
abstract superclass for all kinds of visual components, which
|
|
13 |
are containers for some other component.
|
|
14 |
This class and its subclasses (currently) exist mostly for
|
|
15 |
ST-80 compatibility - to provide a home for ported PD classes,
|
|
16 |
which depend on the VisualPart hierarchy.
|
|
17 |
|
|
18 |
Notice:
|
|
19 |
this class was implemented using protocol information
|
|
20 |
from alpha testers and from the Hopkins/Horan book.
|
|
21 |
- it may not be complete or compatible to the corresponding ST-80 class.
|
|
22 |
If you encounter any incompatibilities, please forward a note
|
|
23 |
describing the incompatibility verbal (i.e. no code) to the ST/X team.
|
|
24 |
This is still being constructed - not yet finished.
|
|
25 |
|
|
26 |
[author:]
|
|
27 |
Claus Gittinger
|
|
28 |
|
|
29 |
[see also:]
|
|
30 |
GeometricWrapper
|
|
31 |
"
|
|
32 |
|
|
33 |
|
|
34 |
! !
|
249
|
35 |
|
|
36 |
!VisualPart methodsFor:'accessing'!
|
|
37 |
|
|
38 |
container
|
|
39 |
"return container"
|
|
40 |
|
|
41 |
^ container
|
|
42 |
|
|
43 |
"Created: 9.5.1996 / 00:31:41 / cg"
|
|
44 |
!
|
|
45 |
|
|
46 |
container:something
|
|
47 |
"set container"
|
|
48 |
|
|
49 |
container := something.
|
|
50 |
|
|
51 |
"Created: 9.5.1996 / 00:31:41 / cg"
|
|
52 |
!
|
|
53 |
|
|
54 |
graphicsContext
|
|
55 |
"return the graphicsContext"
|
|
56 |
|
254
|
57 |
^ container graphicsContext
|
249
|
58 |
|
|
59 |
"Created: 9.5.1996 / 00:32:12 / cg"
|
254
|
60 |
"Modified: 9.5.1996 / 01:37:10 / cg"
|
|
61 |
!
|
|
62 |
|
|
63 |
graphicsDevice
|
|
64 |
"return the graphicsContext"
|
|
65 |
|
|
66 |
^ container graphicsDevice
|
|
67 |
|
|
68 |
"Created: 9.5.1996 / 00:32:12 / cg"
|
|
69 |
"Modified: 9.5.1996 / 01:37:03 / cg"
|
|
70 |
!
|
|
71 |
|
|
72 |
topComponent
|
|
73 |
"return the top component - typically the topView"
|
|
74 |
|
|
75 |
^ container topComponent
|
|
76 |
|
|
77 |
"Modified: 9.5.1996 / 01:37:10 / cg"
|
|
78 |
"Created: 9.5.1996 / 01:39:15 / cg"
|
249
|
79 |
! !
|
|
80 |
|
|
81 |
!VisualPart class methodsFor:'documentation'!
|
|
82 |
|
|
83 |
version
|
265
|
84 |
^ '$Header: /cvs/stx/stx/libview2/VisualPart.st,v 1.3 1996-05-13 08:50:34 cg Exp $'
|
249
|
85 |
! !
|