DCT Lightfoot v3 API specification

javax.microedition.lcdui
Class Gauge

java.lang.Object
  |
  +--javax.microedition.lcdui.Item
        |
        +--javax.microedition.lcdui.Gauge

public class Gauge
extends Item

A gauge allows a range of values to be entered


Nested Class Summary
protected  class Gauge.Peer
          Peer class that does the drawing
 
Nested classes inherited from class javax.microedition.lcdui.Item
 
Field Summary
 
Fields inherited from class javax.microedition.lcdui.Item
form, highlighted, label, peer
 
Constructor Summary
Gauge(java.lang.String label, boolean interactive, int maxValue, int initialValue)
          Create a new gauge
 
Method Summary
 int getMaxValue()
          Get the maximum value
 int getValue()
          Get the current value
 boolean isInteractive()
          Return true if it is interactive
 void setMaxValue(int maxValue)
          Set the maximum value
 void setValue(int value)
          Set the value
 
Methods inherited from class javax.microedition.lcdui.Item
getLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gauge

public Gauge(java.lang.String label,
             boolean interactive,
             int maxValue,
             int initialValue)
Create a new gauge

Parameters:
label - The label
interactive - If it is interactive
maxValue - The maximum value
initialValue - The initial value
Method Detail

getMaxValue

public int getMaxValue()
Get the maximum value

Returns:
the max value

getValue

public int getValue()
Get the current value

Returns:
the current value

isInteractive

public boolean isInteractive()
Return true if it is interactive

Returns:
true if the gauge is interactive

setMaxValue

public void setMaxValue(int maxValue)
Set the maximum value

Parameters:
maxValue - The new maximum value
Throws:
IllegalArgumentException - if the maximum value is invalid

setValue

public void setValue(int value)
Set the value

Parameters:
value - The value

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification