public static class ValueConverter.UnitValueConverter extends ValueConverter
ValueConverter.DMSDegreesValueConverter, ValueConverter.HMSDegreesValueConverter, ValueConverter.UnitValueConverter
Constructor and Description |
---|
UnitValueConverter(String name,
double factor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
convertValue(String sval)
Converts a string value to a numeric for this format
|
String |
unconvertValue(double dval)
Converts a numeric value to a string value for this format.
|
getName, toString
public UnitValueConverter(String name, double factor)
name
- unit namefactor
- unit conversion factorpublic double convertValue(String sval)
ValueConverter
convertValue
in class ValueConverter
sval
- string valuesval
public String unconvertValue(double dval)
ValueConverter
unconvertValue
in class ValueConverter
dval
- numeric valuedval
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.