Class:            DisplayVisual

Environment:      Siren
Superclass:         Siren.DisplayItem
Category:         MusicUI-DisplayLists
Instance variables:   visual
Imports:            MusicConstants

Instances of DisplayVisual are used for displaying arbitrary visual objects (e.g., cached images) in display lists.

Instance Variables:
   visual       the object's visual object, typically an image

accessing

bounds
   Answer the visual's bounds translated by the receiver's translation.

visual
   Answer the receiver's visual.

visual: aVisual
   Set the receiver's visual.

printing

printOn: aStream
   Print the receiver in the given Stream.

storeOn: aStream
   Print the receiver in the given Stream.

displaying

displayOn: aGraphicsContext
   Display the receiver's visual on the given graphics context.

displayPostScriptOn: aPostscriptContext
   Display the receiver on the argument as a PostScript item.

MetaClass:         DisplayVisual class

examples

convertMusicConstants
   Convert all the forms to opaque forms

displayMusicConstants
   Draw a nice table of the hierarchical image dictionary.

storeMusicConstants
   Write out all the forms to opaque forms

visualExample
   Open a display list view with randomly-placed random-color visuals over the given extent.

instance creation

model: aM visual: aV offset: aPt
   Answer an instance of DisplayItem with the given instance variables.

visual: aV
   Answer an instance of DisplayItem with the given instance variables.

visual: aV offset: aPt
   Answer an instance of DisplayItem with the given instance variables.

visual: aV origin: aPt
   Answer an instance of DisplayItem with the given instance variables.