Class: DisplayRectangle

Environment: Siren
Superclass: Siren.DisplayLine
Category: MusicUI-DisplayLists
Instance variables: fill stroke

Instances of DisplayRectangle can be used to display bordered or filled rectangles in display lists. This is a subclass of DisplayLine for reasons of practicality. a "purist" (e.g., David Liebs), would create an intermediate abstract class (e.g., BoundedDisplayItem) for both DisplayLine and DisplayRectangle.

Instanve Variables:
fill whether or not to fill the receiver on display (no by default)

accessing

fill: aBoolean
Set the receiver's filling Boolean.

stroke: aNum
Set the receiver's stroke line thickness.

displaying

displayOn: aGraphicsContext
Display a line between startPoint and endPoint.

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

MetaClass: DisplayRectangle class

examples

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