Squeak Class Documentation category index | class index  
 
CRDisplayProperties
  category: Genie-Engine
  superclass: Model
  subclasses: CRTempDisplayProperties

Instances of this class describe the properties of a certain display (and input) device.
Basically, all the features are stored in a completely device independent format. Thus, character dictionaries can be used without any modification on all the different platforms running Squeak.
The recognizing engine uses the display properties to know how to interpret new features (input) and how to display existing features (output).
There can be several display properties in the system, but only one of them is active at a time.

instance methods
  accessing
  activate
aspectRatio
aspectRatio:
isActive
maxSize
maxSize:
minCaptureDistance
minCaptureDistance:
minMoveDistance
minMoveDistance:
name
name:
name:makeDistinct:
nameAsString
set:

  comparing
  <
hasSameContents:

  copying
  copy

  initialize-release
  initializeName:aspectRatio:maxSize:minCaptureDistance:minMoveDistance:

  objects from disk
  readDataFrom:size:
storeDataOn:

  private
  createDistinctName:collection:
deactivate:

  views
  asMorph
newMorph

class methods
  accessing
  activeInstance
activeInstance:

  class initialization
  initialize

  constants
  fileNameSuffix

  default parameter
  aspectRatio
maxSize
minCaptureDistance
minMoveDistance

  instance browser
  initializeInstanceBrowser
instanceBrowser
instanceBrowserMorph
openInstanceBrowserMorph

  instance creation
  name:aspectRatio:maxSize:minCaptureDistance:minMoveDistance:
new

instance methods
  accessing top  
 

activate

Activate the current instance


 

aspectRatio


 

aspectRatio:


 

isActive


 

maxSize


 

maxSize:


 

minCaptureDistance


 

minCaptureDistance:


 

minMoveDistance


 

minMoveDistance:


 

name

Answer a name for the receiver. This is used generically in the title of certain inspectors, such as the referred-to inspector, and specificially by various subsystems. By default, we let the object just print itself out..


 

name:


 

name:makeDistinct:

Set the name to the given symbol or string. If aBoolean is true and the name is not
distinct, create a distinct name absed on the given name


 

nameAsString


 

set:


  comparing top  
 

<


 

hasSameContents:

Determine wheter the contents of this instance is the same as the contents of
aCRDisplayProperties.


  copying top  
 

copy

Answer another instance just like the receiver. Subclasses typically
override this method; they typically do not override shallowCopy.


  initialize-release top  
 

initializeName:aspectRatio:maxSize:minCaptureDistance:minMoveDistance:


  objects from disk top  
 

readDataFrom:size:

Fill in the fields of self based on the contents of aDataStream. Return self.
Read in the instance-variables written by Object>>storeDataOn:.
NOTE: This method must send beginReference: before reading any objects from aDataStream that might reference it.
Allow aDataStream to have fewer inst vars. See SmartRefStream.


 

storeDataOn:

Store myself on a DataStream. Answer self. This is a low-level DataStream/ReferenceStream method. See also objectToStoreOnDataStream. NOTE: This method must send 'aDataStream beginInstance:size:' and then (nextPut:/nextPutWeak:) its subobjects. readDataFrom:size: reads back what we write here.


  private top  
 

createDistinctName:collection:

Create a name similar to aString, that is not in aCollection


 

deactivate:

Deactivate the current instance


  views top  
 

asMorph


 

newMorph


class methods
  accessing top  
 

activeInstance


 

activeInstance:


  class initialization top  
 

initialize

CRDisplayProperties initialize


  constants top  
 

fileNameSuffix


  default parameter top  
 

aspectRatio


 

maxSize


 

minCaptureDistance


 

minMoveDistance


  instance browser top  
 

initializeInstanceBrowser

Create a new instance browser holding all the named display properties instances.
An instance browser is stored in the variable InstanceBrowser and can be accessed
using: CRDisplayProperties instanceBrowser


 

instanceBrowser


 

instanceBrowserMorph


 

openInstanceBrowserMorph


  instance creation top  
 

name:aspectRatio:maxSize:minCaptureDistance:minMoveDistance:


 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.