Class TLcyGridReference
java.lang.Object
com.luciad.reference.ALcdGeoReference
com.luciad.reference.TLcdGridReference
com.luciad.lucy.addons.modelreference.TLcyGridReference
- All Implemented Interfaces:
ILcdExtendedModelReference
,ILcdModelReference
,ILcdGeoReference
,ILcdGridReference
,ILcdCloneable
,ILcdXYWorldReference
,ILcdXYZWorldReference
,Serializable
,Cloneable
- Direct Known Subclasses:
TLcyUTMGridReference
Adds a property displayName and a property editable to its superclass. The
editable property tells the model reference addon if this geodetic reference
can be modified or not. The display name is used to present the geodetic
reference to a user.
- See Also:
-
Field Summary
Fields inherited from interface com.luciad.reference.ILcdGeoReference
CARTESIAN, GEODETIC
-
Constructor Summary
ConstructorDescriptionCreates a newTLcyGridReference
.TLcyGridReference
(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, double aFalseEasting, double aFalseNorthing, double aScale, double aUnitOfMeasure, double aRotation) Creates a newTLcyGridReference
, ready to be used.TLcyGridReference
(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, String aDisplayName, boolean aEditable) Creates a newTLcyGridReference
, ready to be used.TLcyGridReference
(TLcyGridReference aGridReference) Copy constructor.TLcyGridReference
(ILcdGridReference aGridReference, String aDisplayName, boolean aEditable) Creates a newTLcyGridReference
, ready to be used. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Makes a deep clone of this grid reference.boolean
Checks on all parameters, except for the name.Deprecated.Use #getName() instead.int
hashCode()
boolean
Returns true if thisTLcyGridReference
can be edited, false otherwise.void
loadProperties
(String aPrefix, Properties aProperties) This method will, givenaPrefix
, analyze theProperties
objectaProperties
to set the properties of thisTLcdGridReference
.void
setDisplayName
(String aDisplayName) Deprecated.Use #setName(String) instead.void
setEditable
(boolean aEditable) Sets true if thisTLcyGridReference
can be modified, false otherwise.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 specifiedProperties
object as a side effect.Methods inherited from class com.luciad.reference.TLcdGridReference
get2DEditableBounds, getCoordinateType, getCosRotation, getFalseEasting, getFalseNorthing, getProjection, getRotation, getScale, getSinRotation, getUnitOfMeasure, isBoundsAvailable, makeModelPoint, setFalseEasting, setFalseNorthing, setProjection, setRotation, setScale, setUnitOfMeasure
Methods inherited from class com.luciad.reference.ALcdGeoReference
getGeodeticDatum, getModelReferenceMetadata, getName, setGeodeticDatum, setModelReferenceMetadata, setName
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.reference.ILcdGeoReference
getGeodeticDatum
-
Constructor Details
-
TLcyGridReference
public TLcyGridReference()Creates a newTLcyGridReference
. You will have to set a geodetic datum and a projection before the grid reference can be used. -
TLcyGridReference
public TLcyGridReference(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, String aDisplayName, boolean aEditable) Creates a newTLcyGridReference
, ready to be used.- Parameters:
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.- See Also:
-
TLcyGridReference
public TLcyGridReference(ILcdGeodeticDatum aGeodeticDatum, ILcdProjection aProjection, double aFalseEasting, double aFalseNorthing, double aScale, double aUnitOfMeasure, double aRotation) Creates a newTLcyGridReference
, ready to be used.- Parameters:
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.- See Also:
-
TLcyGridReference
Copy constructor.- Parameters:
aGridReference
- The grid reference to copy.- See Also:
-
TLcyGridReference
Creates a newTLcyGridReference
, ready to be used. All necessary properties are taken from the givenILcdGridReference
.- Parameters:
aGridReference
- TheILcdGridReference
to take all properties from.aDisplayName
- The display name for this grid reference.aEditable
- True if this grid reference can be modified, false otherwise.- See Also:
-
-
Method Details
-
getDisplayName
Deprecated.Use #getName() instead.Returns the display name of thisTLcyGridReference
using the methodALcdGeoReference.getName()
.- Returns:
- the display name of this
TLcyGridReference
. - See Also:
-
setDisplayName
Deprecated.Use #setName(String) instead.Sets the display name of thisTLcyGridReference
using the methodALcdGeoReference.setName(String)
.- Parameters:
aDisplayName
- the display name of thisTLcyGeodeticReference
.- See Also:
-
isEditable
public boolean isEditable()Returns true if thisTLcyGridReference
can be edited, false otherwise.- Returns:
- true if this
TLcyGridReference
can be edited, false otherwise. - See Also:
-
setEditable
public void setEditable(boolean aEditable) Sets true if thisTLcyGridReference
can be modified, false otherwise.- Parameters:
aEditable
- True if thisTLcyGridReference
can be modified, false otherwise.
-
loadProperties
Description copied from class:TLcdGridReference
This method will, givenaPrefix
, analyze theProperties
objectaProperties
to set the properties of thisTLcdGridReference
. The values of following keys are retrieved:- <aPrefix>.TLcdGridReference.scale
- <aPrefix>.TLcdGridReference.falseNorthing
- <aPrefix>.TLcdGridReference.falseEasting
- <aPrefix>.TLcdGridReference.unitOfMeasure
- <aPrefix>.TLcdGridReference.rotation
aProperties
should contain entries which will be analyzed by theTLcdProjectionFactory
. 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 theTLcdModelReferenceMetadata.loadProperties(java.lang.String, java.util.Properties)
with the prefix"<aPrefix>.TLcdGridReference."
- Specified by:
loadProperties
in interfaceILcdModelReference
- Overrides:
loadProperties
in classTLcdGridReference
- 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.- See Also:
-
writePropertiesSFCT
public void writePropertiesSFCT(String aPrefix, Properties aProperties) 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
- Overrides:
writePropertiesSFCT
in classTLcdGridReference
- Parameters:
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.- Throws:
IllegalArgumentException
- if the model reference cannot be serialized into properties.- See Also:
-
equals
Description copied from class:TLcdGridReference
Checks on all parameters, except for the name.- Overrides:
equals
in classTLcdGridReference
- Parameters:
aObj
- the object to check for equality.- Returns:
- true if all parameters except the name of the grid reference are equal, false otherwise.
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTLcdGridReference
-
clone
Description copied from class:TLcdGridReference
Makes a deep clone of this grid reference.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdGridReference
- See Also:
-
toString
Description copied from class:TLcdGridReference
Returns the name of this grid reference if it is defined, calls super.toString otherwise.- Overrides:
toString
in classTLcdGridReference
- Returns:
- the name of this grid reference if it is defined.
-