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.29 date: 2023/07/06 14:34:44
user: cg
file: MeterWidget.st directory: libwidg3
module: stx stc-classLibrary: libwidg3

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

copyright

COPYRIGHT (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.

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 from: oldExtentOrNil
my view has changed the size (not the contents)

hooks
o  postBuildWith: aBuilder
automatically generated by UIPainter ...

Usage example(s):

super postBuildWith:aBuilder

initialization
o  initialize
(comment from inherited method)
must be called if redefined

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:29:49 GMT