public class IlvMeridian extends Object implements IlvPersistentObject
Modifier and Type | Field and Description |
---|---|
static IlvMeridian |
GREENWICH
The Greenwich meridian.
|
static IlvMeridian |
PARIS
The Paris meridian.
|
Constructor and Description |
---|
IlvMeridian(IlvInputStream stream)
Reads the object from an
IlvInputStream object. |
IlvMeridian(String name,
double longitude,
IlvAngularUnit angularUnit)
Constructs a new meridian.
|
Modifier and Type | Method and Description |
---|---|
double |
getLongitude()
Returns the longitude of this meridian, expressed in the units of this
meridian.
|
String |
getName()
Returns the name of this meridian.
|
IlvAngularUnit |
getUnit()
Returns the unit used to expressed the longitude of this meridian.
|
String |
toString()
Returns the string representation of this meridian.
|
void |
write(IlvOutputStream stream)
Writes the object to the specified
IlvOutputStream . |
public static final IlvMeridian GREENWICH
public static final IlvMeridian PARIS
public IlvMeridian(String name, double longitude, IlvAngularUnit angularUnit)
public IlvMeridian(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
object.stream
- The input stream.IlvReadFileException
- If the format is not correct.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
stream
- The stream to write this unit to.IOException
- If an I/O error occurs.public String getName()
public double getLongitude()
public IlvAngularUnit getUnit()
public String toString()
IlvMeridian
has the form:
IlvMeridian(name=[name], longitude=[longitude] [unit])
For example, the string representation of the Paris meridian would be:
IlvMeridian(name="Paris", longitude=2.33722917 d)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.