public abstract class ValueConverter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValueConverter.DMSDegreesValueConverter
Converter for degrees:minutes:seconds format.
|
static class |
ValueConverter.HMSDegreesValueConverter
Converter for hours:minute:seconds format.
|
static class |
ValueConverter.UnitValueConverter
ValueConverter class which scales by a given factor
(represents a particular unit).
|
Constructor and Description |
---|
ValueConverter(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract double |
convertValue(String sval)
Converts a string value to a numeric for this format
|
String |
getName()
Returns format name.
|
String |
toString() |
abstract String |
unconvertValue(double dval)
Converts a numeric value to a string value for this format.
|
public ValueConverter(String name)
name
- format name (suitable for display in a combo box)public abstract double convertValue(String sval)
sval
- string valuesval
IllegalArgumentException
- if sval
doesn't make
sense to this converterpublic abstract String unconvertValue(double dval)
dval
- numeric valuedval
public String getName()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.