eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'GraphicsAttributes':

Home

everywhere
www.exept.de
for:
[back]

Class: GraphicsAttributes


Inheritance:

   Object
   |
   +--GraphicsAttributes

Package:
stx:libview
Category:
Graphics-Support
Version:
rev: 1.4 date: 1995-11-11 15:51:01
user: cg
file: GraphicsAttributes.st directory: libview
module: stx stc-classLibrary: libview

Description:


instances keep multiple graphics attributes as used in a graphicsContext.
They can be used when multiple attributes are to be set.
This class is (currently) not used by the system, but has been added
to make porting of existing ST-80 applications easier.

Instance variables:

    paint           <Color>         the paint to be used for drawing
    font            <Font>          the font to be used for drawing
    lineStyle       <Symbol>        the lineStyle (i.e. #solid, #dashed, #doubleDashed)
    lineWidth       <SmallInteger>  the lineWidth (device dependent, usually pixels)
    joinStyle       <Symbol>        the style in which lines (in polygons)
                                    are joined (i.e. #miter, #bevel, #round)
    capStyle        <Symbol>        the style in which the last point of a line is drawn
                                    (i.e. #notLast, #butt, #round, #projecting)
    maskOrigin      <Point>         the origin of the mask relative to
                                    the drawables origin

CAVEAT: the maskOrigin is called phase in ST-80


Instance protocol:

accessing
o  capStyle
return the cap-style for line-drawing

o  capStyle: aStyleSymbol
set the cap-style for line-drawing;
possible styles are: #notLast, #butt, #round, #projecting

o  font
return the drawing font

o  font: aFont
set the drawing font

o  joinStyle
return the join-style for polygon-drawing

o  joinStyle: aStyleSymbol
set the join-style of lines in polygon-drawing;
possible styles are: #miter, #bevel, #round

o  lineStyle
return the line-drawing-style

o  lineStyle: aStyleSymbol
set the line-drawing-style;
possible styles are: #solid, #dashed, #doubleDashed

o  lineWidth
return the drawing linewidth

o  lineWidth: aNumber
set the line drawing width in pixels

o  maskOrigin: aPoint
set the origin within the mask (used to draw with patterns).
This is an alias for ST-80's #phase

o  maskOriginX: x y: y
set the origin within the mask (used to draw with patterns).

o  paint
return the current paint drawing color

o  paint: aColor
set the drawing painting color

o  phase
return the origin within the mask (used to draw with patterns).
This is an alias for ST/X's #maskOrigin

o  phase: aPoint
set the origin within the mask (used to draw with patterns).
This is an alias for ST/X's #maskOrigin:

installing
o  installOn: aGC



ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 09:17:10 GMT