MappedPalette.st
author Claus Gittinger <cg@exept.de>
Thu, 10 Apr 2003 16:49:14 +0200
changeset 3848 84597432b833
parent 3847 288ab85676aa
child 3865 18532e89cdca
permissions -rw-r--r--
*** empty log message ***

"
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
	      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:libcompat' }"

ColorPalette subclass:#MappedPalette
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Graphics-Images-Support'
!

!MappedPalette class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
	      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
"
! !

!MappedPalette class methodsFor:'instance creation'!

blackWhite
    "ST-80 compatibility"

    ^ super fromColors:(Array with:(Color black) with:(Color white))

    "Created: 7.10.1996 / 11:31:08 / cg"
    "Modified: 14.2.1997 / 17:43:24 / cg"
!

monochromeDefault
    "ST-80 compatibility"

    ^ self whiteBlack

    "Modified: 25.2.1997 / 18:57:34 / cg"
!

whiteBlack
    "ST-80 compatibility"

    ^ super fromColors:(Array with:(Color white) with:(Color black))

    "Created: 7.10.1996 / 11:29:01 / cg"
    "Modified: 14.2.1997 / 17:43:31 / cg"
! !

!MappedPalette class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libview/MappedPalette.st,v 1.2 2003-04-10 14:48:59 cg Exp $'
! !