Package com.luciad.reference
Class TLcdXYModelReference
java.lang.Object
com.luciad.reference.TLcdXYModelReference
- All Implemented Interfaces:
ILcdModelReference
,ILcdCloneable
,Serializable
,Cloneable
Implementation of
ILcdModelReference
that is not geo-referenced.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.void
loadProperties
(String aPrefix, Properties aProperties) Initializes this model reference based on the information in the specified properties.Creates a model point that is compatible with this model reference.void
writePropertiesSFCT
(String aPrefix, Properties aPropertiesSFCT) Stores the properties that define this model reference into the specifiedProperties
object as a side effect.
-
Constructor Details
-
TLcdXYModelReference
public TLcdXYModelReference()
-
-
Method Details
-
loadProperties
Description copied from interface:ILcdModelReference
Initializes this model reference based on the information in the specified properties. Each particular implementation of this interface can define which properties it reads. This method should only be called once to initialize this model reference (model references should be immutable).- Specified by:
loadProperties
in interfaceILcdModelReference
- Parameters:
aPrefix
- a common prefix for all property names that are read.aProperties
- the properties to be parsed.- Throws:
IllegalArgumentException
- if the model reference cannot be constructed from the properties.
-
writePropertiesSFCT
public void writePropertiesSFCT(String aPrefix, Properties aPropertiesSFCT) throws IllegalArgumentException Description copied from interface:ILcdModelReference
Stores the properties that define this model reference into the specifiedProperties
object as a side effect. Each particular implementation of this interface can define which properties it stores.- Specified by:
writePropertiesSFCT
in interfaceILcdModelReference
- Parameters:
aPrefix
- a common prefix for all property names written.aPropertiesSFCT
- the properties that will contain the serialized properties for this model reference, as a side effect.- Throws:
IllegalArgumentException
- if the model reference cannot be serialized into properties.
-
makeModelPoint
Description copied from interface:ILcdModelReference
Creates a model point that is compatible with this model reference. It is unspecified how (which coordinates) the point is initialized. Users should initialize the point correctly before inserting it into a model.- Specified by:
makeModelPoint
in interfaceILcdModelReference
- Returns:
- a point that is compatible with this model reference.
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.clone()
public.java.lang.Object
, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-