|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectWeakBase
Formulas
Nature
public final class Nature
Exports methods from the org.geotools.nature
package as
OpenOffice add-ins.
Field Summary |
---|
Fields inherited from class Formulas |
---|
methods |
Fields inherited from class WeakBase |
---|
_mapImplementationIds, _mapTypes |
Fields inherited from interface XAddIn |
---|
UNOTYPEINFO |
Fields inherited from interface XServiceName |
---|
UNOTYPEINFO |
Fields inherited from interface XServiceInfo |
---|
UNOTYPEINFO |
Fields inherited from interface XWeak |
---|
UNOTYPEINFO |
Fields inherited from interface XTypeProvider |
---|
UNOTYPEINFO |
Constructor Summary | |
---|---|
Nature()
Constructs a default implementation of XNature interface. |
Method Summary | |
---|---|
static XSingleServiceFactory |
__getServiceFactory(String implementation,
XMultiServiceFactory factories,
XRegistryKey registry)
Returns a factory for creating the service. |
static boolean |
__writeRegistryServiceInfo(XRegistryKey registry)
Writes the service information into the given registry key. |
double |
getAzimuth(XPropertySet xOptions,
double latitude,
double longitude,
double time)
Returns the Sun's azimuth in degrees. |
double |
getElevation(XPropertySet xOptions,
double latitude,
double longitude,
double time)
Returns the Sun's elevation angle in degrees. |
double |
getNoonTime(XPropertySet xOptions,
double latitude,
double longitude,
double time)
Returns the noon time (in GMT) when the Sun reach its highest point. |
double |
getSeaWaterDensity(XPropertySet xOptions,
double salinity,
double temperature,
double pressure)
Computes sea water density as a function of salinity, temperature and pressure. |
double |
getSeaWaterMeltingPoint(XPropertySet xOptions,
double salinity,
double pressure)
Computes the fusion temperature (melting point) as a function of salinity and pressure. |
double |
getSeaWaterSaturationO2(XPropertySet xOptions,
double salinity,
double temperature)
Computes the saturation in disolved oxygen (µmol/kg) as a function of salinity and temperature. |
double |
getSeaWaterSoundVelocity(XPropertySet xOptions,
double salinity,
double temperature,
double pressure)
Computes the sound velocity in sea water as a function of salinity, temperature and pressure. |
String |
getServiceName()
The service name that can be used to create such an object by a factory. |
String[] |
getSupportedServiceNames()
Provides the supported service names of the implementation, including also indirect service names. |
double |
getSynodicMonthLength(XPropertySet xOptions,
double time)
Returns the synodic month length in days. |
double |
getTropicalYearLength(XPropertySet xOptions,
double time)
Returns the tropical year length in days. |
boolean |
supportsService(String name)
Tests whether the specified service is supported, i.e. implemented by the implementation. |
Methods inherited from class WeakBase |
---|
finalize, getImplementationId, getTypes, queryAdapter |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Nature()
XNature
interface.
Method Detail |
---|
public static XSingleServiceFactory __getServiceFactory(String implementation, XMultiServiceFactory factories, XRegistryKey registry)
com.sun.star.comp.loader.JavaLoader
; do not rename!
implementation
- The name of the implementation for which a service is desired.factories
- The service manager to be used if needed.registry
- The registry key
public static boolean __writeRegistryServiceInfo(XRegistryKey registry)
com.sun.star.comp.loader.JavaLoader
; do not rename!
registry
- The registry key.
true
if the operation succeeded.public String getServiceName()
getServiceName
in interface XServiceName
getServiceName
in class Formulas
public String[] getSupportedServiceNames()
getSupportedServiceNames
in interface XServiceInfo
public boolean supportsService(String name)
supportsService
in interface XServiceInfo
name
- Name of service to be tested.
true
if the service is supported, false
otherwise.public double getNoonTime(XPropertySet xOptions, double latitude, double longitude, double time)
getNoonTime
in interface XNature
xOptions
- Provided by OpenOffice.latitude
- The latitude of observation point, in degrees.longitude
- The longitude of observation point, in degrees.time
- The observation date.public double getElevation(XPropertySet xOptions, double latitude, double longitude, double time)
getElevation
in interface XNature
xOptions
- Provided by OpenOffice.latitude
- The latitude of observation point, in degrees.longitude
- The longitude of observation point, in degrees.time
- The observation date and time, in GMT.public double getAzimuth(XPropertySet xOptions, double latitude, double longitude, double time)
getAzimuth
in interface XNature
xOptions
- Provided by OpenOffice.latitude
- The latitude of observation point, in degrees.longitude
- The longitude of observation point, in degrees.time
- The observation date and time, in GMT.public double getTropicalYearLength(XPropertySet xOptions, double time)
getTropicalYearLength
in interface XNature
xOptions
- Provided by OpenOffice.time
- A date that contains the year.public double getSynodicMonthLength(XPropertySet xOptions, double time)
getSynodicMonthLength
in interface XNature
xOptions
- Provided by OpenOffice.time
- A date that contains the month.public double getSeaWaterDensity(XPropertySet xOptions, double salinity, double temperature, double pressure)
getSeaWaterDensity
in interface XNature
salinity
- Salinity PSS-78 (0 to 42).temperature
- Temperature ITS-68 (-2 to 40°C).pressure
- Pressure in decibars (0 to 105 dbar),
not including atmospheric pressure.
public double getSeaWaterMeltingPoint(XPropertySet xOptions, double salinity, double pressure)
getSeaWaterMeltingPoint
in interface XNature
salinity
- Salinity PSS-78.pressure
- Pressure in decibars, not including atmospheric pressure.public double getSeaWaterSoundVelocity(XPropertySet xOptions, double salinity, double temperature, double pressure)
getSeaWaterSoundVelocity
in interface XNature
salinity
- Salinity PSS-78.temperature
- Temperature ITS-68.pressure
- Pressure in decibars, not including atmospheric pressure.public double getSeaWaterSaturationO2(XPropertySet xOptions, double salinity, double temperature)
getSeaWaterSaturationO2
in interface XNature
salinity
- Salinity PSS-78.temperature
- Temperature ITS-68.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |