|
|
Class: MeterWidget
Object
|
+--GraphicsContext
|
+--DeviceGraphicsContext
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--MeterWidget
- Package:
- stx:libwidg3
- Category:
- Views-Misc
- Version:
- rev:
1.19
date: 2009/05/20 09:15:57
- user: cg
- file: MeterWidget.st directory: libwidg3
- module: stx stc-classLibrary: libwidg3
- Author:
- Timo Merkert (tm@exept.de)
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 (allways 0)
endNumber is the endnumber of the scale (allways 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
startup
-
open
-
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 (allways 270)
-
endNumber
-
return the value of the instance variable 'endNumber' (automatically generated)
-
endNumber: something
-
set the value of the instance variable 'endNumber' (allways 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' (allways 225)
-
startNumber
-
return the value of the instance variable 'startNumber' (automatically generated)
-
startNumber: something
-
set the value of the instance variable 'startNumber' (allways 0)
accessing Color
-
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 fuer die Zeigerstellung
-
drawScale
-
zeichent die Scala-Einteilung
-
drawSpeed
-
-
newdrawPointer
-
meterWert hat sich veraendert, Zeiger loeschen und neu zeichnen
-
redrawSpeed
-
event handling
-
redrawX: x y: y width: w height: h
-
-
sizeChanged: how
-
hooks
-
postBuildWith: aBuilder
-
automatically generated by UIPainter ...
initialization
-
initialize
-
-
initializeVariables
-
Instanzvariablen initialisieren
-
start: begin stop: end
-
Defaultwerte der Scala - Beginn - und Endnummer -> 0 ... 100
private
-
fillTableX
-
-
fillTableY
-
views
-
getMeterWidget
-
|