Package com.luciad.format.gml31.model
Class TLcdGML31AbstractGeometricAggregate
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.datamodel.TLcdFeaturedDataObject
com.luciad.format.gml31.model.TLcdGML31AbstractGML
com.luciad.format.gml31.model.TLcdGML31AbstractGeometry
com.luciad.format.gml31.model.TLcdGML31AbstractGeometricAggregate
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdEditableShapeList,ILcdShape,ILcdShapeList,ILcdCloneable,ILcdDeepCloneable,ILcdFeatured,ILcdInvalidateable,ILcdSelfDescribedFeatured,Serializable,Cloneable
- Direct Known Subclasses:
TLcdGML31MultiCurve,TLcdGML31MultiGeometry,TLcdGML31MultiLineString,TLcdGML31MultiPoint,TLcdGML31MultiPolygon,TLcdGML31MultiSolid,TLcdGML31MultiSurface
public class TLcdGML31AbstractGeometricAggregate
extends TLcdGML31AbstractGeometry
implements ILcdEditableShapeList, ILcdInvalidateable
gml:AbstractGeometricAggregate is the abstract head of the substitution group for all geometric aggregates.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyProperty that maps on thegidattribute.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
ConstructorsConstructorDescription -
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.getGid()Gets the value of theGID_PROPERTYproperty.getShape(int aIndex) Returns theILcdShapeat the given index.intReturns the number ofILcdShapeobjects in the list.voidInvalidates all cached values of this object.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[] aShape) 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.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.TLcdGML31AbstractGeometry
contains2D, contains2D, contains3D, contains3D, getBounds, getFocusPoint, 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
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Field Details
-
GID_PROPERTY
Property that maps on thegidattribute. Acceptable values for this property are instances ofjava.lang.String.
-
-
Constructor Details
-
TLcdGML31AbstractGeometricAggregate
public TLcdGML31AbstractGeometricAggregate() -
TLcdGML31AbstractGeometricAggregate
-
-
Method Details
-
addShape
Description copied from interface:ILcdEditableShapeListInserts the specified shape at the specified position in thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- 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- 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- Parameters:
aShape- 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
-
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- 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- 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- Parameters:
aShape- 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- 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- 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- 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- 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
-
getShapeCount
public int getShapeCount()Description copied from interface:ILcdShapeListReturns the number ofILcdShapeobjects in the list.- Specified by:
getShapeCountin interfaceILcdShapeList- Returns:
- the number of
ILcdShapeobjects in the list.
-
getShape
Description copied from interface:ILcdShapeListReturns theILcdShapeat the given index.- Specified by:
getShapein interfaceILcdShapeList- Parameters:
aIndex- a valid index in the list ofILcdShapeobjects.- Returns:
- the
ILcdShapeat the given index. - Throws:
IndexOutOfBoundsException- when the index is not valid.
-
invalidateObject
public void invalidateObject()Description copied from interface:ILcdInvalidateableInvalidates all cached values of this object. Call this method whenever one or more of this object's compositing values has been changed, to notify this object it needs to recompute its cached values.- Specified by:
invalidateObjectin interfaceILcdInvalidateable
-
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.
-