javax.microedition.lcdui
Class Gauge

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.Gauge

public class Gauge
extends Item

Author:
Andre Nijholt

Constructor Summary
Gauge(String label, boolean interactive, int maxValue, int initialValue)
           
 
Method Summary
 int getMaxValue()
           
 int getValue()
           
 void paint(Graphics g, int x, int y, int w, int h, boolean selected)
           
 void setMaxValue(int maxValue)
           
 void setValue(int value)
           
 
Methods inherited from class javax.microedition.lcdui.Item
addCommand, getLabel, getMinimumHeight, getMinimumWidth, getPaintRequest, getPreferredHeight, getPreferredWidth, isInteractive, notifyStateChanged, removeCommand, setItemCommandListener, setPreferredSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gauge

public Gauge(String label,
             boolean interactive,
             int maxValue,
             int initialValue)
Method Detail

getMaxValue

public int getMaxValue()

setMaxValue

public void setMaxValue(int maxValue)

getValue

public int getValue()

setValue

public void setValue(int value)

paint

public void paint(Graphics g,
                  int x,
                  int y,
                  int w,
                  int h,
                  boolean selected)