author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 16:28:41 +0100 | |
changeset 530 | 07d0bce293c9 |
parent 399 | c15cfaf3ed4d |
child 610 | cadd76cb5fb0 |
permissions | -rw-r--r-- |
356 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
Object subclass:#Geometric |
|
14 |
instanceVariableNames:'' |
|
15 |
classVariableNames:'' |
|
16 |
poolDictionaries:'' |
|
17 |
category:'Graphics-Geometry' |
|
18 |
! |
|
19 |
||
20 |
!Geometric class methodsFor:'documentation'! |
|
21 |
||
22 |
copyright |
|
23 |
" |
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
25 |
All Rights Reserved |
|
26 |
||
27 |
This software is furnished under a license and may be used |
|
28 |
only in accordance with the terms of that license and with the |
|
29 |
inclusion of the above copyright notice. This software may not |
|
30 |
be provided or otherwise made available to, or used by, any |
|
31 |
other person. No title to or ownership of the software is |
|
32 |
hereby transferred. |
|
33 |
" |
|
34 |
! |
|
35 |
||
36 |
version |
|
530
07d0bce293c9
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
399
diff
changeset
|
37 |
^ '$Header: /cvs/stx/stx/libbasic/Geometric.st,v 1.5 1995-11-11 15:23:24 cg Exp $' |
356 | 38 |
! |
39 |
||
40 |
documentation |
|
41 |
" |
|
42 |
Abstract superclass for geometric figures. |
|
43 |
Concrete classes are (currently) Rectangle, Polygon and the classes |
|
44 |
found in goodies/shape. |
|
45 |
||
46 |
These are not graphical objects, but pure mathematical ones. |
|
47 |
I.e. instances do not carry graphics attributes such as color, lineWidth etc. |
|
48 |
Use instances of (subclasses) of DisplayObject or (the soon to be |
|
49 |
implemented GraphicsAttributesWrapper. |
|
50 |
||
51 |
Notice: ST/X does not use Geometric instances for drawing (yet). |
|
399 | 52 |
This class exists mainly to provide a superclass when ST-80 geometry classes are to be filed in. |
356 | 53 |
" |
54 |
! ! |
|
55 |
||
56 |
!Geometric methodsFor:'displaying'! |
|
57 |
||
58 |
displayOn:aGC |
|
59 |
"display myself on a graphicsContext; the current graphics |
|
60 |
attributes are used. The default here is to display the outline." |
|
61 |
||
62 |
^ self displayStrokedOn:aGC |
|
63 |
! |
|
64 |
||
65 |
displayStrokedOn:aGC |
|
66 |
"display my outline on a graphicsContext; the current graphics |
|
67 |
attributes are usedSince we do not know how to do it, nothing is |
|
68 |
drawn here." |
|
69 |
||
70 |
"/ could be: |
|
71 |
"/ ^ self subclassResponsibility |
|
72 |
||
73 |
^ self |
|
74 |
! |
|
75 |
||
76 |
displayFilledOn:aGC |
|
77 |
"display myself filled on a graphicsContext; the current graphics |
|
78 |
attributes are used. Since we do not know how to do it, nothing is |
|
79 |
drawn here." |
|
80 |
||
81 |
"/ could be: |
|
82 |
"/ ^ self subclassResponsibility |
|
83 |
||
84 |
^ self |
|
85 |
! ! |
|
86 |