Back: BLOX.BCanvas-widget protocol Up: BLOX package Forward: BLOX.BCanvasObject class-instance creation   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.7 BLOX.BCanvasObject

Defined in namespace BLOX
Superclass: BLOX.BEventTarget
Category: Graphics-Windows
I am the ultimate ancestor of all items that you can put in a BCanvas. I provide some general methods to my concrete offspring.

1.7.1 BLOX.BCanvasObject class: instance creation  (class)
1.7.2 BLOX.BCanvasObject: accessing  (instance)
1.7.3 BLOX.BCanvasObject: widget protocol  (instance)


1.7.1 BLOX.BCanvasObject class: instance creation

new
This method should not be called for instances of this class.

new: parentCanvas
Answer a new instance of the receiver, displayed into the given parentCanvas.


1.7.2 BLOX.BCanvasObject: accessing

blox
Answer the parent canvas of the receiver

boundingBox
Answer a Rectangle enclosing all of the receiver

color
Answer the color to be used to fill this item's area.

color: color
Set the color to be used to fill this item's area.

copyInto: newCanvas
Answer a new BCanvasObject identical to this but displayed into another canvas, newCanvas. The new instance is not created at the time it is returned.

copyObject
Answer a new BCanvasObject identical to this. Unlike #copy, which merely creates a new Smalltalk object with the same data and referring to the same canvas item, the object created with #copyObject is physically distinct from the original. The new instance is not created at the time it is returned.

createCopy
Answer a new BCanvasObject identical to this. Unlike #copy, which merely creates a new Smalltalk object with the same data and referring to the same canvas item, the object created with #copyObject is physically distinct from the original. The new instance has already been created at the time it is returned.

createCopyInto: newCanvas
Answer a new BCanvasObject identical to this but displayed into another canvas, newCanvas. The new instance has already been created at the time it is returned.

deepCopy
It does not make sense to make a copy, because it would make data inconsistent across different objects; so answer the receiver

grayOut
Apply a 50% gray stippling pattern to the object

shallowCopy
It does not make sense to make a copy, because it would make data inconsistent across different objects; so answer the receiver


1.7.3 BLOX.BCanvasObject: widget protocol

create
If the object has not been created yet and has been initialized correctly, insert it for real in the parent canvas

created
Answer whether the object is just a placeholder or has already been inserted for real in the parent canvas

lower
Move the item to the lowest position in the display list. Child widgets always obscure other item types, and the stacking order of window items is determined by sending methods to the widget object directly.

raise
Move the item to the highest position in the display list. Child widgets always obscure other item types, and the stacking order of window items is determined by sending methods to the widget object directly.

redraw
Force the object to be displayed in the parent canvas, creating it if it has not been inserted for real in the parent, and refresh its position if it has changed.

remove
Remove the object from the canvas

show
Ensure that the object is visible in the center of the canvas, scrolling it if necessary.



Back: BLOX.BCanvasObject-accessing Up: BLOX.BCanvasObject Forward: BLOX.BCheckMenuItem   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html