3847
|
1 |
"
|
7954
|
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 |
"
|
7837
|
12 |
"{ Package: 'stx:libview' }"
|
3847
|
13 |
|
7837
|
14 |
"{ NameSpace: Smalltalk }"
|
3847
|
15 |
|
|
16 |
ColorPalette subclass:#MappedPalette
|
|
17 |
instanceVariableNames:''
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
3848
|
20 |
category:'Graphics-Images-Support'
|
3847
|
21 |
!
|
|
22 |
|
|
23 |
!MappedPalette class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
7954
|
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 |
|
|
51 |
!MappedPalette class methodsFor:'instance creation'!
|
|
52 |
|
|
53 |
blackWhite
|
|
54 |
"ST-80 compatibility"
|
|
55 |
|
3873
|
56 |
^ self withColors:(Array with:(Color black) with:(Color white))
|
3847
|
57 |
!
|
|
58 |
|
|
59 |
monochromeDefault
|
|
60 |
"ST-80 compatibility"
|
|
61 |
|
|
62 |
^ self whiteBlack
|
|
63 |
|
|
64 |
"Modified: 25.2.1997 / 18:57:34 / cg"
|
|
65 |
!
|
|
66 |
|
|
67 |
whiteBlack
|
|
68 |
"ST-80 compatibility"
|
|
69 |
|
3873
|
70 |
^ self withColors:(Array with:(Color white) with:(Color black))
|
3847
|
71 |
|
3876
|
72 |
"
|
|
73 |
self whiteBlack
|
|
74 |
"
|
|
75 |
|
3847
|
76 |
"Created: 7.10.1996 / 11:29:01 / cg"
|
|
77 |
"Modified: 14.2.1997 / 17:43:31 / cg"
|
|
78 |
! !
|
|
79 |
|
7837
|
80 |
!MappedPalette methodsFor:'testing'!
|
|
81 |
|
|
82 |
isMappedPalette
|
|
83 |
^ true
|
|
84 |
|
|
85 |
"Created: / 03-02-2017 / 21:41:06 / cg"
|
|
86 |
! !
|
|
87 |
|
3847
|
88 |
!MappedPalette class methodsFor:'documentation'!
|
|
89 |
|
|
90 |
version
|
7837
|
91 |
^ '$Header$'
|
3847
|
92 |
! !
|
7837
|
93 |
|