Package com.luciad.ais.shape
Class TLcdGeoPath
java.lang.Object
com.luciad.ais.shape.TLcdGeoPath
- All Implemented Interfaces:
ILcdEditableGeoPath
,ILcdGeoPath
- Direct Known Subclasses:
ALcdDiscretizedGeoPath
An implementation of the
ILcdGeoPath
interface.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLeg
(ILcdGeoPathLeg aLeg) Adds the specified leg to the end of this GeoPath.protected Object
clone()
Creates and returns a copy of this object.getLeg
(int aIndex) Returns theILcdGeoPathLeg
at the given index.int
Returns the number of legs in thisILcdGeoPath
.void
insertLegAt
(ILcdGeoPathLeg aLeg, int anIndex) Adds aILcdGeoPathLeg
object to theILcdEditableGeoPath
on the specified index.boolean
removeLeg
(ILcdGeoPathLeg aLeg) void
removeLegAt
(int anIndex) Removes theILcdGeoPathLeg
object on the specified index from the fromILcdEditableGeoPath
.
-
Constructor Details
-
TLcdGeoPath
public TLcdGeoPath()
-
-
Method Details
-
getLegCount
public int getLegCount()Description copied from interface:ILcdGeoPath
Returns the number of legs in thisILcdGeoPath
.- Specified by:
getLegCount
in interfaceILcdGeoPath
- Returns:
- The number of legs in this
ILcdGeoPath
.
-
getLeg
Description copied from interface:ILcdGeoPath
Returns theILcdGeoPathLeg
at the given index.- Specified by:
getLeg
in interfaceILcdGeoPath
- Parameters:
aIndex
- an index.- Returns:
- The
ILcdGeoPathLeg
at the given index.
-
addLeg
Description copied from interface:ILcdEditableGeoPath
Adds the specified leg to the end of this GeoPath.- Specified by:
addLeg
in interfaceILcdEditableGeoPath
- Parameters:
aLeg
- anILcdGeoPathLeg
-
removeLeg
-
insertLegAt
Description copied from interface:ILcdEditableGeoPath
Adds aILcdGeoPathLeg
object to theILcdEditableGeoPath
on the specified index.- Specified by:
insertLegAt
in interfaceILcdEditableGeoPath
- Parameters:
aLeg
- theILcdGeoPathLeg
object to be added to theILcdEditableGeoPath
.anIndex
- the index in theILcdEditableAirspace
where theILcdAirspaceSegment
object must be added.
-
removeLegAt
public void removeLegAt(int anIndex) Description copied from interface:ILcdEditableGeoPath
Removes theILcdGeoPathLeg
object on the specified index from the fromILcdEditableGeoPath
.- Specified by:
removeLegAt
in interfaceILcdEditableGeoPath
- Parameters:
anIndex
- the index in theILcdEditableGeoPath
where theILcdGeoPathLeg
object must be removed.
-
clone
Creates and returns a copy of this object. The legs of this GeoPath are cloned.- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-