|
Class: MeterWidget
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--MeterWidget
- Package:
- stx:libwidg3
- Category:
- Views-Misc
- Version:
- rev:
1.29
date: 2023/07/06 14:34:44
- user: cg
- file: MeterWidget.st directory: libwidg3
- module: stx stc-classLibrary: libwidg3
hallo erstmal ...
a simple fun-view,
zeigt eine Meter-Uhr wie z.B. ein Tachometer oder so.
The model is a simple valueHolder, holding a number.
This widget can be used as what ever you want.
You can change the label as miles/h or simple as 'speed'.
You can change all Colors which are used by this view.
[instance variables:]
all color variables,
cChassis, cBackgr, cPointer, cNumber, cScale, cName
meterHolder for the valueHolder
meterWert for the value who needw the widget to compute the pEndPoint
middlePoint is the middlePoint of the widget
pEndPoint is the position of the pointer
startNumber is the startnumber of the scale (always 0)
endNumber is the endnumber of the scale (always 100)
radX is the radian of the widget
radY same as radX
startAngle is the startangle of the scale (0 is horizontal right)
endAngle is the different between startangle and endangle (im Uhrzeigersinn)
meterName is the label name
tmp is the old pointerPosition for delete the pointer
copyrightCOPYRIGHT (c) 1998 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
endAngle
-
return the value of the instance variable 'endAngle' (automatically generated)
-
endAngle: something
-
set the value of the instance variable 'endAngle' is -delta to startangle (always 270)
-
endNumber
-
return the value of the instance variable 'endNumber' (automatically generated)
-
endNumber: something
-
set the value of the instance variable 'endNumber' (always 100)
-
meterHolder
-
return the value of the instance variable 'meterHolder' (automatically generated)
-
meterHolder: something
-
set the value of the instance variable 'meterHolder' (automatically generated)
-
meterName
-
return the value of the instance variable 'meterName' (automatically generated)
-
meterName: something
-
set the value of the instance variable 'meterName' (automatically generated)
-
middlePoint
-
return the value of the instance variable 'middlePoint' (automatically generated)
-
middlePoint: aPoint
-
set the value of the instance variable 'middlePoint' (automatically generated)
-
pEndPoint
-
return the value of the instance variable 'pEndPoint' (automatically generated)
-
pEndPoint: aPoint
-
set the value of the instance variable 'pEndPoint' (automatically generated)
-
pEndPointX: xP y: yP
-
set the value of the instance variable 'pEndPoint' (automatically generated)
-
radX
-
return the value of the instance variable 'radX' (automatically generated)
-
radX: something
-
set the value of the instance variable 'radX' (automatically generated)
-
radY
-
return the value of the instance variable 'radY' (automatically generated)
-
radY: something
-
set the value of the instance variable 'radY' (automatically generated)
-
startAngle
-
return the value of the instance variable 'startAngle' (automatically generated)
-
startAngle: something
-
set the value of the instance variable 'startAngle' (always 225)
-
startNumber
-
return the value of the instance variable 'startNumber' (automatically generated)
-
startNumber: something
-
set the value of the instance variable 'startNumber' (always 0)
accessing-color & font
-
colorBackgr
-
return the meterViewDisplay background color
-
colorBackgr: aColor
-
set the meterViewDisplay background color
-
colorChassis
-
return the meterViewDisplay outline color
-
colorChassis: aColor
-
set the meterViewDisplay outline color
-
colorName
-
return the meterViewName color
-
colorName: aColor
-
set the meterViewName color
-
colorNumber
-
return the meterViewNumbers color
-
colorNumber: aColor
-
set the meterViewNumber color
-
colorPointer
-
return the meterViewPointer color
-
colorPointer: aColor
-
set the meterViewPointer color
-
colorScale
-
return the meterViewScale color
-
colorScale: aColor
-
set the meterViewScale color
aspects
-
meterWert
-
automatically generated by UIPainter ...
-
meterWert: something
-
set the value of the instance variable 'meterWert' (automatically generated)
drawing
-
drawChassis
-
zeichnet den Chassis-Umfang
-
drawPointer
-
zeichnet den Zeiger, endPoint ist der Wert für die Zeigerstellung
-
drawScale
-
zeichnet die Scala-Einteilung
-
drawSpeed
-
-
newdrawPointer
-
meterWert hat sich verändert, Zeiger löschen und neu zeichnen
-
redrawSpeed
-
Delta Endwinkel
event handling
-
redrawX: x y: y width: w height: h
-
|savClip|
-
sizeChanged: how from: oldExtentOrNil
-
my view has changed the size (not the contents)
hooks
-
postBuildWith: aBuilder
-
automatically generated by UIPainter ...
Usage example(s):
super postBuildWith:aBuilder
|
initialization
-
initialize
-
(comment from inherited method)
must be called if redefined
-
initializeVariables
-
Instanzvariablen initialisieren
-
start: begin stop: end
-
Defaultwerte der Scala - Beginn - und Endnummer -> 0 ... 100
private
-
fillTableX
-
-
fillTableY
-
views
-
getMeterWidget
-
|