@Deprecated public class IlvUnitConverter extends Object implements Serializable, IlvPersistentObject
This class is in the ilog.views.maps
package since Rogue Wave JViews 3.0.
In Rogue Wave JViews 2.x, the IlvUnitConverter
class was located in the
ilog.views.maps.projection
package.
Modifier and Type | Field and Description |
---|---|
static IlvUnitConverter |
FT
Deprecated.
The unit converter for international feet.
|
static IlvUnitConverter |
KILOMETERS
Deprecated.
The unit converter for kilometers.
|
static IlvUnitConverter |
KMI
Deprecated.
The unit converter for international nautical miles.
|
static IlvUnitConverter |
METERS
Deprecated.
The unit converter for meters.
|
static IlvUnitConverter |
MI
Deprecated.
The unit converter for international statute miles.
|
Constructor and Description |
---|
IlvUnitConverter(double toMeters,
String unit)
Deprecated.
Defines a new instance of the class
IlvUnitConverter . |
IlvUnitConverter(double toMeters,
String unit,
String description)
Deprecated.
Defines a new instance of the class
IlvUnitConverter . |
IlvUnitConverter(IlvInputStream stream)
Deprecated.
Reads the object from an
IlvInputStream object. |
Modifier and Type | Method and Description |
---|---|
double |
fromMeters(double meters)
Deprecated.
Converts meters to the measurement unit.
|
String |
getDescription()
Deprecated.
Returns the description of the measurement unit.
|
double |
getToMeters()
Deprecated.
Returns the coefficient used to convert the measurement unit to meters.
|
String |
getUnit()
Deprecated.
Returns the name of the measurement unit.
|
double |
toMeters(double units)
Deprecated.
Converts the measurement unit to meters.
|
void |
write(IlvOutputStream stream)
Deprecated.
Writes the object to an
IlvOutputStream object. |
public static final IlvUnitConverter METERS
public static final IlvUnitConverter KILOMETERS
public static final IlvUnitConverter KMI
public static final IlvUnitConverter FT
public static final IlvUnitConverter MI
public IlvUnitConverter(double toMeters, String unit)
IlvUnitConverter
.toMeters
- The coefficient used to convert the measurement unit to
metersunit
- The name of the measurement unitpublic IlvUnitConverter(double toMeters, String unit, String description)
IlvUnitConverter
.toMeters
- The coefficient used to convert the measurement unit to
metersunit
- The name of the measurement unitdescription
- A description of the measurement unitpublic IlvUnitConverter(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
object.stream
- The input streamIlvReadFileException
- if the format is not correct.public final String getUnit()
public final String getDescription()
public final double getToMeters()
public final double fromMeters(double meters)
meters
- The dimension in meters.public final double toMeters(double units)
units
- The dimension in the measurement unitpublic void write(IlvOutputStream stream) throws IOException
IlvOutputStream
object.write
in interface IlvPersistentObject
stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.