|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.model.csct.ct.MathTransformProvider
public abstract class MathTransformProvider
Base class for MathTransform
providers.
Instance of this class allow the creation of transform
objects from a classification name.
Note: this class is not part of OpenGIS specification and
may change in a future version. Do not rely strongly on it.
Field Summary | |
---|---|
static javax.media.jai.ParameterListDescriptor |
DEFAULT_PROJECTION_DESCRIPTOR
A default parameter list descriptor for map projections. |
protected static javax.media.jai.util.Range |
LATITUDE_RANGE
Range of latitude values. |
protected static javax.media.jai.util.Range |
LONGITUDE_RANGE
Range of longitude values. |
protected static javax.media.jai.util.Range |
POSITIVE_RANGE
Range of positives values. |
Constructor Summary | |
---|---|
(package private) |
MathTransformProvider(String classification,
int nameKey,
javax.media.jai.ParameterListDescriptor inherit)
Construct a new provider. |
protected |
MathTransformProvider(String classification,
javax.media.jai.ParameterListDescriptor inherit)
Construct a new provider. |
Method Summary | |
---|---|
abstract MathTransform |
create(javax.media.jai.ParameterList parameters)
Returns a transform for the specified parameters. |
String |
getClassName()
Returns the classification name. |
String |
getName(Locale locale)
Returns a human readable name localized for the specified locale. |
javax.media.jai.ParameterList |
getParameterList()
Returns a newly created parameter list. |
(package private) javax.media.jai.ParameterListDescriptor |
getParameterListDescriptor()
Returns the parameter list descriptor. |
protected void |
put(String parameter,
double defaultValue,
javax.media.jai.util.Range range)
Adds or changes a parameter to this math transform provider. |
(package private) void |
putInt(String parameter,
int defaultValue,
javax.media.jai.util.Range range)
Adds or changes an integer parameter to this math transform provider. |
String |
toString()
Returns a string representation for this provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final javax.media.jai.util.Range POSITIVE_RANGE
protected static final javax.media.jai.util.Range LONGITUDE_RANGE
protected static final javax.media.jai.util.Range LATITUDE_RANGE
public static final javax.media.jai.ParameterListDescriptor DEFAULT_PROJECTION_DESCRIPTOR
"semi_major"
,
"semi_minor"
,
"central_meridian"
,
"latitude_of_origin"
,
"false_easting"
and
"false_northing"
parameters.
Constructor Detail |
---|
protected MathTransformProvider(String classification, javax.media.jai.ParameterListDescriptor inherit)
classification
- The classification name.inherit
- The parameter list descriptor to inherit from, or null
if there is none. All parameter descriptions from inherit
will
be copied into this newly created MathTransformProvider
. For
map projections, this argument may be DEFAULT_PROJECTION_DESCRIPTOR
.
Subclasses may add or change parameters in their constructor by invoking
put(java.lang.String, double, javax.media.jai.util.Range)
.MathTransformProvider(String classification, int nameKey, javax.media.jai.ParameterListDescriptor inherit)
classification
- The classification name.nameKey
- Resources key for a human readable name.
This is used for getName(java.util.Locale)
implementation.inherit
- The parameter list descriptor to inherit from, or null
if there is none. All parameter descriptions from inherit
will
be copied into this newly created MathTransformProvider
. For
map projections, this argument may be DEFAULT_PROJECTION_DESCRIPTOR
.
Subclasses may add or change parameters in their constructor by invoking
put(java.lang.String, double, javax.media.jai.util.Range)
.Method Detail |
---|
protected final void put(String parameter, double defaultValue, javax.media.jai.util.Range range) throws IllegalStateException
MathTransformProvider
has been constructed with DEFAULT_PROJECTION_DESCRIPTOR
as argument, then default values
are already provided for "semi_major", "semi_minor", "central_meridian" and "latitude_of_origin".
Subclasses may call this method in their constructor for adding or changing parameters.
parameter
- The parameter name.defaultValue
- The default value for this parameter, or Double.NaN
if there is none.range
- The range of legal values. May be one of the predefined constants
(POSITIVE_RANGE
, LONGITUDE_RANGE
, LATITUDE_RANGE
)
or any other Range
object. May be null
if all values
are valid for this parameter.
IllegalStateException
- If getParameterList()
has already been invoked prior to this call.final void putInt(String parameter, int defaultValue, javax.media.jai.util.Range range) throws IllegalStateException
double
values.
This is why this method is not yet public. Current SEAGIS version use
integer parameters only for matrix dimension and for a custom parameter
in geocentric transform. We hope the user will barely notice it...
parameter
- The parameter name.defaultValue
- The default value for this parameter.range
- The range of legal values. This is up to the caller to
build is own range with integer values (predefined ranges
like POSITIVE_RANGE
will not work).
IllegalStateException
- If getParameterList()
has already been invoked prior to this call.public String getClassName()
public String getName(Locale locale)
final javax.media.jai.ParameterListDescriptor getParameterListDescriptor()
public javax.media.jai.ParameterList getParameterList()
public abstract MathTransform create(javax.media.jai.ParameterList parameters)
parameters
- The parameter values in standard units.
MathTransform
object of this classification.public String toString()
toString
in class Object
|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net