public class TLcdXYModelReference extends java.lang.Object implements ILcdModelReference, java.lang.Cloneable
ILcdModelReference
that is not geo-referenced.Constructor and Description |
---|
TLcdXYModelReference() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Makes
Object.clone() public. |
void |
loadProperties(java.lang.String aPrefix,
java.util.Properties aProperties)
Initializes this model reference based on the information in the specified properties.
|
ILcdPoint |
makeModelPoint()
Creates a model point that is compatible with this model reference.
|
void |
writePropertiesSFCT(java.lang.String aPrefix,
java.util.Properties aPropertiesSFCT)
Stores the properties that define this model reference into the specified
Properties object as a side
effect. |
public void loadProperties(java.lang.String aPrefix, java.util.Properties aProperties) throws java.lang.IllegalArgumentException
ILcdModelReference
loadProperties
in interface ILcdModelReference
aPrefix
- a common prefix for all property names that are read.aProperties
- the properties to be parsed.java.lang.IllegalArgumentException
- if the model reference cannot be constructed from the properties.public void writePropertiesSFCT(java.lang.String aPrefix, java.util.Properties aPropertiesSFCT) throws java.lang.IllegalArgumentException
ILcdModelReference
Properties
object as a side
effect.
Each particular implementation of this interface can define which properties it stores.writePropertiesSFCT
in interface ILcdModelReference
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.java.lang.IllegalArgumentException
- if the model reference cannot be serialized into properties.public ILcdPoint makeModelPoint()
ILcdModelReference
makeModelPoint
in interface ILcdModelReference
public java.lang.Object clone()
ILcdCloneable
Makes Object.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 );
}
}
clone
in interface ILcdCloneable
clone
in class java.lang.Object
Object.clone()