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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Redefines the clone method to be public.voidcopyFrom(TLcdLabelLocation aSourceLabelLocation) Copies the properties ofaSourceLabelLocationinto this object.doubleReturns the parameter used to identify a location on a sub-path of anILcdAWTPath.intReturns the index used to identify the sub-path of anILcdAWTPath.voidsetAWTPathParameter(double aAWTPathParameter) Set the parameter used to identify a location on a sub-path of anILcdAWTPath.voidsetSubPathIndex(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:TLcdLabelLocationCopies the properties ofaSourceLabelLocationinto this object. No reference toaSourceLabelLocationis 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:
copyFromin classTLcdLabelLocation- Parameters:
aSourceLabelLocation- TheTLcdLabelLocationwhose properties you wish to copy.- See Also:
-
toString
- Overrides:
toStringin classTLcdLabelLocation
-
clone
Description copied from class:TLcdLabelLocationRedefines 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:
clonein classTLcdLabelLocation- Returns:
- A clone of this
TLcdLabelLocationinstance. - Throws:
CloneNotSupportedException
-