Class TLcdGXYCurvedPathLabelLocation

java.lang.Object
com.luciad.view.TLcdLabelLocation
com.luciad.view.gxy.TLcdGXYCurvedPathLabelLocation
All Implemented Interfaces:
Cloneable

public class TLcdGXYCurvedPathLabelLocation extends TLcdLabelLocation
This label location contains two extra fields used to identify the position of a label on an awt path. This label location extension is used by

The sub path index is used to identify the sub-path of an ILcdAWTPath. The path parameter is used to identify a location on that sub-path. The parameter lies in the interval [0, 1].

Since:
11.0
See Also:
  • Constructor Details

    • TLcdGXYCurvedPathLabelLocation

      public TLcdGXYCurvedPathLabelLocation()
  • Method Details

    • getSubPathIndex

      public int getSubPathIndex()
      Returns the index used to identify the sub-path of an ILcdAWTPath.
      Returns:
      the index used to identify the sub-path of an ILcdAWTPath.
      See Also:
    • setSubPathIndex

      public void setSubPathIndex(int aSubPathIndex)
      Sets the index used to identify the sub-path of an ILcdAWTPath. This index determines the subpath on which this label will be placed.
      Parameters:
      aSubPathIndex - the index used to identify the sub-path of an ILcdAWTPath.
      See Also:
    • getAWTPathParameter

      public double getAWTPathParameter()
      Returns the parameter used to identify a location on a sub-path of an ILcdAWTPath.
      Returns:
      the parameter used to identify a location on a sub-path of an ILcdAWTPath.
      See Also:
    • setAWTPathParameter

      public void setAWTPathParameter(double aAWTPathParameter)
      Set the parameter used to identify a location on a sub-path of an ILcdAWTPath.

      The parameter should lie in the interval [0, 1]. If it lies outside the interval [0, 1], this label location should be handled as a regular TLcdLabelLocation.

      Parameters:
      aAWTPathParameter - the parameter used to identify a location on a sub-path of an ILcdAWTPath.
      See Also:
    • copyFrom

      public void copyFrom(TLcdLabelLocation aSourceLabelLocation)
      Description copied from class: TLcdLabelLocation
      Copies the properties of aSourceLabelLocation into this object. No reference to aSourceLabelLocation is kept when this method returns. In other words, this method creates a clone in an already existing instance, hence avoiding the overhead of creating a new instance.
      Overrides:
      copyFrom in class TLcdLabelLocation
      Parameters:
      aSourceLabelLocation - The TLcdLabelLocation whose properties you wish to copy.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class TLcdLabelLocation
    • clone

      public Object clone() throws CloneNotSupportedException
      Description copied from class: TLcdLabelLocation
      Redefines the clone method to be public. Returns a clone of this instance. Since there are no references to other objects, no other objects are cloned in the default implementation.
      Overrides:
      clone in class TLcdLabelLocation
      Returns:
      A clone of this TLcdLabelLocation instance.
      Throws:
      CloneNotSupportedException