|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.indi.objects.Object<Object>
org.indi.objects.Element
org.indi.objects.Number
public class Number
A single indi number
| Field Summary |
|---|
| Fields inherited from class org.indi.objects.Element |
|---|
label, name, value |
| Fields inherited from class org.indi.objects.Object |
|---|
children, message, transferType |
| Constructor Summary | |
|---|---|
Number(java.lang.String name,
java.lang.String value)
class constructor |
|
Number(java.lang.String name,
java.lang.String label,
java.lang.String format,
double min,
double max,
double step,
double value)
class constructor |
|
| Method Summary | |
|---|---|
void |
addDouble(double d)
add a double to the current value |
double |
getDouble()
return the value of the number as double |
java.lang.String |
getStartTag(TransferType type)
Get the opening XML tag for the element |
protected java.lang.String |
getType()
|
void |
setDouble(double d)
set the value of the number by a double |
void |
subtractDouble(double d)
subtract a double from the current value |
| Methods inherited from class org.indi.objects.Element |
|---|
getEndTag, getName, getValue, getXML, hashCode, oEquals, setValue |
| Methods inherited from class org.indi.objects.Object |
|---|
equals, getChildren, getMessage, getTransferType, getXML, setTransferType, treeEquals |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Number(java.lang.String name,
java.lang.String label,
java.lang.String format,
double min,
double max,
double step,
double value)
name - the name of the Numberlabel - the label of the Number (to be used for display in the
GUI)format - the format string used by the client to display the numbermin - the minimum value of the numbermax - the maximum value of the numberstep - the step in with the gui may increase decrease the numbervalue - the value of the number
public Number(java.lang.String name,
java.lang.String value)
name - the name of the Numbervalue - the value of the number| Method Detail |
|---|
public double getDouble()
public void setDouble(double d)
d - the new value to be setpublic void addDouble(double d)
d - the value to be addedpublic void subtractDouble(double d)
d - the value to be subtractedpublic java.lang.String getStartTag(TransferType type)
Element
getStartTag in class Elementtype - the transfertype to be used
protected java.lang.String getType()
getType in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||