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