Class: DisplayString

Environment: Siren
Superclass: Siren.DisplayItem
Category: MusicUI-DisplayLists
Instance variables: string font

Instances of DisplayString are used for visual text items in display lists.

Instance Variables:
string the object's string/text
font the object's display font

accessing

bounds
Answer a rectangle that circumscribes the receiver.

extent
Answer a rectangle that circumscribes the receiver.

font
Answer the receiver's font.

font: aFont
Set the receiver's font.

string
Answer the receiver's string.

string: aString
Set the receiver's string.

printing

printOn: aStream
comment stating purpose of message

displaying

displayOn: aGraphicsContext
display the receiver on the argument.

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

initialize-release

initialize
Initialize the instance variables of the receiver.

MetaClass: DisplayString class

examples

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

instance creation

new
Answer a new initialized instance.

string: aString
Answer a new instance with the argument as its string.

string: aString offset: oPoint
Answer a new instance with the arguments as its string and offset point.