Squeak Class Documentation category index | class index  
 
DisplayObject
  category: Graphics-Display Objects
  superclass: Object
  subclasses: DisplayText DisplayMedium Path InfiniteForm

The abstract protocol for most display primitives that are used by Views for presenting information on the screen.

instance methods
  accessing
  extent
height
offset
offset:
relativeRectangle
width

  display box access
  boundingBox
center
computeBoundingBox
initialExtent

  displaying-Display
  display
follow:while:
follow:while:bitsBehind:startingLoc:
isTransparent
slideFrom:to:nSteps:
slideFrom:to:nSteps:delay:
slideFrom:to:nSteps:delay:andStay:
slideWithFirstFrom:to:nSteps:delay:

  displaying-generic
  displayAt:
displayOn:
displayOn:at:
displayOn:at:clippingBox:
displayOn:at:clippingBox:rule:fillColor:
displayOn:at:rule:
displayOn:transformation:clippingBox:
displayOn:transformation:clippingBox:align:with:
displayOn:transformation:clippingBox:align:with:rule:fillColor:
displayOn:transformation:clippingBox:fixedPoint:
displayOn:transformation:clippingBox:rule:fillColor:
displayOnPort:
displayOnPort:at:rule:
followCursor

  fileIn/Out
  writeOnFileNamed:
writeUncompressedOnFileNamed:

  transforming
  align:with:
scaleBy:
translateBy:

  truncation and round off
  rounded

class methods
  fileIn/Out
  collectionFromFileNamed:
writeCollection:onFileNamed:

instance methods
  accessing top  
 

extent

Answer the point that represents the width and height of the receiver's
bounding box.


 

height

Answer the number that represents the height of the receiver's
bounding box.


 

offset

Answer the amount by which the receiver should be offset when it is
displayed or its position is tested.


 

offset:

Set the amount by which the receiver's position is offset.


 

relativeRectangle

Answer a Rectangle whose top left corner is the receiver's offset position
and whose width and height are the same as the receiver.


 

width

Answer the number that represents the width of the receiver's bounding
box.


  display box access top  
 

boundingBox

Answer the rectangular area that represents the boundaries of the
receiver's space of information.


 

center


 

computeBoundingBox

Answer the rectangular area that represents the boundaries of the
receiver's area for displaying information. This is the primitive for
computing the area if it is not already known.


 

initialExtent

Included here for when a FormView is being opened
as a window. (4@4) covers border widths.


  displaying-Display top  
 

display

Display the receiver on the Display at location 0,0.


 

follow:while:

Move an image around on the Display. Restore the background
continuously without causing flashing. The argument, locationBlock,
supplies each new location, and the argument, durationBlock, supplies
true to continue, and then false to stop.
8/20/96 sw: call follow:while:bitsBehind: to do the real work. Note that th
method
now returns the final bits behind as method value.


 

follow:while:bitsBehind:startingLoc:

Move an image around on the Display. Restore the background continuously without causing flashing. The argument, locationBlock, supplies each new location, and the argument, durationBlock, supplies true to continue or false to stop. This variant takes the bitsBehind as an input argument, and returns the final saved saved bits as method value.


 

isTransparent


 

slideFrom:to:nSteps:

does not display at the first point, but does at the last


 

slideFrom:to:nSteps:delay:

Slide this object across the display over the given number of steps, pausing for the given number of milliseconds after each step.


 

slideFrom:to:nSteps:delay:andStay:

Does not display at the first point, but does at the last.
Moreover, if stayAtEnd is true, it leaves the dragged image at the stopPoint


 

slideWithFirstFrom:to:nSteps:delay:

Slide this object across the display over the given number of steps,
pausing for the given number of milliseconds after each step.


  displaying-generic top  
 

displayAt:

Display the receiver located at aDisplayPoint with default settings for
the displayMedium, rule and halftone.


 

displayOn:

Simple default display in order to see the receiver in the upper left
corner of screen.


 

displayOn:at:

Display the receiver located at aDisplayPoint with default settings for
rule and halftone.


 

displayOn:at:clippingBox:

Display the receiver located at aDisplayPoint with default settings for
rule and halftone. Information to be displayed must be confined to the
area that intersects with clipRectangle.


 

displayOn:at:clippingBox:rule:fillColor:

This is the basic display primitive for graphic display objects. Display
the receiver located at aDisplayPoint with rule, ruleInteger, and mask,
aForm. Information to be displayed must be confined to the area that
intersects with clipRectangle.


 

displayOn:at:rule:

Display the receiver located at aPoint with default setting for the
halftone and clippingBox.


 

displayOn:transformation:clippingBox:

Display primitive for the receiver where a DisplayTransformation is
provided as an argument. Alignment is defaulted to the receiver's
rectangle. Information to be displayed must be confined to the area that
intersects with clipRectangle.


 

displayOn:transformation:clippingBox:align:with:

Display primitive where a DisplayTransformation is provided as an
argument, rule is over and mask is Form black. Information to be
displayed must be confined to the area that intersects with clipRectangle.


 

displayOn:transformation:clippingBox:align:with:rule:fillColor:

Display the receiver where a DisplayTransformation is provided as an
argument, rule is ruleInteger and mask is aForm. Translate by
relativePoint-alignmentPoint. Information to be displayed must be
confined to the area that intersects with clipRectangle.


 

displayOn:transformation:clippingBox:fixedPoint:

Display the receiver where a DisplayTransformation is provided as an
argument, rule is over and mask is Form black. No translation.
Information to be displayed must be confined to the area that intersects
with clipRectangle.


 

displayOn:transformation:clippingBox:rule:fillColor:

Display the receiver where a DisplayTransformation is provided as an
argument, rule is ruleInteger and mask is aForm. No translation.
Information to be displayed must be confined to the area that intersects
with clipRectangle.


 

displayOnPort:


 

displayOnPort:at:rule:


 

followCursor

Just show the Form following the mouse. 6/21/96 tk


  fileIn/Out top  
 

writeOnFileNamed:

Saves the receiver on the file fileName in the format:
fileCode, depth, extent, offset, bits.


 

writeUncompressedOnFileNamed:

Saves the receiver on the file fileName in the format:
fileCode, depth, extent, offset, bits.


  transforming top  
 

align:with:

Translate the receiver's offset such that alignmentPoint aligns with
relativePoint.


 

scaleBy:

Scale the receiver's offset by aPoint.


 

translateBy:

Translate the receiver's offset.


  truncation and round off top  
 

rounded

Convert the offset of the receiver to integer coordinates.


class methods
  fileIn/Out top  
 

collectionFromFileNamed:

Answer a collection of Forms read from the external file
named fileName. The file format is: fileCode, {depth, extent, offset, bits}.


 

writeCollection:onFileNamed:

Saves a collection of Forms on the file fileName in the format:
fileCode, {depth, extent, offset, bits}.