Package com.luciad.view.gxy
Class TLcdGXYCurvedPathLabelLocation
java.lang.Object
com.luciad.view.TLcdLabelLocation
com.luciad.view.gxy.TLcdGXYCurvedPathLabelLocation
- All Implemented Interfaces:
Cloneable
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:
-
Field Summary
Fields inherited from class com.luciad.view.TLcdLabelLocation
ABSOLUTE_POSITION, EDITED_BY_LABEL_EDITOR, EDITED_BY_LAYER_OR_VIEW_LABEL_PAINTER, STICKY_LABEL_LOCATION, TEMPORARY_STICKY_LABEL_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Redefines the clone method to be public.void
copyFrom
(TLcdLabelLocation aSourceLabelLocation) Copies the properties ofaSourceLabelLocation
into this object.double
Returns the parameter used to identify a location on a sub-path of anILcdAWTPath
.int
Returns the index used to identify the sub-path of anILcdAWTPath
.void
setAWTPathParameter
(double aAWTPathParameter) Set the parameter used to identify a location on a sub-path of anILcdAWTPath
.void
setSubPathIndex
(int aSubPathIndex) Sets the index used to identify the sub-path of anILcdAWTPath
.toString()
Methods inherited from class com.luciad.view.TLcdLabelLocation
getAnchorPoint, getLabelEditMode, getLocationIndex, getLocationX, getLocationY, getParentBoundsRectangle, getParentBoundsRotation, getParentLabel, getRotation, isBodyLabel, isInteractiveLabel, isSticky, setBodyLabel, setInteractiveLabel, setLabelEditMode, setLocationIndex, setLocationX, setLocationY, setParentBounds, setParentLabel, setRotation
-
Constructor Details
-
TLcdGXYCurvedPathLabelLocation
public TLcdGXYCurvedPathLabelLocation()
-
-
Method Details
-
getSubPathIndex
public int getSubPathIndex()Returns the index used to identify the sub-path of anILcdAWTPath
.- 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 anILcdAWTPath
. This index determines the subpath on which this label will be placed.- Parameters:
aSubPathIndex
- the index used to identify the sub-path of anILcdAWTPath
.- See Also:
-
getAWTPathParameter
public double getAWTPathParameter()Returns the parameter used to identify a location on a sub-path of anILcdAWTPath
.- 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 anILcdAWTPath
.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 anILcdAWTPath
.- See Also:
-
copyFrom
Description copied from class:TLcdLabelLocation
Copies the properties ofaSourceLabelLocation
into this object. No reference toaSourceLabelLocation
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 classTLcdLabelLocation
- Parameters:
aSourceLabelLocation
- TheTLcdLabelLocation
whose properties you wish to copy.- See Also:
-
toString
- Overrides:
toString
in classTLcdLabelLocation
-
clone
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 classTLcdLabelLocation
- Returns:
- A clone of this
TLcdLabelLocation
instance. - Throws:
CloneNotSupportedException
-