eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'MeterWidget':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: MeterWidget


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--MeterWidget

Package:
stx:libwidg3
Category:
Views-Misc
Version:
rev: 1.25 date: 2017/11/28 18:27:08
user: cg
file: MeterWidget.st directory: libwidg3
module: stx stc-classLibrary: libwidg3
Author:
Timo Merkert (tm@exept.de)

Description:


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


Related information:



Instance protocol:

accessing
o  endAngle
return the value of the instance variable 'endAngle' (automatically generated)

o  endAngle: something
set the value of the instance variable 'endAngle' is -delta to startangle (always 270)

o  endNumber
return the value of the instance variable 'endNumber' (automatically generated)

o  endNumber: something
set the value of the instance variable 'endNumber' (always 100)

o  meterHolder
return the value of the instance variable 'meterHolder' (automatically generated)

o  meterHolder: something
set the value of the instance variable 'meterHolder' (automatically generated)

o  meterName
return the value of the instance variable 'meterName' (automatically generated)

o  meterName: something
set the value of the instance variable 'meterName' (automatically generated)

o  middlePoint
return the value of the instance variable 'middlePoint' (automatically generated)

o  middlePoint: aPoint
set the value of the instance variable 'middlePoint' (automatically generated)

o  pEndPoint
return the value of the instance variable 'pEndPoint' (automatically generated)

o  pEndPoint: aPoint
set the value of the instance variable 'pEndPoint' (automatically generated)

o  pEndPointX: xP y: yP
set the value of the instance variable 'pEndPoint' (automatically generated)

o  radX
return the value of the instance variable 'radX' (automatically generated)

o  radX: something
set the value of the instance variable 'radX' (automatically generated)

o  radY
return the value of the instance variable 'radY' (automatically generated)

o  radY: something
set the value of the instance variable 'radY' (automatically generated)

o  startAngle
return the value of the instance variable 'startAngle' (automatically generated)

o  startAngle: something
set the value of the instance variable 'startAngle' (always 225)

o  startNumber
return the value of the instance variable 'startNumber' (automatically generated)

o  startNumber: something
set the value of the instance variable 'startNumber' (always 0)

accessing-color & font
o  colorBackgr
return the meterViewDisplay background color

o  colorBackgr: aColor
set the meterViewDisplay background color

o  colorChassis
return the meterViewDisplay outline color

o  colorChassis: aColor
set the meterViewDisplay outline color

o  colorName
return the meterViewName color

o  colorName: aColor
set the meterViewName color

o  colorNumber
return the meterViewNumbers color

o  colorNumber: aColor
set the meterViewNumber color

o  colorPointer
return the meterViewPointer color

o  colorPointer: aColor
set the meterViewPointer color

o  colorScale
return the meterViewScale color

o  colorScale: aColor
set the meterViewScale color

aspects
o  meterWert
automatically generated by UIPainter ...

o  meterWert: something
set the value of the instance variable 'meterWert' (automatically generated)

drawing
o  drawChassis
zeichnet den Chassis-Umfang

o  drawPointer
zeichnet den Zeiger, endPoint ist der Wert für die Zeigerstellung

o  drawScale
zeichnet die Scala-Einteilung

o  drawSpeed

o  newdrawPointer
meterWert hat sich verändert, Zeiger löschen und neu zeichnen

o  redrawSpeed
Delta Endwinkel

event handling
o  redrawX: x y: y width: w height: h
|savClip|

o  sizeChanged: how
(comment from inherited method)
tell subviews that I changed size.
How is either #smaller, #larger or nil, and is used to control the order,
in which subviews are notified (possibly reducing redraw activity)

hooks
o  postBuildWith: aBuilder
automatically generated by UIPainter ...
usage example(s):
super postBuildWith:aBuilder

initialization
o  initialize

o  initializeVariables
Instanzvariablen initialisieren

o  start: begin stop: end
Defaultwerte der Scala - Beginn - und Endnummer -> 0 ... 100

private
o  fillTableX

o  fillTableY

views
o  getMeterWidget


Examples:


        MeterWidget new open


ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Thu, 19 Jul 2018 06:11:37 GMT