eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'MultiImage':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: MultiImage


Inheritance:

   Object
   |
   +--MultiImage

Package:
stx:libview2
Category:
Graphics-Images
Version:
rev: 1.17 date: 2021/01/20 16:04:22
user: cg
file: MultiImage.st directory: libview2
module: stx stc-classLibrary: libview2

Description:


A multiImage is an image which is drawn by drawing multiple images on top of each other.
Typically, they are used to overlay additional information,
for example a stop-icon or a link-arrow over a fileType icon.

try: 
    MIMETypeIconLibrary iconForFile:'/foo/bar/baz.c' asFilename

caveat:
    instances provide enough protocol to be shown as icon, label, etc.
    (i.e. provide a replacement for images and forms).
    However, not all tools are prepared for them not having mask, bits etc.
    Especially, the ImageEditor gets a bit confused and may fall into a debugger,
    if trying to edit one of my instances.
    

copyright

COPYRIGHT (c) 2003 by 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.

Class protocol:

instance creation
o  images: imageCollection


Instance protocol:

accessing
o  device
Please use graphicsDevice for ST80 compatibility.

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  graphicsDevice

o  images
return the value of the instance variable 'images' (automatically generated)

o  images: something
set the value of the instance variable 'images' (automatically generated)

o  mask

displaying
o  displayOn: aGC x: x y: y opaque: opaque
(comment from inherited method)
display the receiver in a graphicsContext - this method allows
for any object to be displayed in a ListView (or any view) - for example.
The fallBack here shows the receiver's displayString.
Notice, that the string is displayed on the baseLine;
ask using #ascentOn: if required

misc
o  asFormOn: aDevice

o  clearMaskedPixels

o  onDevice: device

misc ui support
o  inspectorClass
( an extension from the stx:libtool package )
redefined to launch an ImageInspector
(instead of the default InspectorView).

queries
o  ascentOn: aGC
I will not draw myself above the baseline

o  depth

o  extent

o  height

o  isImageOrForm

o  width



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:46:04 GMT