Class hmiParameterView

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----hmiParameterView

public class hmiParameterView
extends Applet
implements Runnable, MouseListener, tbint, ActionListener
An applet to modify paramters of wigets displayed in hmiDesigner. On the parameter line,you can provide names for the WIDGETs parameters.
Example: <param name="0hmiElement" value="X-Pos">
If you have a derived class hmiDevClass that uses more parameters, you should add lines like:
<param name="16hmiDevClass" value="explain Usage">
If you have a derived class hmiDevClass that uses the parameter 0 for something else, you should add aline like:
<param name="0hmiDevClass" value="explain Special Usage">
The rule is:
<param name="[parameter Number][class name]" value="[text to show]">
If there is no special text, the hierarchy is searched backwards to hmiElement. So you need to define texts for common anchestors only once.


Variable Index

 o colors
 o context
 o count
 o CurrentElement
 o dbGraphics
Image Graphics for double buffering
 o dbImage
Image for double buffering
 o he
 o iceColor1
 o iceColor2
 o iceColor3
 o iceColor4
 o iceColor5
 o iceColor6
 o mainPanel
 o mainPanel2
 o size
The size
 o timer
Thread to refresh contents regularly.
 o type
 o typeName
 o varDialog
 o yHeight
Height of a line.

Constructor Index

 o hmiParameterView()

Method Index

 o actionPerformed(ActionEvent)
 o focusOn(int)
Makes widget elementNr the "current" widget.
 o getMain()
Get a reference to the main panel (hmiDesigner).
 o getVarName(int, Class)
 o init()
 o mouseClicked(MouseEvent)
Increment or decrement parameter on mouseclick.
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
 o run()
Refreah each 0.7 seconds.
 o start()
 o stop()
 o update(Graphics)

Variables

 o timer
 Thread timer
Thread to refresh contents regularly.

 o dbImage
 Image dbImage
Image for double buffering

 o dbGraphics
 Graphics dbGraphics
Image Graphics for double buffering

 o size
 Dimension size
The size

 o yHeight
 static final int yHeight
Height of a line.

 o varDialog
 hmiParameterView. VarDialog varDialog
 o context
 AppletContext context
 o count
 int count
 o CurrentElement
 int CurrentElement
 o type
 String type
 o mainPanel
 changeAble mainPanel
 o mainPanel2
 hmiList mainPanel2
 o typeName
 String typeName
 o he
 hmiElement he
 o colors
 final Color colors[]
 o iceColor1
 final Color iceColor1
 o iceColor2
 final Color iceColor2
 o iceColor3
 final Color iceColor3
 o iceColor4
 final Color iceColor4
 o iceColor5
 final Color iceColor5
 o iceColor6
 final Color iceColor6

Constructors

 o hmiParameterView
 public hmiParameterView()

Methods

 o focusOn
 public void focusOn(int elementNr)
Makes widget elementNr the "current" widget.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
 o mouseClicked
 public void mouseClicked(MouseEvent evt)
Increment or decrement parameter on mouseclick.

 o mousePressed
 public void mousePressed(MouseEvent evt)
 o mouseReleased
 public void mouseReleased(MouseEvent evt)
 o mouseEntered
 public void mouseEntered(MouseEvent evt)
 o mouseExited
 public void mouseExited(MouseEvent evt)
 o getVarName
 public String getVarName(int i,
                          Class c)
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o init
 public void init()
Overrides:
init in class Applet
 o getMain
 public void getMain()
Get a reference to the main panel (hmiDesigner).

 o run
 public void run()
Refreah each 0.7 seconds.

 o start
 public void start()
Overrides:
start in class Applet
 o update
 public void update(Graphics g)
Overrides:
update in class Container
 o stop
 public void stop()
Overrides:
stop in class Applet