|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jidesoft.gauge.DefaultGaugeModel
public class DefaultGaugeModel
A default implementation of the GaugeModel interface.
A GaugeModel is essentially a set of
Constructor Summary | |
---|---|
DefaultGaugeModel()
Create an empty DefaultGaugeModel |
|
DefaultGaugeModel(String name)
Create a DefaultGaugeModel using the supplied string as the name of the model |
Method Summary | |
---|---|
void |
addGaugeModelListener(GaugeModelListener listener)
|
void |
clearValues()
Clears the values for all the needles |
boolean |
equals(Object o)
|
protected void |
fireGaugeChanged(String needleName,
Positionable pos)
|
Positionable |
getValue(String needleName)
returns the value of the needle with the supplied name |
int |
getValueCount()
Returns the number of needles/values in the model |
int |
hashCode()
|
void |
removeGaugeModelListener(GaugeModelListener listener)
|
void |
setValue(String needleName,
Double value)
Specify the value for the given named needle. |
void |
setValue(String needleName,
Positionable value)
Specify the value for the given named needle |
void |
setValue(String needleName,
Positionable value,
boolean fireUpdate)
Specify the value for the given named needle but also supply a boolean to indicate whether an event should be fired for the gauge to be updated. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultGaugeModel()
public DefaultGaugeModel(String name)
name
- the name of the modelMethod Detail |
---|
public void addGaugeModelListener(GaugeModelListener listener)
addGaugeModelListener
in interface GaugeModel
public void removeGaugeModelListener(GaugeModelListener listener)
removeGaugeModelListener
in interface GaugeModel
protected void fireGaugeChanged(String needleName, Positionable pos)
public Positionable getValue(String needleName)
getValue
in interface GaugeModel
needleName
- the name of the needle of interest
public void setValue(String needleName, Double value)
needleName
- the name of the needlevalue
- the numeric value of the needlepublic void setValue(String needleName, Positionable value)
setValue
in interface GaugeModel
needleName
- the name of the needlevalue
- the value of the needle, expressed as a Positionable instancepublic void setValue(String needleName, Positionable value, boolean fireUpdate)
setValue
in interface GaugeModel
needleName
- the name of the needlevalue
- the value of the needle, expressed as a Positionable instancefireUpdate
- a boolean to indicate whether updates should be firedpublic int getValueCount()
getValueCount
in interface GaugeModel
public void clearValues()
clearValues
in interface GaugeModel
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |