-
baseNameString [private]
^String new
-
bounds: newBounds [bounds accessing]
displayBox := newBounds
-
defaultImage [defaults]
| aPixmap anImage graphicsContext |
JunControlUtility
assert: [aPixmap := Pixmap extent: self class defaultThumbnailExtent * 2]
do:
[graphicsContext := aPixmap graphicsContext.
graphicsContext
paint: self class defaultEmptyColor;
displayRectangle: aPixmap bounds.
anImage := aPixmap asImage]
ensure: [aPixmap close].
^anImage
-
defaultThumbnail [defaults]
| aPixmap anImage graphicsContext |
JunControlUtility
assert: [aPixmap := Pixmap extent: self class defaultThumbnailExtent]
do:
[graphicsContext := aPixmap graphicsContext.
graphicsContext
paint: self class defaultEmptyColor;
displayRectangle: aPixmap bounds.
anImage := aPixmap asImage]
ensure: [aPixmap close].
^anImage
-
displayOn: graphicsContext [displaying]
(self bounds intersects: graphicsContext clippingBounds)
ifTrue:
[self thumbnail ifNil:
[graphicsContext paint: self class defaultEmptyColor.
graphicsContext displayRectangle: self bounds]
ifNotNil: [:it | it displayOn: graphicsContext at: self bounds origin]]
-
extent [accessing]
^self thumbnail ifNil: [self class defaultThumbnailExtent]
ifNotNil: [:it | it extent]
-
filename [accessing]
^nil
-
filename: ignore [accessing]
^self
-
height [accessing]
^self extent y
-
image [accessing]
^nil
-
initialize [initialize-release]
super initialize.
displayBox := nil
-
isNotVoid [testing]
^self isVoid not
-
isVoid [testing]
^true
-
moleculeObject [accessing]
^nil
-
postCopy [copying]
super postCopy.
displayBox := displayBox copy
-
preferredBounds [bounds accessing]
displayBox ifNil: [displayBox := Point zero extent: Point zero].
^displayBox
-
printOn: aStream [printing]
self toLispList printOn: aStream
-
thumbnail [accessing]
^nil
-
thumbnail: ignore [accessing]
^self
-
toLispList [lisp support]
| aList |
aList := JunLispCons cell.
aList head: self class name.
^aList
-
width [accessing]
^self extent x