public interface IPathGeometry
IEdgeStyleRenderer implementations to reveal geometric details about the
visualization of an edge's path.| Modifier and Type | Method and Description |
|---|---|
GeneralPath |
getPath()
Returns a representation of the visible path of the edge in form of a
GeneralPath. |
int |
getSegmentCount()
Returns the number of "segments" this edge's path consists of.
|
Tangent |
getTangent(double ratio)
Calculates the tangent on the edge's path at the given ratio point.
|
Tangent |
getTangent(int segmentIndex,
double ratio)
Calculates the tangent on the edge's path at the given ratio point for the given segment.
|
GeneralPath getPath()
GeneralPath.null if this is not applicable for the current geometry.int getSegmentCount()
-1 if there is no such thing as a segment for this edge.Tangent getTangent(double ratio)
ratio - a value in [0,1] where 0 is the source's end and 1 is at the target's end of the visible edge pathTangent getTangent(int segmentIndex, double ratio)
segmentIndex - the segment to use for the calculationratio - a value in [0,1] where 0 is the source's end and 1 is at the target's end of the segmentgetTangent(double),
getSegmentCount()