public class TLcyGridReference extends TLcdGridReference
TLcdGridReference
,
Serialized FormCARTESIAN, GEODETIC
Constructor and Description |
---|
TLcyGridReference()
Creates a new
TLcyGridReference . |
TLcyGridReference(ILcdGeodeticDatum aGeodeticDatum,
ILcdProjection aProjection,
double aFalseEasting,
double aFalseNorthing,
double aScale,
double aUnitOfMeasure,
double aRotation)
Creates a new
TLcyGridReference , ready to be used. |
TLcyGridReference(ILcdGeodeticDatum aGeodeticDatum,
ILcdProjection aProjection,
String aDisplayName,
boolean aEditable)
Creates a new
TLcyGridReference , ready to be used. |
TLcyGridReference(ILcdGridReference aGridReference,
String aDisplayName,
boolean aEditable)
Creates a new
TLcyGridReference , ready to be used. |
TLcyGridReference(TLcyGridReference aGridReference)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes a deep clone of this grid reference.
|
boolean |
equals(Object aObj)
Checks on all parameters, except for the name.
|
String |
getDisplayName()
Deprecated.
Use #getName() instead.
|
int |
hashCode() |
boolean |
isEditable()
Returns true if this
TLcyGridReference can be edited, false otherwise. |
void |
loadProperties(String aPrefix,
Properties aProperties)
This method will, given
aPrefix , analyze the
Properties object aProperties
to set the properties of this TLcdGridReference . |
void |
setDisplayName(String aDisplayName)
Deprecated.
Use #setName(String) instead.
|
void |
setEditable(boolean aEditable)
Sets true if this
TLcyGridReference can be modified, false otherwise. |
String |
toString()
Returns the name of this grid reference if it is defined, calls super.toString otherwise.
|
void |
writePropertiesSFCT(String aPrefix,
Properties aProperties)
Stores the properties that define this model reference into the specified
Properties object as a side
effect. |
get2DEditableBounds, getCoordinateType, getCosRotation, getFalseEasting, getFalseNorthing, getProjection, getRotation, getScale, getSinRotation, getUnitOfMeasure, isBoundsAvailable, makeModelPoint, setFalseEasting, setFalseNorthing, setProjection, setRotation, setScale, setUnitOfMeasure
getGeodeticDatum, getModelReferenceMetadata, getName, setGeodeticDatum, setModelReferenceMetadata, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getGeodeticDatum
public TLcyGridReference()
TLcyGridReference
. You will have to set a
geodetic datum and a projection before the grid reference can be used.public TLcyGridReference(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, String aDisplayName, boolean aEditable)
TLcyGridReference
, ready to be used.aGeodeticDatum
- The geodetic datum use.aProjection
- The projection to use.aDisplayName
- The display name for this grid reference.aEditable
- True if this grid reference can be modified, false otherwise.TLcdGridReference
public TLcyGridReference(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, double aFalseEasting, double aFalseNorthing, double aScale, double aUnitOfMeasure, double aRotation)
TLcyGridReference
, ready to be used.aGeodeticDatum
- The geodetic datum use.aProjection
- The projection to use.aFalseEasting
- The false easting of this grid reference.aFalseNorthing
- The false northing of this grid reference.aScale
- The scale of this grid reference.aUnitOfMeasure
- The unit of measure of this grid reference.aRotation
- The rotation of this grid reference.TLcdGridReference
public TLcyGridReference(TLcyGridReference aGridReference)
aGridReference
- The grid reference to copy.TLcdGridReference
public TLcyGridReference(ILcdGridReference aGridReference, String aDisplayName, boolean aEditable)
TLcyGridReference
, ready to be used. All necessary properties are
taken from the given ILcdGridReference
.aGridReference
- The ILcdGridReference
to take all properties from.aDisplayName
- The display name for this grid reference.aEditable
- True if this grid reference can be modified, false otherwise.TLcdGridReference
@Deprecated public String getDisplayName()
TLcyGridReference
using the method ALcdGeoReference.getName()
.TLcyGridReference
.setDisplayName(java.lang.String)
@Deprecated public void setDisplayName(String aDisplayName)
TLcyGridReference
using the method ALcdGeoReference.setName(String)
.aDisplayName
- the display name of this TLcyGeodeticReference
.getDisplayName()
public boolean isEditable()
TLcyGridReference
can be edited, false otherwise.TLcyGridReference
can be edited, false otherwise.setEditable(boolean)
public void setEditable(boolean aEditable)
TLcyGridReference
can be modified, false otherwise.aEditable
- True if this TLcyGridReference
can be modified, false otherwise.public void loadProperties(String aPrefix, Properties aProperties) throws IllegalArgumentException
TLcdGridReference
aPrefix
, analyze the
Properties
object aProperties
to set the properties of this TLcdGridReference
.
The values of following keys are retrieved:
aProperties
should contain
entries which will be analyzed by the TLcdProjectionFactory
.
The keys of those entries should begin with '<aPrefix>TLcdGridReference.projection.'.
To be able to set the property geodeticDatum the aProperties should contain
entries which will be analyzed by the TLcdGeodeticDatumFactory
.
The keys of those entries should begin with
'<aPrefix>.TLcdGridReference.geodeticDatum.'.
The properties object is also passed to the TLcdModelReferenceMetadata.loadProperties(java.lang.String, java.util.Properties)
with the prefix "<aPrefix>.TLcdGridReference."
loadProperties
in interface ILcdModelReference
loadProperties
in class TLcdGridReference
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.TLcdProjectionFactory
,
TLcdGeodeticDatumFactory
,
TLcdModelReferenceMetadata
public void writePropertiesSFCT(String aPrefix, Properties aProperties) 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
writePropertiesSFCT
in class TLcdGridReference
aPrefix
- a common prefix for all property names written.aProperties
- 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.TLcdGridReference.loadProperties(java.lang.String, java.util.Properties)
public boolean equals(Object aObj)
TLcdGridReference
equals
in class TLcdGridReference
aObj
- the object to check for equality.public int hashCode()
hashCode
in class TLcdGridReference
public Object clone()
TLcdGridReference
clone
in interface ILcdCloneable
clone
in class TLcdGridReference
Object.clone()
public String toString()
TLcdGridReference
toString
in class TLcdGridReference