Class TLcdGeoPath

java.lang.Object
com.luciad.ais.shape.TLcdGeoPath
All Implemented Interfaces:
ILcdEditableGeoPath, ILcdGeoPath
Direct Known Subclasses:
ALcdDiscretizedGeoPath

public class TLcdGeoPath extends Object implements ILcdEditableGeoPath
An implementation of the ILcdGeoPath interface.
  • Constructor Details

    • TLcdGeoPath

      public TLcdGeoPath()
  • Method Details

    • getLegCount

      public int getLegCount()
      Description copied from interface: ILcdGeoPath
      Returns the number of legs in this ILcdGeoPath.
      Specified by:
      getLegCount in interface ILcdGeoPath
      Returns:
      The number of legs in this ILcdGeoPath.
    • getLeg

      public ILcdGeoPathLeg getLeg(int aIndex)
      Description copied from interface: ILcdGeoPath
      Returns the ILcdGeoPathLeg at the given index.
      Specified by:
      getLeg in interface ILcdGeoPath
      Parameters:
      aIndex - an index.
      Returns:
      The ILcdGeoPathLeg at the given index.
    • addLeg

      public void addLeg(ILcdGeoPathLeg aLeg)
      Description copied from interface: ILcdEditableGeoPath
      Adds the specified leg to the end of this GeoPath.
      Specified by:
      addLeg in interface ILcdEditableGeoPath
      Parameters:
      aLeg - an ILcdGeoPathLeg
    • removeLeg

      public boolean removeLeg(ILcdGeoPathLeg aLeg)
    • insertLegAt

      public void insertLegAt(ILcdGeoPathLeg aLeg, int anIndex)
      Description copied from interface: ILcdEditableGeoPath
      Adds a ILcdGeoPathLeg object to the ILcdEditableGeoPath on the specified index.
      Specified by:
      insertLegAt in interface ILcdEditableGeoPath
      Parameters:
      aLeg - the ILcdGeoPathLeg object to be added to the ILcdEditableGeoPath.
      anIndex - the index in the ILcdEditableAirspace where the ILcdAirspaceSegment object must be added.
    • removeLegAt

      public void removeLegAt(int anIndex)
      Description copied from interface: ILcdEditableGeoPath
      Removes the ILcdGeoPathLeg object on the specified index from the from ILcdEditableGeoPath.
      Specified by:
      removeLegAt in interface ILcdEditableGeoPath
      Parameters:
      anIndex - the index in the ILcdEditableGeoPath where the ILcdGeoPathLeg object must be removed.
    • clone

      protected Object clone() throws CloneNotSupportedException
      Creates and returns a copy of this object.

      The legs of this GeoPath are cloned.

      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException