Class TLcdGML31MultiLineString
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdEditableShapeList,ILcdShape,ILcdShapeList,ILcdCloneable,ILcdDeepCloneable,ILcdFeatured,ILcdInvalidateable,ILcdSelfDescribedFeatured,Serializable,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyProperty that maps on thegidattribute.static final TLcdDataPropertyData property that maps to thelineStringMemberelement.Fields inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGeometry
SRS_PROPERTYFields inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGML
DESCRIPTION_PROPERTY, ID_PROPERTY, META_DATA_PROPERTY_PROPERTY, NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts the specified shape at the specified position in thisILcdShapeList.voidAppends the specified shape to the end of thisILcdShapeList.voidAppends the specified array of shapes to the end of thisILcdShapeList.voidRemoves all of the shapes from thisILcdShapeList.clone()Returns a deep clone of this object.Returns a deep clone of this object.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the focus point of thisILcdShape.getGid()Gets the value of theGID_PROPERTYproperty.Returns the value of the property that maps to thelineStringMemberelement.getShape(int aIndex) Returns theILcdShapeat the given index.intReturns the number ofILcdShapeobjects in the list.removeShape(int aIndex) Removes the shape at the specified position in thisILcdShapeList.booleanremoveShape(ILcdShape aShape) Removes the first occurrence of the specified shape in thisILcdShapeList.voidremoveShapes(ILcdShape[] aShapes) Removes all shapes from thisILcdShapeListthat are contained in the specified array of shapes.voidSets the value of theGID_PROPERTYproperty.Replaces the shape at the specified position in thisILcdShapeListwith the specified shape.voidReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.voidshapeChanged(int aIndex) Notifies thisILcdShapeListthat the shape at the specified position has changed.voidshapeChanged(ILcdShape aShape) Notifies thisILcdShapeListthat the specified shape has changed.voidNotifies thisILcdShapeListthat some (possibly all) of its shapes have changed.Methods inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGeometricAggregate
invalidateObjectMethods inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGeometry
getSrs, setSrs, toStringMethods inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGML
getDescription, getId, getMetaDataProperty, getName, setDescription, setIdMethods inherited from class com.luciad.datamodel.TLcdFeaturedDataObject
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeatureMethods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue
-
Field Details
-
LINE_STRING_MEMBER_PROPERTY
Data property that maps to thelineStringMemberelement. The possible values for this property are instances ofList<TLcdGML31LineStringProperty>. -
GID_PROPERTY
Property that maps on thegidattribute. Acceptable values for this property are instances ofjava.lang.String.
-
-
Constructor Details
-
TLcdGML31MultiLineString
public TLcdGML31MultiLineString() -
TLcdGML31MultiLineString
-
-
Method Details
-
addShape
Description copied from interface:ILcdEditableShapeListInserts the specified shape at the specified position in thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Overrides:
addShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- the index at which the shape is to be inserted.aShape- the shape to be inserted.
-
addShape
Description copied from interface:ILcdEditableShapeListAppends the specified shape to the end of thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Overrides:
addShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aShape- the shape to be appended to thisILcdShapeList.
-
addShapes
Description copied from interface:ILcdEditableShapeListAppends the specified array of shapes to the end of thisILcdShapeList.- Specified by:
addShapesin interfaceILcdEditableShapeList- Overrides:
addShapesin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be appended to thisILcdShapeList.
-
clearShapes
public void clearShapes()Description copied from interface:ILcdEditableShapeListRemoves all of the shapes from thisILcdShapeList.- Specified by:
clearShapesin interfaceILcdEditableShapeList- Overrides:
clearShapesin classTLcdGML31AbstractGeometricAggregate
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves the shape at the specified position in thisILcdShapeList. Shifts any subsequent shapes to the left. Returns the shape that was removed from thisILcdShapeList.- Specified by:
removeShapein interfaceILcdEditableShapeList- Overrides:
removeShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- the index of the shape to removed.- Returns:
- the shape previously at the specified position.
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves the first occurrence of the specified shape in thisILcdShapeList. If thisILcdShapeListdoes not contain the shape, it is unchanged.- Specified by:
removeShapein interfaceILcdEditableShapeList- Overrides:
removeShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aShape- the shape to be removed, if present.- Returns:
trueif thisILcdShapeListcontained the specified element.
-
removeShapes
Description copied from interface:ILcdEditableShapeListRemoves all shapes from thisILcdShapeListthat are contained in the specified array of shapes.- Specified by:
removeShapesin interfaceILcdEditableShapeList- Overrides:
removeShapesin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be removed from thisILcdShapeList.
-
setShape
Description copied from interface:ILcdEditableShapeListReplaces the shape at the specified position in thisILcdShapeListwith the specified shape.- Specified by:
setShapein interfaceILcdEditableShapeList- Overrides:
setShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- index of shape to replace.aShape- the shape to be stored at the specified position.- Returns:
- the shape previously at the specified position.
-
setShapes
Description copied from interface:ILcdEditableShapeListReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.- Specified by:
setShapesin interfaceILcdEditableShapeList- Overrides:
setShapesin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be stored in thisILcdShapeList.
-
shapeChanged
public void shapeChanged(int aIndex) Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the shape at the specified position has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Overrides:
shapeChangedin classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- the index of the shape that has changed.
-
shapeChanged
Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the specified shape has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Overrides:
shapeChangedin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShape- the shape that has changed.
-
shapesChanged
public void shapesChanged()Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat some (possibly all) of its shapes have changed.- Specified by:
shapesChangedin interfaceILcdEditableShapeList- Overrides:
shapesChangedin classTLcdGML31AbstractGeometricAggregate
-
getShapeCount
public int getShapeCount()Description copied from interface:ILcdShapeListReturns the number ofILcdShapeobjects in the list.- Specified by:
getShapeCountin interfaceILcdShapeList- Overrides:
getShapeCountin classTLcdGML31AbstractGeometricAggregate- Returns:
- the number of
ILcdShapeobjects in the list.
-
getShape
Description copied from interface:ILcdShapeListReturns theILcdShapeat the given index.- Specified by:
getShapein interfaceILcdShapeList- Overrides:
getShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- a valid index in the list ofILcdShapeobjects.- Returns:
- the
ILcdShapeat the given index.
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdGML31AbstractGeometry- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdGML31AbstractGeometry- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdGML31AbstractGeometry- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdGML31AbstractGeometry- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Overrides:
getFocusPointin classTLcdGML31AbstractGeometry- Returns:
- the focus point of this
ILcdShape.
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdDataObject- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObjectReturns 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
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein 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
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Overrides:
getBoundsin classTLcdGML31AbstractGeometry- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
setValue
Description copied from interface:ILcdDataObjectSets 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 typeor 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:
setValuein interfaceILcdDataObject- Overrides:
setValuein classTLcdDataObject- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
getLineStringMember
Returns the value of the property that maps to thelineStringMemberelement.Deprecated with GML 3.0 and included only for backwards compatibility with GML 2.0. Use "curveMember" instead. This property element either references a line string via the XLink-attributes or contains the line string element.
- Returns:
- the value of the
LINE_STRING_MEMBER_PROPERTYproperty. - See Also:
-
getGid
Gets the value of theGID_PROPERTYproperty.This attribute is included for backward compatibility with GML 2 and is deprecated with GML 3. This identifer is superceded by "gml:id" inherited from AbstractGMLType. The attribute "gid" should not be used anymore and may be deleted in future versions of GML without further notice.
- Returns:
- the value of the
GID_PROPERTYproperty.
-
setGid
Sets the value of theGID_PROPERTYproperty.This attribute is included for backward compatibility with GML 2 and is deprecated with GML 3. This identifer is superceded by "gml:id" inherited from AbstractGMLType. The attribute "gid" should not be used anymore and may be deleted in future versions of GML without further notice.
- Parameters:
aValue- the value to set for theGID_PROPERTYproperty.
-