Constructor and Description |
---|
NumericOption(String text,
String unit,
String tip,
double value)
Constructs a new option.
|
NumericOption(String text,
String unit,
String tip,
int value)
Constructs a new option.
|
NumericOption(String text,
String unit,
String tip,
String value)
Constructs a new option.
|
Modifier and Type | Method and Description |
---|---|
Component |
getComponent()
Gets a GUI component representing this option.
|
double |
getFloatingValue()
Gets this option's current setting as a double-precision floating point
value.
|
int |
getIntegerValue()
Gets this option's current setting as an integer value.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element ("Options").
|
void |
saveState(Element el)
Writes the current state to the given DOM element ("Options").
|
void |
setValue(String value)
Sets the GUI component to reflect the given value.
|
public NumericOption(String text, String unit, String tip, int value)
public NumericOption(String text, String unit, String tip, double value)
public int getIntegerValue()
public double getFloatingValue()
public Component getComponent()
getComponent
in class BioOption
public void setValue(String value)
public void saveState(Element el) throws SaveException
saveState
in interface Saveable
saveState
in class BioOption
SaveException
public void restoreState(Element el) throws SaveException
restoreState
in interface Saveable
restoreState
in class BioOption
SaveException
Copyright © 2015–2022 SciJava. All rights reserved.