741
|
1 |
Model subclass:#GraphColumn
|
|
2 |
instanceVariableNames:'aspects functionYblock'
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Views-Graphs'
|
|
6 |
!
|
|
7 |
|
748
|
8 |
!GraphColumn class methodsFor:'documentation'!
|
|
9 |
|
|
10 |
documentation
|
|
11 |
"
|
|
12 |
a model, which keeps all the information to describe a graph column as used by
|
|
13 |
the GraphColumnView. Each change of an attribute will raise a change notification
|
|
14 |
and immediately take affect in the graphs
|
|
15 |
|
|
16 |
|
|
17 |
[author:]
|
|
18 |
Claus Atzkern
|
|
19 |
|
|
20 |
[see also:]
|
|
21 |
GraphColumnView
|
|
22 |
GraphColumnView2D
|
|
23 |
GraphColumnView3D
|
|
24 |
"
|
|
25 |
|
|
26 |
! !
|
741
|
27 |
|
|
28 |
!GraphColumn class methodsFor:'instance creation'!
|
|
29 |
|
|
30 |
name:aName
|
|
31 |
^ self new name:aName
|
|
32 |
!
|
|
33 |
|
|
34 |
new
|
|
35 |
^ super basicNew initialize
|
|
36 |
! !
|
|
37 |
|
|
38 |
!GraphColumn class methodsFor:'menu definitions'!
|
|
39 |
|
|
40 |
colorMenuSelector:aSelector
|
|
41 |
"specification used to build the Menu
|
|
42 |
"
|
|
43 |
^ ColorMenu colorMenu:true value:aSelector.
|
|
44 |
!
|
|
45 |
|
|
46 |
middleButtonMenu
|
|
47 |
"this window spec was automatically generated by the ST/X MenuEditor"
|
|
48 |
|
|
49 |
"do not manually edit this - the builder may not be able to
|
|
50 |
handle the specification if its corrupted."
|
|
51 |
|
|
52 |
"
|
|
53 |
MenuEditor new openOnClass:GraphColumn andSelector:#middleButtonMenu
|
|
54 |
(Menu new fromLiteralArrayEncoding:(GraphColumn middleButtonMenu)) startUp
|
|
55 |
"
|
|
56 |
|
|
57 |
<resource: #menu>
|
|
58 |
|
|
59 |
^
|
|
60 |
|
|
61 |
#(#Menu
|
|
62 |
|
|
63 |
#(
|
|
64 |
#(#MenuItem
|
|
65 |
#'label:' 'Style'
|
|
66 |
#'argument:' #'lineStyle:'
|
|
67 |
#'submenuChannel:' #'styleMenuSelector:'
|
|
68 |
)
|
|
69 |
#(#MenuItem
|
|
70 |
#'label:' 'Size'
|
|
71 |
#'argument:' #'lineWidth:'
|
|
72 |
#'submenuChannel:' #'widthMenuSelector:'
|
|
73 |
)
|
|
74 |
#(#MenuItem
|
|
75 |
#'label:' 'Color'
|
|
76 |
#'argument:' #'foregroundColor:'
|
|
77 |
#'submenuChannel:' #'colorMenuSelector:'
|
|
78 |
)
|
|
79 |
#(#MenuItem
|
|
80 |
#'label:' 'Zoom Y'
|
|
81 |
#'argument:' #'zoomY:'
|
|
82 |
#'submenuChannel:' #'zoomMenuSelector:'
|
|
83 |
)
|
|
84 |
) nil
|
|
85 |
nil
|
|
86 |
)
|
|
87 |
!
|
|
88 |
|
|
89 |
styleMenuSelector:aSelector
|
|
90 |
|menu width height item bitmap|
|
|
91 |
|
|
92 |
menu := Menu new.
|
|
93 |
width := 40.
|
|
94 |
height := 10.
|
|
95 |
|
|
96 |
#( #solid #dashed ) do:[:style|
|
|
97 |
bitmap := Form width:width height:height depth:1.
|
|
98 |
bitmap paint:(Color colorId:1).
|
|
99 |
bitmap fillRectangleX:0 y:0 width:width height:height.
|
|
100 |
|
|
101 |
bitmap paint:(Color colorId:0).
|
|
102 |
bitmap fillRectangleX:0 y:0 width:width height:height.
|
|
103 |
bitmap paint:(Color colorId:1).
|
|
104 |
bitmap lineWidth:2.
|
|
105 |
bitmap lineStyle:style.
|
|
106 |
bitmap displayLineFromX:2 y:(height // 2) toX:width-2 y:(height // 2).
|
|
107 |
item := MenuItem labeled:bitmap.
|
|
108 |
item value:aSelector.
|
|
109 |
item argument:style.
|
|
110 |
menu addItem:item.
|
|
111 |
].
|
|
112 |
^ menu
|
|
113 |
|
|
114 |
"
|
|
115 |
(self styleMenuSelector:#lineStyle) startUp
|
|
116 |
"
|
|
117 |
|
|
118 |
!
|
|
119 |
|
|
120 |
widthMenuSelector:aSelector
|
|
121 |
|menu width item bitmap|
|
|
122 |
|
|
123 |
menu := Menu new.
|
|
124 |
width := 40.
|
|
125 |
|
|
126 |
#( 1 2 3 4 5 6 ) do:[:height|
|
|
127 |
bitmap := Form width:width height:height depth:1.
|
|
128 |
bitmap paint:(Color colorId:1).
|
|
129 |
bitmap fillRectangleX:0 y:0 width:width height:height.
|
|
130 |
|
|
131 |
item := MenuItem labeled:bitmap.
|
|
132 |
item value:aSelector.
|
|
133 |
item argument:height.
|
|
134 |
menu addItem:item.
|
|
135 |
].
|
|
136 |
item := MenuItem labeled:'other ..'.
|
|
137 |
item value:[:arg :panel||n|
|
|
138 |
n := Number fromString:(Dialog request:'size:') onError:nil.
|
|
139 |
|
|
140 |
n notNil ifTrue:[
|
|
141 |
panel receiver perform:aSelector with:n
|
|
142 |
]
|
|
143 |
].
|
|
144 |
menu addItem:item.
|
|
145 |
^ menu
|
|
146 |
|
|
147 |
"
|
|
148 |
(self widthMenuSelector:#lineWidth) startUp
|
|
149 |
"
|
|
150 |
|
|
151 |
!
|
|
152 |
|
|
153 |
zoomMenuSelector:aSelector
|
|
154 |
"specification used to build the Menu
|
|
155 |
"
|
|
156 |
|menu width item bitmap|
|
|
157 |
|
|
158 |
menu := Menu new.
|
|
159 |
width := 40.
|
|
160 |
|
|
161 |
#( 25 50 75 nil 100 nil 150 200 nil ) do:[:zY|
|
|
162 |
zY notNil ifTrue:[
|
|
163 |
item := MenuItem labeled:(zY printString, ' %' ).
|
|
164 |
item value:aSelector.
|
|
165 |
item argument:(zY / 100).
|
|
166 |
] ifFalse:[
|
|
167 |
item := MenuItem labeled:'-'.
|
|
168 |
].
|
|
169 |
menu addItem:item.
|
|
170 |
].
|
|
171 |
item := MenuItem labeled:'other ..'.
|
|
172 |
item value:[:arg :panel||n|
|
|
173 |
n := Number fromString:(Dialog request:'zoom %:') onError:nil.
|
|
174 |
|
|
175 |
n notNil ifTrue:[
|
|
176 |
panel receiver perform:aSelector with:(n / 100)
|
|
177 |
]
|
|
178 |
].
|
|
179 |
menu addItem:item.
|
|
180 |
^ menu
|
|
181 |
|
|
182 |
"
|
|
183 |
(self zoomMenuSelector:#zoomY) startUp
|
|
184 |
"
|
|
185 |
|
|
186 |
! !
|
|
187 |
|
|
188 |
!GraphColumn methodsFor:'accessing'!
|
|
189 |
|
|
190 |
name
|
|
191 |
"get the name of the column
|
|
192 |
"
|
|
193 |
^ aspects at:#name ifAbsent:nil
|
|
194 |
!
|
|
195 |
|
|
196 |
name:aName
|
|
197 |
"set the name of the column
|
|
198 |
"
|
|
199 |
self aspectAt:#name put:aName
|
|
200 |
!
|
|
201 |
|
|
202 |
relativeXaxis
|
748
|
203 |
"returns the relative X-axis (y == 0) into the graph view; staring at top (0.0) to
|
|
204 |
bottom (1.0). Thus a relative X axis of 0.5 means the graph is centered in the view.
|
741
|
205 |
"
|
|
206 |
^ aspects at:#relativeXaxis ifAbsent:0.5
|
|
207 |
|
|
208 |
|
|
209 |
!
|
|
210 |
|
|
211 |
relativeXaxis:aNumberOrNil
|
748
|
212 |
"sets the relative X-axis (y == 0) into the graph view; staring at top (0.0) to
|
|
213 |
bottom (1.0). Thus a relative X axis of 0.5 means the graph is centered in the view.
|
|
214 |
In case that the value is not a valid number, the relative X axis is set to 0.5.
|
741
|
215 |
"
|
|
216 |
|x|
|
|
217 |
|
|
218 |
aNumberOrNil notNil ifTrue:[
|
|
219 |
x := aNumberOrNil isInteger ifTrue:[aNumberOrNil]
|
|
220 |
ifFalse:[aNumberOrNil asFloat] "/ no fractions
|
|
221 |
] ifFalse:[
|
|
222 |
x := 0.5
|
|
223 |
].
|
|
224 |
|
|
225 |
self aspectAt:#relativeXaxis put:x
|
|
226 |
!
|
|
227 |
|
|
228 |
scaleY
|
748
|
229 |
"returns the current y-scale of the column (~~ 0); this value should be set once
|
|
230 |
dependant on the maximum and minimum Y value. To zoom the graph vertical use
|
|
231 |
insteat #zoomY:.
|
741
|
232 |
"
|
|
233 |
^ aspects at:#scaleY ifAbsent:1
|
|
234 |
!
|
|
235 |
|
|
236 |
scaleY:aNumberOrNil
|
748
|
237 |
"set the current y-scale of the column (~~ 0); this value should be set once
|
|
238 |
dependant on the maximum and minimum Y value. To zoom the graph vertical use
|
|
239 |
insteat #zoomY:.
|
|
240 |
In case that the value is not a valid number or less equal zero, the scale Y
|
|
241 |
factor is set to its default value (1).
|
741
|
242 |
"
|
|
243 |
|y|
|
|
244 |
|
|
245 |
aNumberOrNil notNil ifTrue:[
|
|
246 |
y := aNumberOrNil isInteger ifTrue:[aNumberOrNil]
|
|
247 |
ifFalse:[aNumberOrNil asFloat]. "/ no fractions
|
|
248 |
|
|
249 |
y > 0 ifFalse:[y := 1]
|
|
250 |
] ifFalse:[
|
|
251 |
y := 1
|
|
252 |
].
|
|
253 |
|
|
254 |
self aspectAt:#scaleY put:y
|
|
255 |
!
|
|
256 |
|
|
257 |
shown
|
748
|
258 |
"returns true if the column is shown otherwise false
|
741
|
259 |
"
|
|
260 |
^ aspects at:#shown ifAbsent:true
|
|
261 |
!
|
|
262 |
|
|
263 |
shown:aState
|
748
|
264 |
"set the visibility state of the column
|
741
|
265 |
"
|
|
266 |
self aspectAt:#shown put:aState
|
|
267 |
!
|
|
268 |
|
|
269 |
transY
|
748
|
270 |
"get the current y-transition of the column; the default is 0
|
741
|
271 |
"
|
|
272 |
^ aspects at:#transY ifAbsent:0
|
|
273 |
!
|
|
274 |
|
|
275 |
transY:anIntegerOrNil
|
|
276 |
"set the current y-transition of the column to an integer or nil (== 0).
|
|
277 |
"
|
|
278 |
|y|
|
|
279 |
|
|
280 |
anIntegerOrNil notNil ifTrue:[
|
|
281 |
y := anIntegerOrNil isInteger ifTrue:[anIntegerOrNil]
|
|
282 |
ifFalse:[anIntegerOrNil asFloat rounded] "/ catch fractions
|
|
283 |
] ifFalse:[
|
|
284 |
y := 0
|
|
285 |
].
|
|
286 |
|
|
287 |
self aspectAt:#transY put:y
|
|
288 |
!
|
|
289 |
|
|
290 |
zoomY
|
748
|
291 |
"returns the current y-zoom factor of the column excluding the scale Y factor
|
741
|
292 |
"
|
|
293 |
^ aspects at:#zoomY ifAbsent:1
|
|
294 |
!
|
|
295 |
|
|
296 |
zoomY:aFactor
|
748
|
297 |
"set the current y-zoom factor of the column. The graph and its
|
|
298 |
horizontal lines are vertical zoomed relative to its center defined
|
|
299 |
by the relativeXaxis.
|
|
300 |
In case that the value is not a valid number or less equal zero, the zoom Y
|
|
301 |
factor is set to its default value (1).
|
741
|
302 |
"
|
|
303 |
|y|
|
|
304 |
|
|
305 |
aFactor notNil ifTrue:[
|
|
306 |
y := aFactor isInteger ifTrue:[aFactor]
|
|
307 |
ifFalse:[aFactor asFloat]. "/ no fractions
|
|
308 |
|
|
309 |
y > 0 ifFalse:[y := 1]
|
|
310 |
] ifFalse:[
|
|
311 |
y := 1
|
|
312 |
].
|
|
313 |
self aspectAt:#zoomY put:y
|
|
314 |
|
|
315 |
! !
|
|
316 |
|
|
317 |
!GraphColumn methodsFor:'accessing Y function'!
|
|
318 |
|
|
319 |
functionYblock
|
|
320 |
"get the two arguments block which is used to access Y values from
|
|
321 |
start into an array. The block should return the collection of y
|
|
322 |
values; see method: #from:into:
|
|
323 |
"
|
|
324 |
^ functionYblock
|
|
325 |
!
|
|
326 |
|
|
327 |
functionYblock:something
|
|
328 |
"set the two arguments block which is used to access Y values from
|
|
329 |
start into an array. The block should return the collection of y
|
|
330 |
values; see method: #from:into:
|
|
331 |
"
|
|
332 |
functionYblock := something.
|
|
333 |
self changed.
|
|
334 |
! !
|
|
335 |
|
|
336 |
!GraphColumn methodsFor:'accessing Y values'!
|
|
337 |
|
|
338 |
yValueAt:anIndex
|
748
|
339 |
"returns the Y value at an index
|
741
|
340 |
"
|
|
341 |
^ (self yValuesStartAt:anIndex into:(Array new:1)) at:1
|
|
342 |
!
|
|
343 |
|
|
344 |
yValuesStartAt:start into:anArray
|
748
|
345 |
"returns the Y values from start upto an array size. The collection of Y
|
|
346 |
values should be returned.
|
|
347 |
You can use the argument anArray, to store the Y values or a new array.
|
|
348 |
The functionYblock is obligated to return the array used
|
741
|
349 |
"
|
|
350 |
^ functionYblock value:start value:anArray
|
|
351 |
! !
|
|
352 |
|
|
353 |
!GraphColumn methodsFor:'accessing graph'!
|
|
354 |
|
|
355 |
foregroundColor
|
748
|
356 |
"returns the color of the graph; if the color is nil the default foreground color
|
|
357 |
of the graph is used which derives from the style sheet.
|
741
|
358 |
"
|
|
359 |
^ aspects at:#foregroundColor ifAbsent:nil
|
|
360 |
|
|
361 |
!
|
|
362 |
|
|
363 |
foregroundColor:aColor
|
748
|
364 |
"set the color of the graph; if the color is nil the default foreground color
|
|
365 |
of the graph is used which derives from the style sheet.
|
741
|
366 |
"
|
|
367 |
self aspectAt:#foregroundColor put:aColor
|
|
368 |
|
|
369 |
!
|
|
370 |
|
|
371 |
lineStyle
|
748
|
372 |
"returns the style in which the graph is drawn; if no style is defined, the
|
|
373 |
default style is used (#solid).
|
|
374 |
|
|
375 |
Supported styles are #solid or #dashed
|
741
|
376 |
"
|
|
377 |
^ aspects at:#lineStyle ifAbsent:#solid
|
|
378 |
!
|
|
379 |
|
|
380 |
lineStyle:aStyle
|
748
|
381 |
"set the style in which the graph is drawn; if no style is defined or
|
|
382 |
in case of a non valid style, the default style is used (#solid).
|
|
383 |
|
|
384 |
Supported styles are #solid or #dashed
|
741
|
385 |
"
|
748
|
386 |
|style|
|
|
387 |
|
|
388 |
style := aStyle == #dashed ifFalse:[#solid] ifTrue:[#dashed].
|
|
389 |
self aspectAt:#lineStyle put:style
|
741
|
390 |
!
|
|
391 |
|
|
392 |
lineWidth
|
748
|
393 |
"returns the width of the graph line
|
741
|
394 |
"
|
|
395 |
^ aspects at:#lineWidth ifAbsent:1
|
|
396 |
!
|
|
397 |
|
|
398 |
lineWidth:anInteger
|
748
|
399 |
"set the width of the graph line; if the width is not defined or
|
|
400 |
not a valid number, the default value is set (1).
|
741
|
401 |
"
|
|
402 |
self aspectAt:#lineWidth put:(anInteger ? 1)
|
|
403 |
! !
|
|
404 |
|
|
405 |
!GraphColumn methodsFor:'accessing hLines'!
|
|
406 |
|
|
407 |
hLineFgColor
|
748
|
408 |
"returns the color of the horizontal lines; if the color is nil the default foreground
|
|
409 |
color of the graph is used which derives from the style sheet.
|
741
|
410 |
"
|
|
411 |
^ aspects at:#hLineFgColor ifAbsent:nil
|
|
412 |
!
|
|
413 |
|
|
414 |
hLineFgColor:aColor
|
748
|
415 |
"set the color of the horizontal lines; if the color is nil the default foreground
|
|
416 |
color of the graph is used which derives from the style sheet.
|
741
|
417 |
"
|
|
418 |
self aspectAt:#hLineFgColor put:aColor
|
|
419 |
!
|
|
420 |
|
|
421 |
hLineList
|
748
|
422 |
"returns the list of horizontal lines or nil
|
741
|
423 |
"
|
|
424 |
^ aspects at:#hLineList ifAbsent:nil
|
|
425 |
!
|
|
426 |
|
|
427 |
hLineList:aCollection
|
748
|
428 |
"set the list of horizontal lines to be drawn
|
741
|
429 |
"
|
|
430 |
|col|
|
|
431 |
|
|
432 |
col := (aCollection size ~~ 0) ifTrue:[aCollection] ifFalse:[nil].
|
|
433 |
|
|
434 |
self aspectAt:#hLineList put:col
|
|
435 |
!
|
|
436 |
|
|
437 |
hLineStyle
|
748
|
438 |
"returns the style in which the horizontal lines are drawn; if no style is
|
|
439 |
defined, the default style is used (#solid).
|
|
440 |
|
|
441 |
Supported styles are #solid or #dashed
|
741
|
442 |
"
|
|
443 |
^ aspects at:#hLineStyle ifAbsent:#solid
|
|
444 |
!
|
|
445 |
|
|
446 |
hLineStyle:aStyle
|
748
|
447 |
"set the style in which the horizontal lines are drawn; if no style is defined
|
|
448 |
or in case of a non valid style, the default style is used (#solid).
|
|
449 |
|
|
450 |
Supported styles are #solid or #dashed.
|
741
|
451 |
"
|
748
|
452 |
|style|
|
|
453 |
|
|
454 |
style := aStyle == #dashed ifFalse:[#solid] ifTrue:[#dashed].
|
|
455 |
self aspectAt:#hLineStyle put:style
|
741
|
456 |
!
|
|
457 |
|
|
458 |
hLineWidth
|
748
|
459 |
"returns the width of the horizontal lines
|
741
|
460 |
"
|
|
461 |
^ aspects at:#hLineWidth ifAbsent:1
|
|
462 |
|
|
463 |
!
|
|
464 |
|
|
465 |
hLineWidth:anInteger
|
748
|
466 |
"set the width of the horizontal lines; if the width is not defined or
|
|
467 |
not a valid number, the default value is set (1).
|
741
|
468 |
"
|
|
469 |
self aspectAt:#hLineWidth put:(anInteger ? 1)
|
|
470 |
|
|
471 |
|
|
472 |
! !
|
|
473 |
|
|
474 |
!GraphColumn methodsFor:'accessing menu'!
|
|
475 |
|
|
476 |
middleButtonMenu
|
748
|
477 |
"returns the default middle button menu of a column
|
|
478 |
"
|
741
|
479 |
|menu|
|
|
480 |
|
|
481 |
menu := Menu new fromLiteralArrayEncoding:(self class middleButtonMenu).
|
|
482 |
menu receiver:self.
|
|
483 |
^ menu
|
|
484 |
|
|
485 |
|
|
486 |
! !
|
|
487 |
|
|
488 |
!GraphColumn methodsFor:'aspects'!
|
|
489 |
|
|
490 |
aspect
|
|
491 |
"returns current aspects
|
|
492 |
"
|
|
493 |
^ aspects
|
|
494 |
!
|
|
495 |
|
|
496 |
aspectAt:aKey put:aValue
|
748
|
497 |
"set an aspect; if the aspect changed its value, a notification will
|
|
498 |
be raised. The arguments to the change notifications is the key of
|
|
499 |
the aspect (selector) and the old value of the aspect.
|
|
500 |
"
|
741
|
501 |
|oldValue|
|
|
502 |
|
|
503 |
oldValue := aspects at:aKey ifAbsent:nil.
|
|
504 |
|
|
505 |
oldValue ~= aValue ifTrue:[
|
|
506 |
aValue isNil ifTrue:[aspects removeKey:aKey]
|
|
507 |
ifFalse:[aspects at:aKey put:aValue].
|
|
508 |
|
|
509 |
self changed:aKey with:oldValue
|
|
510 |
]
|
|
511 |
!
|
|
512 |
|
|
513 |
aspects:aDictionaryOrNil
|
|
514 |
"change aspects; raise a change notification when changed. If the argument is
|
|
515 |
nil, the default aspects are set
|
|
516 |
"
|
|
517 |
|oldAspects|
|
|
518 |
|
|
519 |
aDictionaryOrNil == aspects ifFalse:[
|
|
520 |
oldAspects := aspects.
|
|
521 |
self setAspects:aDictionaryOrNil.
|
|
522 |
self changed:#aspects with:oldAspects.
|
|
523 |
]
|
|
524 |
!
|
|
525 |
|
|
526 |
setAspects:aDictionaryOrNil
|
|
527 |
"change aspects; raise no notification. If the argument is
|
|
528 |
nil, the default aspects are set
|
|
529 |
"
|
|
530 |
aDictionaryOrNil isNil ifTrue:[
|
|
531 |
aspects := IdentityDictionary new.
|
|
532 |
|
|
533 |
aspects at:#hLineWidth put:1.
|
|
534 |
aspects at:#lineWidth put:1.
|
|
535 |
aspects at:#scaleY put:1.
|
|
536 |
aspects at:#zoomY put:1.
|
|
537 |
aspects at:#transY put:0.
|
|
538 |
aspects at:#relativeXaxis put:0.5.
|
|
539 |
] ifFalse:[
|
|
540 |
aspects := aDictionaryOrNil
|
|
541 |
]
|
|
542 |
! !
|
|
543 |
|
|
544 |
!GraphColumn methodsFor:'initialization'!
|
|
545 |
|
|
546 |
initialize
|
|
547 |
"setup default values
|
|
548 |
"
|
|
549 |
super initialize.
|
|
550 |
self setAspects:nil.
|
|
551 |
! !
|
|
552 |
|
|
553 |
!GraphColumn methodsFor:'printing'!
|
|
554 |
|
|
555 |
printString
|
|
556 |
"returns my printable string
|
|
557 |
"
|
|
558 |
|name|
|
|
559 |
|
|
560 |
^ (name := self name) notNil ifTrue:[name printString] ifFalse:['']
|
|
561 |
! !
|
|
562 |
|
|
563 |
!GraphColumn methodsFor:'queries'!
|
|
564 |
|
|
565 |
centerGraphMaxY:maxY minY:minY
|
748
|
566 |
"set the transition Y for the graph dependant on the current scaleY, the maximum
|
|
567 |
and minimum Y value; the graph is centered to its relative X-Axis.
|
741
|
568 |
"
|
|
569 |
self transY:(((maxY + minY) / 2) * self scaleY)
|
|
570 |
!
|
|
571 |
|
|
572 |
scaleToHeight:aHeight maxY:maxY minY:minY
|
748
|
573 |
"set the scale Y value dependant on the maximum and minimum Y value to fit into
|
741
|
574 |
a height >= 1
|
|
575 |
"
|
|
576 |
|dltY|
|
|
577 |
|
|
578 |
(dltY := (maxY - minY) abs) = 0 ifTrue:[dltY := 1].
|
|
579 |
self scaleY:((aHeight max:1) / dltY)
|
|
580 |
! !
|
|
581 |
|
|
582 |
!GraphColumn class methodsFor:'documentation'!
|
|
583 |
|
|
584 |
version
|
748
|
585 |
^ '$Header: /cvs/stx/stx/libwidg2/GraphColumn.st,v 1.2 1998-02-09 09:49:55 ca Exp $'
|
741
|
586 |
! !
|