|
|
Class: GraphicsMedium
Object
|
+--GraphicsContext
|
+--DeviceGraphicsContext
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--Form
|
+--PrinterContext
- Package:
- stx:libview
- Category:
- Graphics-Support
- Version:
- rev:
1.19
date: 2009/08/07 10:52:03
- user: sr
- file: GraphicsMedium.st directory: libview
- module: stx stc-classLibrary: libview
- Author:
- Claus Gittinger
this is an abstract superclass for all kinds of drawables which
have a physical representation (i.e. have an extent). Dont use messages
from here - it will vanish soon.
[Instance variables:]
width <SmallInteger> the width (device dependent, usually pixels or inches)
height <SmallInteger> the height (device dependent, usually pixels or inches)
Compatibility-Squeak
-
copyBits: aRectangle from: aForm at: srcOrigin clippingBox: clippingBox rule: rule fillColor: fillColor
-
-
fill: aRectangle fillColor: aColor
-
fill the rectangular area specified by aRectangle with the black color
-
fillBlack: aRectangle
-
fill the rectangular area specified by aRectangle with the black color
-
fillColor: something
-
fill the receiver with something;
something may be a Form, Color or colorIndex
-
fillWhite: aRectangle
-
fill the rectangular area specified by aRectangle with the white color
accessing
-
bottomCenter
-
return the topCenter point
-
bottomLeft
-
return the bottomLeft point
-
boundingBox
-
-
center
-
return the point at the center of the receiver
-
corner
-
return the corner point i.e. the bottom-right point
-
corner: aPoint
-
set the corner point i.e. change extent so that corner will be
aPoint while leaving the origin unchanging
-
extent
-
return the extent i.e. a point with width as x, height as y
coordinate
-
extent: extent
-
set the extent
-
height
-
return the height of the receiver
-
height: anInteger
-
set the height of the receiver
-
left
-
return the left i.e. x-coordinate of top-left of the receiver
-
leftCenter
-
return the leftCenter point
-
origin
-
return the origin i.e. coordinate of top-left of the receiver
-
realized
-
return true, if the receiver is realized.
The receiver may still be unmapped, if the container is unrealized.
Use reallyRealized to make certain that I am really mapped.
-
reallyRealized
-
return true, if the receiver is realized and all containers
are realized.
-
rightCenter
-
return the leftCenter point
-
setWidth: w height: h
-
set both width and height - not to be redefined
-
top
-
return the top i.e. y-coordinate of top-left of the receiver
-
topCenter
-
return the topCenter point
-
topRight
-
return the topRight point
-
viewBackground
-
for protocol compatibility with view; return my background paint color here
-
width
-
return the width of the receiver
-
width: anInteger
-
set the width of the receiver
-
width: w height: h
-
set both width and height of the receiver
copying
-
postCopy
-
this may not be enough to allow copying of views ...
-
postDeepCopy
-
filling
-
black
-
fill the receiver with black
-
clear
-
clear the receiver with background
-
clearInside
-
clear the receiver with background - ST-80 compatibility
-
clearRectangle: aRectangle
-
clear the rectangular area in the receiver to background
-
clearRectangleX: left y: top width: w height: h
-
clear the rectangular area in the receiver to background
-
clearView
-
clear the receiver with background
-
fill: something
-
fill the receiver with something;
something may be a Form, Color or colorIndex
-
invertRectangle: aRectangle
-
invert a rectangle in the receiver
-
white
-
fill the receiver with white
initialization
-
initialize
-
set up some useful default values
-
setRealized: aBoolean
-
low level special interface to manipulate the realized state.
Non-public interface, only to be used by experts.
(use to pretend a view has been realized - for example with alien views)
|