public interface IEdgePathCropper
This interface is queried through the ILookup.lookup(java.lang.Class)
of IPort
instances to calculate the visible portion of an edge path.
Modifier and Type | Method and Description |
---|---|
GeneralPath |
cropEdgePath(IEdge edge,
boolean atSource,
IArrow arrow,
GeneralPath path)
Crops the provided
path at one end of an edge. |
GeneralPath cropEdgePath(IEdge edge, boolean atSource, IArrow arrow, GeneralPath path)
path
at one end of an edge.edge
- The edge whose path is to be cropped.atSource
- Whether to crop the source or target side of the path.arrow
- The arrow that is used at the end of the edge.path
- The path to crop.