author | Claus Gittinger <cg@exept.de> |
Thu, 09 Jun 2016 17:01:18 +0200 | |
changeset 3918 | c565bdb0c8c4 |
parent 3785 | 67f47b59ad54 |
child 4240 | 8a3ead2b3d72 |
permissions | -rw-r--r-- |
318 | 1 |
" |
2 |
COPYRIGHT (c) 1996 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 |
" |
|
979 | 12 |
"{ Package: 'stx:libbasic2' }" |
13 |
||
3785 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
318 | 16 |
LineSegment subclass:#Arrow |
728
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
17 |
instanceVariableNames:'arrowHeadPosition arrowHeadLength arrowHeadAngle arrowHeadClosed' |
318 | 18 |
classVariableNames:'DefaultLength DefaultAngle' |
19 |
poolDictionaries:'' |
|
1303 | 20 |
category:'Graphics-Geometry-Objects' |
318 | 21 |
! |
22 |
||
23 |
!Arrow class methodsFor:'documentation'! |
|
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 1996 by Claus Gittinger |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
39 |
documentation |
|
40 |
" |
|
41 |
Arrows are just what the name says - a directed LineSegment, which |
|
42 |
draws itself with an arrowHead. The position of the arrowhead can |
|
43 |
be set to be anywhere along the lineSegement (default is at the end). |
|
44 |
||
323 | 45 |
Arrows can be drawn stroked or filled - when filled, only the arrowHead |
46 |
is filled. |
|
47 |
||
318 | 48 |
[author:] |
49 |
Claus Gittinger |
|
50 |
||
51 |
[see also:] |
|
320 | 52 |
Rectangle Polygon EllipticalArc Circle Spline Curve Point |
331 | 53 |
LineSegment ArrowedSpline |
318 | 54 |
GraphicsContext |
331 | 55 |
StrokingWrapper FillingWrapper |
318 | 56 |
" |
57 |
! |
|
58 |
||
59 |
examples |
|
60 |
" |
|
61 |
low level use: |
|
62 |
[exBegin] |
|
63 |
|v a| |
|
64 |
||
65 |
v := (View extent:100@100) openAndWait. |
|
66 |
||
67 |
a := Arrow from:10@10 to:90@90. |
|
68 |
||
69 |
v paint:Color red. |
|
70 |
a displayStrokedOn:v. |
|
71 |
||
72 |
a start:90@10 end:10@90. |
|
73 |
v paint:Color blue. |
|
74 |
a displayStrokedOn:v. |
|
75 |
[exEnd] |
|
76 |
||
728
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
77 |
with closed arrowHead: |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
78 |
[exBegin] |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
79 |
|v a| |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
80 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
81 |
v := (View extent:100@100) openAndWait. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
82 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
83 |
a := Arrow from:10@10 to:90@90. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
84 |
a arrowHeadClosed:true. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
85 |
v paint:Color red. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
86 |
a displayStrokedOn:v. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
87 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
88 |
a start:90@10 end:10@90. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
89 |
v paint:Color blue. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
90 |
a displayStrokedOn:v. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
91 |
[exEnd] |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
92 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
93 |
with longer closed arrowHead: |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
94 |
[exBegin] |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
95 |
|v a| |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
96 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
97 |
v := (View extent:100@100) openAndWait. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
98 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
99 |
a := Arrow from:10@10 to:90@90. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
100 |
a arrowHeadClosed:true. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
101 |
a arrowHeadLength:16. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
102 |
v paint:Color red. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
103 |
a displayStrokedOn:v. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
104 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
105 |
a start:90@10 end:10@90. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
106 |
v paint:Color blue. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
107 |
a displayStrokedOn:v. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
108 |
[exEnd] |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
109 |
|
325 | 110 |
as component (automatic redraw): |
111 |
[exBegin] |
|
112 |
|v a| |
|
113 |
||
114 |
v := View extent:100@100. |
|
115 |
||
116 |
a := Arrow from:50@50 to:10@10. |
|
117 |
v addComponent:(StrokingWrapper on:a). |
|
118 |
||
119 |
a := Arrow from:50@50 to:90@10. |
|
120 |
v addComponent:(StrokingWrapper on:a). |
|
121 |
||
122 |
a := Arrow from:50@50 to:10@90. |
|
123 |
v addComponent:(StrokingWrapper on:a). |
|
124 |
||
125 |
a := Arrow from:50@50 to:90@90. |
|
126 |
v addComponent:(StrokingWrapper on:a). |
|
127 |
||
128 |
v open |
|
129 |
[exEnd] |
|
130 |
||
131 |
as component filled vs. stroked: |
|
323 | 132 |
[exBegin] |
133 |
|v a| |
|
134 |
||
135 |
v := View extent:100@100. |
|
136 |
||
137 |
a := Arrow from:10@10 to:90@10. |
|
138 |
v addComponent:(StrokingWrapper on:a). |
|
139 |
||
140 |
a := Arrow from:90@20 to:10@20. |
|
141 |
v addComponent:(StrokingWrapper on:a). |
|
142 |
||
143 |
a := Arrow from:10@50 to:90@50. |
|
144 |
v addComponent:(FillingWrapper on:a). |
|
145 |
||
146 |
a := Arrow from:90@60 to:10@60. |
|
147 |
v addComponent:(FillingWrapper on:a). |
|
148 |
||
149 |
v open |
|
150 |
[exEnd] |
|
151 |
||
324 | 152 |
as component (varying lineStyles): |
318 | 153 |
[exBegin] |
154 |
|v a| |
|
155 |
||
156 |
v := View extent:100@100. |
|
157 |
||
158 |
a := Arrow from:10@10 to:90@90. |
|
159 |
v addComponent:(StrokingWrapper on:a). |
|
160 |
||
161 |
a := Arrow from:10@10 to:90@10. |
|
162 |
a arrowHeadPosition:0.5. |
|
163 |
v addComponent:(StrokingWrapper on:a). |
|
164 |
||
165 |
a := Arrow from:90@10 to:10@90. |
|
166 |
v addComponent:((StrokingWrapper on:a) foregroundColor:(Color red)). |
|
167 |
||
168 |
a := Arrow from:10@50 to:90@50. |
|
169 |
a arrowHeadLength:20; arrowHeadAngle:130. |
|
170 |
||
171 |
v addComponent:((StrokingWrapper on:a) |
|
172 |
lineWidth:5; |
|
173 |
foregroundColor:(Color red)). |
|
174 |
||
175 |
a := Arrow from:50@90 to:50@10. |
|
176 |
a arrowHeadLength:10; arrowHeadAngle:170. |
|
177 |
||
178 |
v addComponent:((StrokingWrapper on:a) |
|
179 |
lineWidth:2; |
|
180 |
lineStyle:#dashed; |
|
181 |
foregroundColor:(Color red); |
|
182 |
backgroundColor:(Color yellow)). |
|
183 |
||
184 |
v open. |
|
185 |
[exEnd] |
|
321 | 186 |
varying the position: |
187 |
[exBegin] |
|
188 |
|v a| |
|
189 |
||
323 | 190 |
v := View extent:200@100. |
321 | 191 |
|
323 | 192 |
a := Arrow from:10@10 to:90@10. |
321 | 193 |
a arrowHeadPosition:0. |
194 |
v addComponent:(StrokingWrapper on:a). |
|
195 |
||
196 |
a := Arrow from:10@30 to:90@30. |
|
197 |
a arrowHeadPosition:(1/3). |
|
198 |
v addComponent:(StrokingWrapper on:a). |
|
199 |
||
200 |
a := Arrow from:10@40 to:90@40. |
|
201 |
a arrowHeadPosition:0.5. |
|
202 |
v addComponent:(StrokingWrapper on:a). |
|
203 |
||
204 |
a := Arrow from:10@50 to:90@50. |
|
205 |
a arrowHeadPosition:(2/3). |
|
206 |
v addComponent:(StrokingWrapper on:a). |
|
207 |
||
323 | 208 |
a := Arrow from:10@70 to:90@70. |
209 |
v addComponent:(StrokingWrapper on:a). |
|
210 |
||
211 |
||
212 |
a := Arrow from:100@10 to:150@90. |
|
213 |
a arrowHeadPosition:(1/3). |
|
326 | 214 |
v addComponent:(FillingWrapper on:a). |
323 | 215 |
|
216 |
a := Arrow from:110@10 to:160@90. |
|
217 |
a arrowHeadPosition:(2/3). |
|
326 | 218 |
v addComponent:(FillingWrapper on:a). |
323 | 219 |
|
220 |
a := Arrow from:120@10 to:170@90. |
|
326 | 221 |
v addComponent:(FillingWrapper on:a). |
321 | 222 |
|
223 |
v open. |
|
224 |
[exEnd] |
|
318 | 225 |
" |
226 |
! ! |
|
227 |
||
228 |
!Arrow class methodsFor:'initialization'! |
|
229 |
||
230 |
initialize |
|
231 |
DefaultAngle := 150. |
|
232 |
DefaultLength := 8 |
|
233 |
||
234 |
" |
|
235 |
Arrow initialize |
|
236 |
" |
|
237 |
! ! |
|
238 |
||
2034 | 239 |
!Arrow class methodsFor:'accessing-defaults'! |
321 | 240 |
|
241 |
defaultAngle |
|
242 |
^ DefaultAngle |
|
243 |
! |
|
244 |
||
245 |
defaultLength |
|
246 |
^ DefaultLength |
|
247 |
! ! |
|
248 |
||
1930
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
249 |
!Arrow class methodsFor:'displaying'! |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
250 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
251 |
arrowPointsFor:sP and:eP position:arrowHeadPosition length:arrowHeadLength angle:arrowHeadAngle |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
252 |
"return the arrowPoints for an arrow from sP to eP in a collection" |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
253 |
|
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
254 |
^ self |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
255 |
arrowPointsFor:sP and:eP |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
256 |
position:arrowHeadPosition offset:nil |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
257 |
length:arrowHeadLength angle:arrowHeadAngle |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
258 |
|
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
259 |
"Modified: / 14-03-2011 / 10:57:13 / cg" |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
260 |
! |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
261 |
|
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
262 |
arrowPointsFor:sP and:eP position:arrowHeadPosition offset:arrowHeadOffset length:arrowHeadLength angle:arrowHeadAngle |
2549
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
263 |
"return the arrowPoints for an arrow from sP to eP as a collection of points (for a polygon-fill)" |
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
264 |
|
1930
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
265 |
|arrowHeadPoint len pos angle grad x1 y1 x2 y2 |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
266 |
atn p1 p2 deriv dX dY| |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
267 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
268 |
arrowHeadPosition isNil ifTrue:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
269 |
pos := 1 |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
270 |
] ifFalse:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
271 |
pos := arrowHeadPosition max:0.0001. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
272 |
]. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
273 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
274 |
arrowHeadPoint := sP + ((eP - sP) * pos). |
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
275 |
arrowHeadOffset notNil ifTrue:[ |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
276 |
(eP x = sP x) ifTrue:[ |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
277 |
"/ vertical |
2549
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
278 |
(eP y > sP y) ifTrue:[ |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
279 |
arrowHeadPoint := arrowHeadPoint + (0 @ arrowHeadOffset) |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
280 |
] ifFalse:[ |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
281 |
arrowHeadPoint := arrowHeadPoint - (0 @ arrowHeadOffset) |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
282 |
]. |
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
283 |
] ifFalse:[ |
2549
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
284 |
(eP y = sP y) ifTrue:[ |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
285 |
"/ horizontal |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
286 |
(eP x > sP x) ifTrue:[ |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
287 |
arrowHeadPoint := arrowHeadPoint + (arrowHeadOffset @ 0) |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
288 |
] ifFalse:[ |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
289 |
arrowHeadPoint := arrowHeadPoint - (arrowHeadOffset @ 0) |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
290 |
]. |
ccbf8e948229
changed: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2548
diff
changeset
|
291 |
]. |
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
292 |
]. |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
293 |
]. |
1930
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
294 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
295 |
len := arrowHeadLength. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
296 |
len isNil ifTrue:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
297 |
len := DefaultLength |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
298 |
]. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
299 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
300 |
angle := arrowHeadAngle. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
301 |
angle isNil ifTrue:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
302 |
angle := DefaultAngle |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
303 |
]. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
304 |
angle := angle degreesToRadians. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
305 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
306 |
deriv := arrowHeadPoint - sP. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
307 |
dX := deriv x. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
308 |
dY := deriv y. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
309 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
310 |
dX = 0 ifTrue: [ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
311 |
grad := 99999999.9 |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
312 |
] ifFalse: [ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
313 |
grad := dY / dX |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
314 |
]. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
315 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
316 |
atn := grad arcTan. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
317 |
x1 := len * (angle - atn) cos. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
318 |
y1 := len * (angle - atn) sin. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
319 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
320 |
x2 := len * (angle + atn) cos. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
321 |
y2 := len * (angle + atn) sin. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
322 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
323 |
dX = 0 ifTrue:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
324 |
dY > 0 ifTrue:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
325 |
p1 := (dX + x1) @ (dY - y1). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
326 |
p2 := (dX + x2) @ (dY + y2). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
327 |
] ifFalse:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
328 |
p1 := (dX - x1) @ (dY + y1). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
329 |
p2 := (dX - x2) @ (dY - y2). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
330 |
] |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
331 |
] ifFalse:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
332 |
dX > 0 ifTrue:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
333 |
p1 := (dX + x1) @ (dY - y1). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
334 |
p2 := (dX + x2) @ (dY + y2). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
335 |
] ifFalse:[ |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
336 |
p1 := (dX - x1) @ (dY + y1). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
337 |
p2 := (dX - x2) @ (dY - y2). |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
338 |
] |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
339 |
]. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
340 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
341 |
p1 := sP + p1. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
342 |
p2 := sP + p2. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
343 |
|
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
344 |
^ Array with:p1 with:arrowHeadPoint with:p2. |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
345 |
|
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
346 |
"Created: / 14-03-2011 / 10:55:22 / cg" |
1930
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
347 |
! ! |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
348 |
|
318 | 349 |
!Arrow methodsFor:'accessing'! |
350 |
||
351 |
arrowHeadAngle |
|
352 |
"return the arrowHeads angle, in degrees. |
|
353 |
The default is 150 degrees" |
|
354 |
||
355 |
arrowHeadAngle isNil ifTrue:[^ DefaultAngle]. |
|
356 |
^ arrowHeadAngle |
|
357 |
||
358 |
"Modified: 12.5.1996 / 22:48:29 / cg" |
|
359 |
"Created: 12.5.1996 / 22:56:36 / cg" |
|
360 |
! |
|
361 |
||
362 |
arrowHeadAngle:angleInDegrees |
|
363 |
"set the arrowHeads angle, in degrees. |
|
364 |
The default is 150 degrees" |
|
365 |
||
366 |
arrowHeadAngle := angleInDegrees |
|
367 |
||
368 |
"Modified: 12.5.1996 / 22:48:29 / cg" |
|
369 |
"Created: 12.5.1996 / 22:57:47 / cg" |
|
370 |
! |
|
371 |
||
728
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
372 |
arrowHeadClosed |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
373 |
"return the arrowHeadClosed flag; if true, the arrowHead is drawn |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
374 |
as a closed polygon; if false (the default), the arrowHead is drawn open. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
375 |
This only affects non-filled drawing." |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
376 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
377 |
^ arrowHeadClosed ? false |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
378 |
! |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
379 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
380 |
arrowHeadClosed:aBoolean |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
381 |
"set the arrowHeadClosed flag; if true, the arrowHead is drawn |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
382 |
as a closed polygon; if false (the default), the arrowHead is drawn open. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
383 |
This only affects non-filled drawing." |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
384 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
385 |
|
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
386 |
arrowHeadClosed := aBoolean. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
387 |
! |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
388 |
|
318 | 389 |
arrowHeadLength |
390 |
"return the arrowHeads length, in pixels. |
|
391 |
The default is 8 pixels" |
|
392 |
||
393 |
arrowHeadPosition isNil ifTrue:[^ DefaultLength]. |
|
394 |
^ arrowHeadLength |
|
395 |
||
396 |
"Created: 12.5.1996 / 22:47:32 / cg" |
|
397 |
"Modified: 12.5.1996 / 22:57:27 / cg" |
|
398 |
! |
|
399 |
||
400 |
arrowHeadLength:pixels |
|
401 |
"set the arrowHeads length, in pixels. |
|
402 |
The default is 8 pixels" |
|
403 |
||
404 |
arrowHeadLength := pixels |
|
405 |
||
406 |
"Created: 12.5.1996 / 22:47:48 / cg" |
|
407 |
"Modified: 12.5.1996 / 23:01:20 / cg" |
|
408 |
! |
|
409 |
||
410 |
arrowHeadPosition |
|
411 |
"return the arrowHeads position, as a fraction of the overall length; |
|
412 |
0 is at the beginning, 1 is at the end, 0.5 is in the center." |
|
413 |
||
414 |
arrowHeadPosition isNil ifTrue:[^ 1]. |
|
415 |
^ arrowHeadPosition |
|
416 |
||
417 |
"Created: 12.5.1996 / 22:46:21 / cg" |
|
418 |
"Modified: 12.5.1996 / 22:57:55 / cg" |
|
419 |
! |
|
420 |
||
421 |
arrowHeadPosition:aFractionOfTheLinesLength |
|
422 |
"set the arrowHeads position, as a fraction of the overall length; |
|
423 |
0 is at the beginning, 1 is at the end, 0.5 is in the center." |
|
424 |
||
425 |
arrowHeadPosition := aFractionOfTheLinesLength |
|
426 |
||
427 |
"Created: 12.5.1996 / 22:46:54 / cg" |
|
428 |
"Modified: 12.5.1996 / 23:01:09 / cg" |
|
429 |
! ! |
|
430 |
||
431 |
!Arrow methodsFor:'displaying'! |
|
432 |
||
729 | 433 |
arrowPointsFor:sP and:eP |
1930
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
434 |
^ self class |
935b2870be2e
arrow points reusable (class protocol)
Claus Gittinger <cg@exept.de>
parents:
1626
diff
changeset
|
435 |
arrowPointsFor:sP and:eP |
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
436 |
position:arrowHeadPosition offset:nil |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
437 |
length:arrowHeadLength angle:arrowHeadAngle |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
438 |
|
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
439 |
"Modified: / 14-03-2011 / 10:56:17 / cg" |
354 | 440 |
! |
441 |
||
387 | 442 |
displayFilledOn:aGC |
443 |
"display the receiver in the graphicsContext, aGC" |
|
444 |
||
445 |
self displayOn:aGC filled:true |
|
446 |
||
979 | 447 |
" |
448 |
|v| |
|
449 |
||
450 |
v := View new openAndWait. |
|
451 |
||
452 |
(Arrow from:10@10 to:50@50) displayFilledOn:v |
|
453 |
" |
|
454 |
||
387 | 455 |
"Created: 12.5.1996 / 23:58:42 / cg" |
456 |
"Modified: 4.6.1996 / 18:25:11 / cg" |
|
457 |
! |
|
458 |
||
459 |
displayOn:aGC filled:filled |
|
3785 | 460 |
"display the receiver's arrow in the graphicsContext, aGC" |
354 | 461 |
|
3785 | 462 |
|arrowHeadPoint savedLineStyle p1 p2 arrowPoints middle oldCap| |
354 | 463 |
|
464 |
savedLineStyle := aGC lineStyle. |
|
465 |
aGC lineStyle:#solid. |
|
466 |
||
1626
8a0e7e7151b9
do not round here (transformation could be nonNil)
Claus Gittinger <cg@exept.de>
parents:
1303
diff
changeset
|
467 |
arrowPoints := self arrowPointsFor:startPoint and:endPoint. |
354 | 468 |
|
1626
8a0e7e7151b9
do not round here (transformation could be nonNil)
Claus Gittinger <cg@exept.de>
parents:
1303
diff
changeset
|
469 |
p1 := arrowPoints at:1. |
8a0e7e7151b9
do not round here (transformation could be nonNil)
Claus Gittinger <cg@exept.de>
parents:
1303
diff
changeset
|
470 |
arrowHeadPoint := arrowPoints at:2. |
8a0e7e7151b9
do not round here (transformation could be nonNil)
Claus Gittinger <cg@exept.de>
parents:
1303
diff
changeset
|
471 |
p2 := arrowPoints at:3. |
354 | 472 |
|
323 | 473 |
filled ifFalse:[ |
728
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
474 |
arrowHeadClosed == true ifTrue:[ |
1626
8a0e7e7151b9
do not round here (transformation could be nonNil)
Claus Gittinger <cg@exept.de>
parents:
1303
diff
changeset
|
475 |
middle := ((p1 + p2) / 2). |
729 | 476 |
aGC displayLineFrom:startPoint to:middle. |
728
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
477 |
aGC displayLineFrom:arrowHeadPoint to:p1. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
478 |
aGC displayLineFrom:arrowHeadPoint to:p2. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
479 |
aGC displayLineFrom:p1 to:p2. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
480 |
] ifFalse:[ |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
481 |
aGC displayLineFrom:startPoint to:endPoint. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
482 |
aGC displayLineFrom:arrowHeadPoint to:p1. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
483 |
aGC displayLineFrom:arrowHeadPoint to:p2. |
c7a227ec2897
added optional closed arrowHead.
Claus Gittinger <cg@exept.de>
parents:
490
diff
changeset
|
484 |
] |
323 | 485 |
] ifTrue:[ |
1626
8a0e7e7151b9
do not round here (transformation could be nonNil)
Claus Gittinger <cg@exept.de>
parents:
1303
diff
changeset
|
486 |
middle := ((p1 + p2) / 2). |
455
9789991dd799
do not draw the line in the filled part
Claus Gittinger <cg@exept.de>
parents:
446
diff
changeset
|
487 |
oldCap := aGC capStyle. |
9789991dd799
do not draw the line in the filled part
Claus Gittinger <cg@exept.de>
parents:
446
diff
changeset
|
488 |
aGC capStyle:#notLast. |
9789991dd799
do not draw the line in the filled part
Claus Gittinger <cg@exept.de>
parents:
446
diff
changeset
|
489 |
aGC displayLineFrom:startPoint to:middle. |
323 | 490 |
aGC fillPolygon:(Array with:p1 with:arrowHeadPoint with:p2). |
455
9789991dd799
do not draw the line in the filled part
Claus Gittinger <cg@exept.de>
parents:
446
diff
changeset
|
491 |
aGC capStyle:oldCap. |
323 | 492 |
]. |
318 | 493 |
|
494 |
aGC lineStyle:savedLineStyle. |
|
495 |
||
496 |
" |
|
497 |
|v| |
|
498 |
||
499 |
v := View new openAndWait. |
|
500 |
||
501 |
(Arrow from:10@10 to:50@50) displayStrokedOn:v |
|
502 |
" |
|
503 |
||
387 | 504 |
"Modified: 4.6.1996 / 18:24:53 / cg" |
505 |
"Created: 4.6.1996 / 18:25:15 / cg" |
|
323 | 506 |
! |
507 |
||
508 |
displayStrokedOn:aGC |
|
509 |
"display the receiver in the graphicsContext, aGC" |
|
510 |
||
387 | 511 |
self displayOn:aGC filled:false |
323 | 512 |
|
979 | 513 |
" |
514 |
|v| |
|
515 |
||
516 |
v := View new openAndWait. |
|
517 |
||
518 |
(Arrow from:10@10 to:50@50) displayStrokedOn:v |
|
519 |
" |
|
520 |
||
387 | 521 |
"Modified: 4.6.1996 / 18:25:07 / cg" |
318 | 522 |
! ! |
523 |
||
357 | 524 |
!Arrow methodsFor:'queries'! |
525 |
||
490
ef43c7a69346
added dummy Scale & InverseScale classVars.
Claus Gittinger <cg@exept.de>
parents:
455
diff
changeset
|
526 |
computeBounds |
357 | 527 |
"return the smallest enclosing rectangle" |
528 |
||
358 | 529 |
|x y minX maxX minY maxY| |
357 | 530 |
|
531 |
minX := maxX := startPoint x. |
|
532 |
x := endPoint x. |
|
533 |
minX := minX min:x. |
|
534 |
maxX := maxX max:x. |
|
535 |
||
536 |
minY := maxY := startPoint y. |
|
537 |
y := endPoint y. |
|
538 |
minY := minY min:y. |
|
539 |
maxY := maxY max:y. |
|
540 |
||
729 | 541 |
(self arrowPointsFor:startPoint and:endPoint) do:[:p | |
358 | 542 |
|x y| |
543 |
||
544 |
x := p x. |
|
545 |
y := p y. |
|
546 |
minX := minX min:x. |
|
547 |
maxX := maxX max:x. |
|
548 |
minY := minY min:y. |
|
549 |
maxY := maxY max:y. |
|
357 | 550 |
]. |
551 |
^ Rectangle left:minX right:maxX top:minY bottom:maxY |
|
552 |
||
553 |
" |
|
554 |
(Arrow from:(10@10) to:(90@90)) bounds |
|
555 |
(Arrow from:(10@10) to:(10@90)) bounds |
|
556 |
" |
|
557 |
||
358 | 558 |
"Modified: 26.5.1996 / 16:31:39 / cg" |
490
ef43c7a69346
added dummy Scale & InverseScale classVars.
Claus Gittinger <cg@exept.de>
parents:
455
diff
changeset
|
559 |
"Created: 12.2.1997 / 11:42:22 / cg" |
357 | 560 |
! ! |
561 |
||
2153 | 562 |
!Arrow methodsFor:'testing'! |
563 |
||
564 |
canBeFilled |
|
565 |
"return true, if the receiver can be drawn as a filled geometric. |
|
566 |
Always true here. Notice, that Arrows only fill the arrowHeads." |
|
567 |
||
568 |
^ true |
|
569 |
||
570 |
! ! |
|
571 |
||
318 | 572 |
!Arrow class methodsFor:'documentation'! |
573 |
||
574 |
version |
|
3785 | 575 |
^ '$Header$' |
2548
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
576 |
! |
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
577 |
|
381d28941d3a
added: #arrowPointsFor:and:position:offset:length:angle:
Claus Gittinger <cg@exept.de>
parents:
2153
diff
changeset
|
578 |
version_CVS |
3785 | 579 |
^ '$Header$' |
318 | 580 |
! ! |
1303 | 581 |
|
3785 | 582 |
|
318 | 583 |
Arrow initialize! |