com.emarson.lemonade.bluelemon.midp1
Class GaugeFactory
java.lang.Object
com.emarson.lemonade.bluelemon.midp1.GaugeFactory
public class GaugeFactory
- extends Object
This class is the factory for creating instances of the
Gauge object.
|
Constructor Summary |
GaugeFactory()
Constructs a new GaugeFactory object. |
GaugeFactory
public GaugeFactory()
- Constructs a new GaugeFactory object.
It can be used to create multiple instances of the Gauge object
- Usage examples:
<blue:newInstance class="com/emarson/lemonade/bluelemon/midp1/GaugeFactory"
toVariable="gaugeFactory"/>
createGauge
public Gauge createGauge(String label,
Boolean isInteractive,
int maxValue,
int initialValue)
- Constructs a new Gauge object.
- Parameters:
label - the label String of this Gauge objectisInteractive - a Boolean indicating whether the
Gauge is interactivemaxValue - the maximum value of this Gauge objectinitialValue - the initial value of this Gauge object
- Returns:
- new instance of the Gauge object
- Usage examples:
<blue:call object="gaugeFactory" method="createGauge"
toVariable="gauge">
<blue:argument type="String" value="label"/>
<blue:argument type="boolean" value="false"/>
<blue:argument type="byte" value="40"/>
<blue:argument type="byte" value="0"/>
</blue:call>
Copyright © 2007 E-MARSON. All Rights Reserved.