Class TLcdGML32Coordinates
- All Implemented Interfaces:
ILcdDataObject
,ILcdPointList
,ILcd2DEditablePointList
,ILcd3DEditablePointList
,ILcdCloneable
,ILcdDeepCloneable
,Serializable
,Cloneable
- Decimal: symbol used for a decimal point (default="." a stop or period)
- cs: symbol used to separate components within a tuple or coordinate string (default="," a comma)
- ts: symbol used to separate tuples or coordinate strings (default=" " a space)
Note that the implementation of the ILcd3DEditablePointList
interface in this
class has been made deprecated. This is because a coordinates object does not have enough information
to correctly implement it. In particular, the coordinates object does not know if the coordinate
values should be interpreted as lon-lat or lat-lon coordinates. In a larger context, this is
not an issue because coordinates are always encapsulated by other geometries (such as
for instance a line string) that do know how to interpret the coordinate values.
- Since:
- 10.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to thecs
attribute.static final TLcdDataProperty
Data property that maps to thedecimal
attribute.static final TLcdDataProperty
Data property that maps to thets
attribute.static final TLcdDataProperty
Data property that maps to the value defined by the simple content. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a deep clone of this object.Returns a deep clone of this object.getCs()
Returns the value of the property that maps to thecs
attribute.Returns the value of the property that maps to thedecimal
attribute.getPoint
(int aIndex) Deprecated.int
Returns the number ofILcdPoint
objects in the list.getTs()
Returns the value of the property that maps to thets
attribute.getValue()
getValue
(TLcdDataProperty aProperty) Returns the value of the given property.Returns the value of the property that maps to the value defined by the simple content.double[]
Returns the coordinate values.boolean
hasValue
(TLcdDataProperty aProperty) Indicates whether this data object has a value for the given property.void
insert2DPoint
(int aIndex, double aX, double aY) Deprecated.void
insert3DPoint
(int aIndex, double aX, double aY, double aZ) Deprecated.void
move2DPoint
(int aIndex, double aX, double aY) Deprecated.void
move3DPoint
(int aIndex, double aX, double aY, double aZ) Deprecated.void
removePointAt
(int aIndex) Removes the point at the given index from thisILcd3DEditablePointList
.void
Sets the value of the property that maps to thecs
attribute.void
setDecimal
(String aValue) Sets the value of the property that maps to thedecimal
attribute.void
Sets the value of the property that maps to thets
attribute.void
setValue
(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.void
void
setValueObject
(String aValue) Sets the value of the property that maps to the value defined by the simple content.toString()
void
translate2D
(double aDeltaX, double aDeltaY) Deprecated.void
translate2DPoint
(int aIndex, double aDeltaX, double aDeltaY) Deprecated.void
translate3D
(double aDeltaX, double aDeltaY, double aDeltaZ) Deprecated.void
translate3DPoint
(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ) Deprecated.Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, hasValue, setValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint
Methods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZ
-
Field Details
-
VALUE_PROPERTY
Data property that maps to the value defined by the simple content. The possible values for this property are instances ofString
. -
CS_PROPERTY
Data property that maps to thecs
attribute. The possible values for this property are instances ofString
. -
DECIMAL_PROPERTY
Data property that maps to thedecimal
attribute. The possible values for this property are instances ofString
. -
TS_PROPERTY
Data property that maps to thets
attribute. The possible values for this property are instances ofString
.
-
-
Constructor Details
-
TLcdGML32Coordinates
public TLcdGML32Coordinates() -
TLcdGML32Coordinates
-
-
Method Details
-
getValue
-
setValue
-
translate3D
Deprecated.Description copied from interface:ILcd3DEditablePointList
Translates all the points of thisILcd3DEditablePointList
from their current positions over the given translation vector in the 3D space.- Specified by:
translate3D
in interfaceILcd3DEditablePointList
- Parameters:
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.aDeltaZ
- the z coordinate of the translation vector.
-
move3DPoint
Deprecated.Description copied from interface:ILcd3DEditablePointList
Moves the specified point of thisILcd3DEditablePointList
to the given point in the 3D space.- Specified by:
move3DPoint
in interfaceILcd3DEditablePointList
- Parameters:
aIndex
- a valid index in the list of points.aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.
-
translate3DPoint
@Deprecated public void translate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ) Deprecated.Description copied from interface:ILcd3DEditablePointList
Translates the specified point of thisILcd3DEditablePointList
from its current position over the given translation vector in the 3D space.- Specified by:
translate3DPoint
in interfaceILcd3DEditablePointList
- Parameters:
aIndex
- a valid new index in the list of points.aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.aDeltaZ
- the z coordinate of the translation vector.
-
insert3DPoint
Deprecated.Description copied from interface:ILcd3DEditablePointList
Inserts a point at the given index into thisILcd3DEditablePointList
.- Specified by:
insert3DPoint
in interfaceILcd3DEditablePointList
- Parameters:
aIndex
- a valid new index in the list of points.aX
- the x coordinate of the new point.aY
- the y coordinate of the new point.aZ
- the z coordinate of the new point.
-
removePointAt
public void removePointAt(int aIndex) Description copied from interface:ILcd3DEditablePointList
Removes the point at the given index from thisILcd3DEditablePointList
.- Specified by:
removePointAt
in interfaceILcd2DEditablePointList
- Specified by:
removePointAt
in interfaceILcd3DEditablePointList
- Parameters:
aIndex
- a valid index in the list ofILcdPoint
objects.
-
translate2D
Deprecated.Description copied from interface:ILcd2DEditablePointList
Translates all the points of thisILcd2DEditablePointList
from their current positions over the given translation vector in the 2D space. Only the first two dimensions of the points are considered. The third dimension is left unchanged.- Specified by:
translate2D
in interfaceILcd2DEditablePointList
- Parameters:
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.
-
move2DPoint
Deprecated.Description copied from interface:ILcd2DEditablePointList
Moves the specified point of thisILcd2DEditablePointList
to the given point in the 2D space. Only the first two dimensions of theILcdShape
are considered. The third dimension is left unchanged.- Specified by:
move2DPoint
in interfaceILcd2DEditablePointList
- Parameters:
aIndex
- a valid index in the list of points.aX
- the x coordinate of the point.aY
- the y coordinate of the point.
-
translate2DPoint
Deprecated.Description copied from interface:ILcd2DEditablePointList
Translates the specified point of thisILcd2DEditablePointList
from its current position over the given translation vector in the 2D space. Only the first two dimensions of the points are considered. The third dimension is left unchanged.- Specified by:
translate2DPoint
in interfaceILcd2DEditablePointList
- Parameters:
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.
-
insert2DPoint
Deprecated.Description copied from interface:ILcd2DEditablePointList
Inserts a point at the given index into thisILcd2DEditablePointList
.- Specified by:
insert2DPoint
in interfaceILcd2DEditablePointList
- Parameters:
aIndex
- a valid new index in the list of points.aX
- the x coordinate of the new point.aY
- the y coordinate of the new point.
-
getPointCount
public int getPointCount()Description copied from interface:ILcdPointList
Returns the number ofILcdPoint
objects in the list.- Specified by:
getPointCount
in interfaceILcdPointList
- Returns:
- the number of
ILcdPoint
objects in the list.
-
getPoint
Deprecated.Description copied from interface:ILcdPointList
Returns theILcdPoint
at a given index.- Specified by:
getPoint
in interfaceILcdPointList
- Parameters:
aIndex
- a valid index in the list ofILcdPoint
objects.- Returns:
- the
ILcdPoint
at the given index. - Throws:
IndexOutOfBoundsException
- if the given index is out of bounds.
-
getValue
Description copied from interface:ILcdDataObject
Returns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the
data object's type
or in one of its super types. Otherwise anIllegalArgumentException
is thrown.- Specified by:
getValue
in interfaceILcdDataObject
- Overrides:
getValue
in classTLcdDataObject
- Parameters:
aProperty
- the property for which the value is to be returned- Returns:
- the value of the given property for this data object
-
hasValue
Description copied from interface:ILcdDataObject
Indicates whether this data object has a value for the given property.aProperty
is from theright data type
, and this instance has a value for it: returnstrue
aProperty
is from theright data type
, and this instance has no value for it: returnsfalse
aProperty
is not from theright data type
: not allowed, you will get IllegalArgumentExceptionaProperty
isnull
: not allowed, you will get NullPointerException
- Specified by:
hasValue
in interfaceILcdDataObject
- Overrides:
hasValue
in classTLcdDataObject
- Parameters:
aProperty
- the property for which to return whether a value is present or not.- Returns:
true
if this data object has a value for the given property,false
otherwise.
-
setValue
Description copied from interface:ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException
.- Specified by:
setValue
in interfaceILcdDataObject
- Overrides:
setValue
in classTLcdDataObject
- Parameters:
aProperty
- the property for which the value is to be setaValue
- the value to set- See Also:
-
toString
- Overrides:
toString
in classTLcdDataObject
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map)
.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdDataObject
- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject
, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()
method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneable
orILcdCloneable
then this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clone
in interfaceILcdDeepCloneable
- Overrides:
clone
in classTLcdDataObject
- Parameters:
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getValues
public double[] getValues()Returns the coordinate values. This array is computed from the value of theALcdGML32Coordinates.VALUE_PROPERTY
.- Returns:
- the coordinate values of this object
- See Also:
-
getValueObject
Returns the value of the property that maps to the value defined by the simple content.- Returns:
- the value of the
VALUE_PROPERTY
property.
-
setValueObject
Sets the value of the property that maps to the value defined by the simple content.- Parameters:
aValue
- the value to set for theVALUE_PROPERTY
property.
-
getCs
Returns the value of the property that maps to thecs
attribute.- Returns:
- the value of the
CS_PROPERTY
property.
-
setCs
Sets the value of the property that maps to thecs
attribute.- Parameters:
aValue
- the value to set for theCS_PROPERTY
property.
-
getDecimal
Returns the value of the property that maps to thedecimal
attribute.- Returns:
- the value of the
DECIMAL_PROPERTY
property.
-
setDecimal
Sets the value of the property that maps to thedecimal
attribute.- Parameters:
aValue
- the value to set for theDECIMAL_PROPERTY
property.
-
getTs
Returns the value of the property that maps to thets
attribute.- Returns:
- the value of the
TS_PROPERTY
property.
-
setTs
Sets the value of the property that maps to thets
attribute.- Parameters:
aValue
- the value to set for theTS_PROPERTY
property.
-