public class TLcdGXYCurvedPathLabelLocation extends TLcdLabelLocation
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].
ALcdLabelLocations
,
ILcdGXYEditableLabelsLayer
ABSOLUTE_POSITION, EDITED_BY_LABEL_EDITOR, EDITED_BY_LAYER_OR_VIEW_LABEL_PAINTER, STICKY_LABEL_LOCATION, TEMPORARY_STICKY_LABEL_LOCATION
Constructor and Description |
---|
TLcdGXYCurvedPathLabelLocation() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Redefines the clone method to be public.
|
void |
copyFrom(TLcdLabelLocation aSourceLabelLocation)
Copies the properties of
aSourceLabelLocation into this object. |
double |
getAWTPathParameter()
Returns the parameter used to identify a location on a sub-path of an
ILcdAWTPath . |
int |
getSubPathIndex()
Returns the index used to identify the sub-path of an
ILcdAWTPath . |
void |
setAWTPathParameter(double aAWTPathParameter)
Set the parameter used to identify a location on a sub-path of an
ILcdAWTPath . |
void |
setSubPathIndex(int aSubPathIndex)
Sets the index used to identify the sub-path of an
ILcdAWTPath . |
String |
toString() |
getAnchorPoint, getLabelEditMode, getLocationIndex, getLocationX, getLocationY, getParentBoundsRectangle, getParentBoundsRotation, getParentLabel, getRotation, isBodyLabel, isInteractiveLabel, isSticky, setBodyLabel, setInteractiveLabel, setLabelEditMode, setLocationIndex, setLocationX, setLocationY, setParentBounds, setParentLabel, setRotation
public int getSubPathIndex()
ILcdAWTPath
.ILcdAWTPath
.setSubPathIndex(int)
public void setSubPathIndex(int aSubPathIndex)
ILcdAWTPath
. This
index determines the subpath on which this label will be placed.aSubPathIndex
- the index used to identify the sub-path of an ILcdAWTPath
.getSubPathIndex()
public double getAWTPathParameter()
ILcdAWTPath
.ILcdAWTPath
.setAWTPathParameter(double)
public void setAWTPathParameter(double aAWTPathParameter)
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
.
aAWTPathParameter
- the parameter used to identify a location on a sub-path of
an ILcdAWTPath
.getAWTPathParameter()
public void copyFrom(TLcdLabelLocation aSourceLabelLocation)
TLcdLabelLocation
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.copyFrom
in class TLcdLabelLocation
aSourceLabelLocation
- The TLcdLabelLocation
whose properties you wish to
copy.TLcdLabelLocation.clone()
public String toString()
toString
in class TLcdLabelLocation
public Object clone() throws CloneNotSupportedException
TLcdLabelLocation
clone
in class TLcdLabelLocation
TLcdLabelLocation
instance.CloneNotSupportedException