jcontrol.ui.wombat
Class DigitalMeter

java.lang.Object
  extended by jcontrol.ui.wombat.Component
      extended by jcontrol.ui.wombat.DigitalMeter

public class DigitalMeter
extends Component


Field Summary
 
Fields inherited from class jcontrol.ui.wombat.Component
backgroundColor, COLOR_COMPONENT_BACKGROUND, COLOR_COMPONENT_BACKGROUND_HIGHLIGHTED, COLOR_COMPONENT_DARK_SHADOW, COLOR_COMPONENT_FOREGROUND, COLOR_COMPONENT_FOREGROUND_INACTIVE, COLOR_COMPONENT_HIGHLIGHT_SHADOW, COLOR_COMPONENT_LIGHT_SHADOW, COLOR_COMPONENT_LIST_BACKGROUND, COLOR_COMPONENT_NORMAL_SHADOW, COLOR_COMPONENT_SELECTION_TEXT, COLOR_COMPONENT_SELECTION_TEXT_BACKGROUND, COLOR_COMPONENT_SELECTION_TEXT_BACKGROUND_INACTIVE, COLOR_COMPONENT_SELECTION_TEXT_INACTIVE, foregroundColor, frame, height, parent, state, transparentColor, width, x, y
 
Constructor Summary
DigitalMeter(double value, int x, int y, int width, int height)
           
 
Method Summary
 void paint(jcontrol.graphics.XGraphics g)
          This method should not be called from the application.
 void setBackgroundColor(jcontrol.graphics.Color background)
          Sets the background color for this component.
 void setBounds(int x, int y, int width, int height)
          Set the dimensions of this component.
 void setCustomString(java.lang.String string)
           
 void setDecimals(int decimals)
           
 void setDigits(int digits)
           
 void setFont(jcontrol.io.Resource font)
          Sets the font for this component.
 void setForegroundColor(jcontrol.graphics.Color foreground)
          Sets the foreground color for this component.
 void setValue(double value)
           
 
Methods inherited from class jcontrol.ui.wombat.Component
getFrame, isEnabled, isVisible, repaint, repaintAll, safeExec, setDirty, setEnabled, setRedraw, setTransparentColor, setVisible, unsafeExec, update
 
Methods inherited from class java.lang.Object
equals, getClass, notifyAll, toString, wait
 

Constructor Detail

DigitalMeter

public DigitalMeter(double value,
                    int x,
                    int y,
                    int width,
                    int height)
Method Detail

paint

public void paint(jcontrol.graphics.XGraphics g)
Description copied from class: Component
This method should not be called from the application. Paints this component. Here, all drawing action will occur by using the graphics parameter. This method must be overwritten by any extending class. It must not be used by any application.

Overrides:
paint in class Component
Parameters:
g - the application's graphics object.

setBackgroundColor

public void setBackgroundColor(jcontrol.graphics.Color background)
Description copied from class: Component
Sets the background color for this component.

Overrides:
setBackgroundColor in class Component
Parameters:
background - the background color to set

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Description copied from class: Component
Set the dimensions of this component. The component is repainted automatically.

Overrides:
setBounds in class Component
Parameters:
x - The x-coordinate of the upper left corner
y - The y-coordinate of the upper left corner
width - The width of this component
height - The height of this component

setCustomString

public void setCustomString(java.lang.String string)

setDecimals

public void setDecimals(int decimals)

setDigits

public void setDigits(int digits)

setFont

public void setFont(jcontrol.io.Resource font)
Description copied from class: Component
Sets the font for this component.

Overrides:
setFont in class Component
Parameters:
font - the new font.

setForegroundColor

public void setForegroundColor(jcontrol.graphics.Color foreground)
Description copied from class: Component
Sets the foreground color for this component.

Overrides:
setForegroundColor in class Component
Parameters:
foreground - the foreground color to set

setValue

public void setValue(double value)