eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'GraphicsMedium':

Home

everywhere
www.exept.de
for:
[back]

Class: GraphicsMedium


Inheritance:

   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

Description:


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)


Instance protocol:

Compatibility-Squeak
o  copyBits: aRectangle from: aForm at: srcOrigin clippingBox: clippingBox rule: rule fillColor: fillColor

o  fill: aRectangle fillColor: aColor
fill the rectangular area specified by aRectangle with the black color

o  fillBlack: aRectangle
fill the rectangular area specified by aRectangle with the black color

o  fillColor: something
fill the receiver with something;
something may be a Form, Color or colorIndex

o  fillWhite: aRectangle
fill the rectangular area specified by aRectangle with the white color

accessing
o  bottomCenter
return the topCenter point

o  bottomLeft
return the bottomLeft point

o  boundingBox

o  center
return the point at the center of the receiver

o  corner
return the corner point i.e. the bottom-right point

o  corner: aPoint
set the corner point i.e. change extent so that corner will be
aPoint while leaving the origin unchanging

o  extent
return the extent i.e. a point with width as x, height as y
coordinate

o  extent: extent
set the extent

o  height
return the height of the receiver

o  height: anInteger
set the height of the receiver

o  left
return the left i.e. x-coordinate of top-left of the receiver

o  leftCenter
return the leftCenter point

o  origin
return the origin i.e. coordinate of top-left of the receiver

o  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.

o  reallyRealized
return true, if the receiver is realized and all containers
are realized.

o  rightCenter
return the leftCenter point

o  setWidth: w height: h
set both width and height - not to be redefined

o  top
return the top i.e. y-coordinate of top-left of the receiver

o  topCenter
return the topCenter point

o  topRight
return the topRight point

o  viewBackground
for protocol compatibility with view; return my background paint color here

o  width
return the width of the receiver

o  width: anInteger
set the width of the receiver

o  width: w height: h
set both width and height of the receiver

copying
o  postCopy
this may not be enough to allow copying of views ...

o  postDeepCopy

filling
o  black
fill the receiver with black

o  clear
clear the receiver with background

o  clearInside
clear the receiver with background - ST-80 compatibility

o  clearRectangle: aRectangle
clear the rectangular area in the receiver to background

o  clearRectangleX: left y: top width: w height: h
clear the rectangular area in the receiver to background

o  clearView
clear the receiver with background

o  fill: something
fill the receiver with something;
something may be a Form, Color or colorIndex

o  invertRectangle: aRectangle
invert a rectangle in the receiver

o  white
fill the receiver with white

initialization
o  initialize
set up some useful default values

o  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)



ST/X 6.1.1; WebServer 1.620 at exept:8081; Thu, 09 Feb 2012 02:42:15 GMT