public class TLcdXYModelReference extends Object implements ILcdModelReference, Cloneable
ILcdModelReference
that is not geo-referenced.Constructor and Description |
---|
TLcdXYModelReference() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes
Object.clone() public. |
void |
loadProperties(String aPrefix,
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(String aPrefix,
Properties aPropertiesSFCT)
Stores the properties that define this model reference into the specified
Properties object as a side
effect. |
public void loadProperties(String aPrefix, Properties aProperties) throws IllegalArgumentException
ILcdModelReference
loadProperties
in interface ILcdModelReference
aPrefix
- a common prefix for all property names that are read.aProperties
- the properties to be parsed.IllegalArgumentException
- if the model reference cannot be constructed from the properties.public void writePropertiesSFCT(String aPrefix, Properties aPropertiesSFCT) throws 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.IllegalArgumentException
- if the model reference cannot be serialized into properties.public ILcdPoint makeModelPoint()
ILcdModelReference
makeModelPoint
in interface ILcdModelReference
public 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 Object
Object.clone()