Squeak Class Documentation category index | class index  
 
MorphWorldView
  category: ST80-Morphic
  superclass: View
  subclasses:

I am a view used to display a Scene. I may be scrolled by adjusting my offset. My default controller is SceneController.

SceneViews encapsulate the notion of a changing foreground and a fixed background during interactive updates. During an interaction (such as dragging), some of the glyphs will not change location or appearance. These are part of the "background". All glyphs that may change (the "foreground" glyphs) are painted against this unchanging backdrop during the interaction.

Instance Variables:
offset the current offset of this view (used for scrolling)
enclosingRect a rectangle large enough to contain all the objects in the scene, plus a small border (this is a cache that must be recomputed when glyphs are moved, added, or removed from the scene)
backgroundForm a <Form> containing the fixed background
visibleForeground the glyphs that are changing but not selected during an interaction
selectedForeground the selected glyphs that are changing during an interaction

instance methods
  as yet unclassified
  computeInsetDisplayBox
deEmphasizeView
defaultControllerClass
displayView
update:
updateSubWindowExtent

class methods
  instance creation
  convertToMVCWiWPasteUpMorph
fullColorWhenInactive
fullColorWhenInactive:
openOn:
openOn:label:
openOn:label:cautionOnClose:
openOn:label:extent:
openOn:label:model:
openWorld
openWorldWith:labelled:

instance methods
  as yet unclassified top  
 

computeInsetDisplayBox

This overrides the same method in View. (It avoids using displayTransform: because it can return inaccurate results, causing a MorphWorldView's inset display box to creep inward when resized.)


 

deEmphasizeView

This window is becoming inactive.


 

defaultControllerClass

Answer the class of the default controller for the receiver. Subclasses
should redefine View|defaultControllerClass if the class of the default
controller is not Controller.


 

displayView

This method is called by the system when the top view is framed or moved.


 

update:

Normally sent by the receiver's model in order to notify the receiver of
a change in the model's state. Subclasses implement this message to do
particular update actions. A typical action that might be required is to
redisplay the receiver.


 

updateSubWindowExtent

If this MorphWorldView represents a single Morphic SystemWindow, then update that window to match the size of the WorldView.


class methods
  instance creation top  
 

convertToMVCWiWPasteUpMorph


MorphWorldView convertToMVCWiWPasteUpMorph


 

fullColorWhenInactive


 

fullColorWhenInactive:

MorphWorldView fullColorWhenInactive: true


 

openOn:

Open a view on the given WorldMorph.


 

openOn:label:

Open a view with the given label on the given WorldMorph.


 

openOn:label:cautionOnClose:

Open a view with the given label on the given WorldMorph.


 

openOn:label:extent:

Open a view with the given label and extent on the given WorldMorph.


 

openOn:label:model:

Open a view with the given label on the given WorldMorph.


 

openWorld


 

openWorldWith:labelled: