Environment: Siren
DisplayListViews can display and scroll structured graphics display lists generated by various models or layout managers.
Subclasses generally override the displayOn: or displayOnImage methods, and add initialization or transformation methods.
Instance Variables
See the class examples for numerous ways of using display list views.
The subclasses add knowledge of smart display list generation, background pixmap generation (e.g., gridding), display of item or x/y-range selection, x- or y-scaling or step/grid, property->color mapping, "clef forms" or other special pixmaps, multiple-model viewing, etc.
accessing
displayList
pixmap
background
zoom
pageOffset
backgroundColor
foregroundColor
redrawn
cache
backgroundColor
Answer the receiver's backgroundColor or the default.
bounds: aRectangle
Set the receiver's bounds (and page offset).
cache: aBoolean
Set the receiver's 'cache' to be aBoolean.
displayList
Answer the receiver's display list.
displayList: anObject
Set the receiver's 'displayList' to be anObject.
foregroundColor
Answer the receiver's foregroundColor or the default.
inset: aPoint
Set the receiver's inset to aPoint (pixels).
list
Answer the receiver's display list.
pageOffset
Answer the receiver's 'pageOffset'.
pageOffset: anObject
Set the receiver's 'pageOffset' to be anObject.
pixmap: aPMorNil
Set (or destroy) the receiver's cached pixmap.
preferredBounds
Answer the displayList's bounds.
zoom: aPoint
Set the receiver's 'zoom' to be aPoint.
private
Answer the extent of the receiver's display object bounding box.
setModel: aModel
visibleExtent
Answer the extent of the receiver's clipping box.
controller access
transformPoint: aPoint
zoom, scroll, and page the given point, used for hit-detection.
initialize-release
Answer a DLView for use as a component.
initialize
Initialize the receiver's instance variables--the default is not to cache.
initializeCache
Initialize the receiver's instance variables for cacheing the pixmap during display.
initializeWithGrid: gPoint color: gColor
Initialize the receiver's instance variables--the default is to cache.
release
Remove the receiver as a dependent of its model.
displaying
displaySelectionOn: aGC
Display the model's selection using some form of highlighting.
invalidate
MetaClass: DisplayListView class
instance creation
Answer a DLView for use as a component.
componentOnList: dlist withGrid: gPoint inColor: gColor
Answer a DLView for use as a component.
on: anEditor
open4SquareOn: aDisplayList
Open the receiver on the given display list.
openOn: aDisplayList
Open the receiver on the given display list.
constant access
Answer the default background color for display list views.
constants
constants: aDictionary
defaultCacheExtent
Answer the default extent of the receiver's instances' cache.
foregroundColor
Answer the default foreground color for display list views.
inset
Answer the default display inset.
class initialization
Init the class
examples
DisplayListView classListExample
classTreeExample
DisplayListView classTreeExample
colorClassListExample
DisplayListView colorClassListExample
exampleHierarchical
DisplayListView exampleHierarchical