MonoMappedPalette.st
author Claus Gittinger <cg@exept.de>
Mon, 04 May 2020 19:16:06 +0200
changeset 9042 28837096674b
parent 7955 66531231e428
permissions -rw-r--r--
#DOCUMENTATION by cg class: DeviceWorkstation category of: #pointerPosition #setPointerPosition: #setPointerPosition:in:

"
 COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libview' }"

"{ NameSpace: Smalltalk }"

MappedPalette subclass:#MonoMappedPalette
	instanceVariableNames:''
	classVariableNames:'WhiteBlack BlackWhite'
	poolDictionaries:''
	category:'Graphics-Images-Support'
!

!MonoMappedPalette class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1997 by Claus Gittinger / eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    This class will (sooner or later) take over and/or redefine some of the Colormap functionality.
    This migration will be done both to cleanup the code and for VW compatibility.

    Notice: For now, the whole functionality is still in Colormap

    [see also:]
	Color Image Form
"
! !

!MonoMappedPalette class methodsFor:'instance creation'!

blackWhite
    BlackWhite isNil ifTrue:[
        BlackWhite := super blackWhite
    ].
    ^ BlackWhite
!

whiteBlack
    WhiteBlack isNil ifTrue:[
        WhiteBlack := super whiteBlack
    ].
    ^ WhiteBlack
! !

!MonoMappedPalette methodsFor:'accessing'!

at:index put:aColor
    self error:'this palette cannot be changed'.
! !

!MonoMappedPalette class methodsFor:'documentation'!

version
    ^ '$Header$'
! !