Environment: Siren
Instances of DisplayString are used for visual text items in display lists.
Instance Variables:
accessing
string
font
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
comment stating purpose of message
displaying
display the receiver on the argument.
displayPostScriptOn: aPostscriptContext
Display the receiver on the argument as a PostScript item.
initialize-release
Initialize the instance variables of the receiver.
MetaClass: DisplayString class
examples
Open a display list view with randomly-placed random-color strings over the given extent.
instance creation
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.