Class: DisplayLine

Environment: Siren
Superclass: Siren.DisplayItem
Category: MusicUI-DisplayLists
Instance variables: width extent

Instances of DisplayLine are used for visual lines in display lists.

Instance Variables:
width the object's line width
extent the object's visual extent

accessing

corner: aPoint
Set the corner of the receiver (offset + extent).

extent
Answer the extent of the receiver.

extent: aPoint
Set the extent of the receiver.

width: aVal

printing

printOn: aStream
Print the receiver in the given Stream.

displaying

displayOn: aGraphicsContext
Display a line between startPoint and endPoint.

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

bounds accessing

bounds
Answer the receiver's bounds.

MetaClass: DisplayLine class

instance creation

from: oPoint to: endPoint
Answer an initialized instance.

offset: oPoint extent: ePoint
Answer an initialized instance.