Package com.luciad.projection
Class TLcdProjectionFactory
java.lang.Object
com.luciad.projection.TLcdProjectionFactory
Factory class to create
ILcdProjection objects from a Properties object
or to serialize a given ILcdProjection object as properties into a
Properties object as side effect.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdProjectioncreateProjection(String aPrefix, Properties aProperties) This method will, given aPrefix and aProperties, return anILcdProjection.static voidwriteProjectionSFCT(ILcdProjection aProjection, String aPrefix, Properties aPropertiesSFCT) This method will, given aProjection, aPrefix and aPropertiesSFCT, write the properties of the projection as a side effect into the aPropertiesSFCT object.
-
Constructor Details
-
TLcdProjectionFactory
public TLcdProjectionFactory()
-
-
Method Details
-
createProjection
public static ILcdProjection createProjection(String aPrefix, Properties aProperties) throws IllegalArgumentException This method will, given aPrefix and aProperties, return anILcdProjection. It will look for the following key : <aPrefix>ILcdProjection.class : the name of the class, that implementsILcdProjection, and of which an instance should be created. The aProperties object should contain entries which will be analyzed by the various instances ofILcdProjectionwhich have a loadProperties method.- Parameters:
aPrefix- the prefix for the projection property names.aProperties- the Properties object from which to construct theILcdProjection.- Returns:
- an
ILcdProjectioncreated upon the given properties. - Throws:
IllegalArgumentException- if theILcdProjectioncannot be created.- See Also:
-
writeProjectionSFCT
public static void writeProjectionSFCT(ILcdProjection aProjection, String aPrefix, Properties aPropertiesSFCT) This method will, given aProjection, aPrefix and aPropertiesSFCT, write the properties of the projection as a side effect into the aPropertiesSFCT object. It will store the projection class with the following key : <aPrefix>ILcdProjection.class : the name of the class, that implementsILcdProjection, and of which an instance is passed.- Parameters:
aProjection- the projection to be serialized.aPrefix- the prefix for the projection property names.aPropertiesSFCT- the Properties object that will contain the serialized properties as side effect.- See Also:
-