Class TLcdXYMPolygon

All Implemented Interfaces:
ILcdBounded, ILcdCurve, ILcdPointList, ILcdPointList2, ILcdPolygon, ILcdPolypoint, ILcdRing, ILcdShape, ILcd2DEditablePointList, ILcd2DEditablePolygon, ILcd2DEditablePolypoint, ILcd2DEditableShape, ILcdCache, ILcdCloneable, ILcdInvalidateable, Serializable, Cloneable

public class TLcdXYMPolygon extends TLcdXYPolygon
This class represents a TLcdXYPolygon with measure values.
Since:
2022.1
See Also:
  • Constructor Details

    • TLcdXYMPolygon

      public TLcdXYMPolygon(ILcd2DEditablePointList a2DEditablePointList, double[] aMeasureArray)
      Constructs and initializes from the specified parameters.
      Parameters:
      a2DEditablePointList - the points to consider.
      aMeasureArray - the array of m (measure) coordinates.
  • Method Details

    • getM

      public double getM(int aIndex) throws IndexOutOfBoundsException
      Returns the M (measure) coordinate at aIndex.
      Parameters:
      aIndex - the index for which to return the M coordinate.
      Returns:
      the M coordinate of the point at aIndex.
      Throws:
      IndexOutOfBoundsException - if aIndex < 0 || aIndex >= getPointCount()
    • insert2DPoint

      public void insert2DPoint(int aIndex, double aX, double aY)
      Description copied from interface: ILcd2DEditablePointList
      Inserts a point at the given index into this ILcd2DEditablePointList.
      Specified by:
      insert2DPoint in interface ILcd2DEditablePointList
      Overrides:
      insert2DPoint in class TLcdXYPolygon
      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.
    • removePointAt

      public void removePointAt(int aIndex)
      Description copied from interface: ILcd2DEditablePointList
      Removes the point at the given index from this ILcd2DEditablePointList.
      Specified by:
      removePointAt in interface ILcd2DEditablePointList
      Overrides:
      removePointAt in class TLcdXYPolygon
      Parameters:
      aIndex - a valid index in the list of ILcdPoint objects.