public class CadDoubleParameter extends CadParameter
Class for Double values
Constructor and Description |
---|
CadDoubleParameter()
Initializes a new instance of the
CadDoubleParameter class. |
CadDoubleParameter(int attribute)
Initializes a new instance of the
CadDoubleParameter class. |
CadDoubleParameter(int type,
int optional)
Initializes a new instance of the
CadDoubleParameter class. |
CadDoubleParameter(int type,
int optional,
Object defaultValue)
Initializes a new instance of the
CadDoubleParameter class. |
Modifier and Type | Method and Description |
---|---|
double |
getValue()
Gets or sets the value.
|
void |
init(CadCodeValue value)
Initialize the specified value.
|
void |
init(Object value)
Initialize the specified value.
|
void |
setValue(double value)
Gets or sets the value.
|
getDefaultValue, getIntegralParameterType, getOptional, getSubClassName, getType, init, init, isSet, prepare, setDefaultValue, setIntegralParameterType, setOptional, setSet, setSubClassName
public CadDoubleParameter(int attribute)
Initializes a new instance of the CadDoubleParameter
class.
attribute
- The attribute.public CadDoubleParameter()
Initializes a new instance of the CadDoubleParameter
class.
public CadDoubleParameter(int type, int optional)
Initializes a new instance of the CadDoubleParameter
class.
type
- The type of the parameter.optional
- The optional.public CadDoubleParameter(int type, int optional, Object defaultValue)
Initializes a new instance of the CadDoubleParameter
class.
type
- The type of the parameter.optional
- The optional flag.defaultValue
- The default value.public double getValue()
Gets or sets the value.
public void setValue(double value)
Gets or sets the value.
value
- The value of the parameter.public void init(CadCodeValue value)
Initialize the specified value.
init
in class CadParameter
value
- The string value will be converted to Double.public void init(Object value)
Initialize the specified value.
init
in class CadParameter
value
- The value of the parameter.