3847
|
1 |
"
|
7955
|
2 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG
|
|
3 |
All Rights Reserved
|
3847
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
7955
|
12 |
"{ Package: 'stx:libview' }"
|
3847
|
13 |
|
7955
|
14 |
"{ NameSpace: Smalltalk }"
|
3847
|
15 |
|
|
16 |
MappedPalette subclass:#MonoMappedPalette
|
|
17 |
instanceVariableNames:''
|
3876
|
18 |
classVariableNames:'WhiteBlack BlackWhite'
|
3847
|
19 |
poolDictionaries:''
|
3848
|
20 |
category:'Graphics-Images-Support'
|
3847
|
21 |
!
|
|
22 |
|
|
23 |
!MonoMappedPalette class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
7955
|
27 |
COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG
|
|
28 |
All Rights Reserved
|
3847
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
!
|
|
38 |
|
|
39 |
documentation
|
|
40 |
"
|
3848
|
41 |
This class will (sooner or later) take over and/or redefine some of the Colormap functionality.
|
|
42 |
This migration will be done both to cleanup the code and for VW compatibility.
|
3847
|
43 |
|
3848
|
44 |
Notice: For now, the whole functionality is still in Colormap
|
|
45 |
|
|
46 |
[see also:]
|
|
47 |
Color Image Form
|
3847
|
48 |
"
|
|
49 |
! !
|
|
50 |
|
3876
|
51 |
!MonoMappedPalette class methodsFor:'instance creation'!
|
|
52 |
|
|
53 |
blackWhite
|
|
54 |
BlackWhite isNil ifTrue:[
|
|
55 |
BlackWhite := super blackWhite
|
|
56 |
].
|
|
57 |
^ BlackWhite
|
|
58 |
!
|
|
59 |
|
|
60 |
whiteBlack
|
|
61 |
WhiteBlack isNil ifTrue:[
|
|
62 |
WhiteBlack := super whiteBlack
|
|
63 |
].
|
|
64 |
^ WhiteBlack
|
|
65 |
! !
|
|
66 |
|
|
67 |
!MonoMappedPalette methodsFor:'accessing'!
|
|
68 |
|
|
69 |
at:index put:aColor
|
|
70 |
self error:'this palette cannot be changed'.
|
|
71 |
! !
|
|
72 |
|
3847
|
73 |
!MonoMappedPalette class methodsFor:'documentation'!
|
|
74 |
|
|
75 |
version
|
7955
|
76 |
^ '$Header$'
|
3847
|
77 |
! !
|
7955
|
78 |
|