Search this API

y.view
Interface GenericEdgeRealizer.PathCalculator

All Known Implementing Classes:
BezierPathCalculator, PolyLinePathCalculator, SmoothBendsPathCalculator
Enclosing class:
GenericEdgeRealizer

public static interface GenericEdgeRealizer.PathCalculator

This interface is used as a callback by GenericEdgeRealizer to calculate the final path.

 

Method Summary
 byte calculatePath(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, java.awt.geom.Point2D sourceIntersectionPointOut, java.awt.geom.Point2D targetIntersectionPointOut)
          Callback method for GenericEdgeRealizer.calculatePath(java.awt.geom.Point2D, java.awt.geom.Point2D) ()}.
 

Method Detail

calculatePath

byte calculatePath(EdgeRealizer context,
                   BendList bends,
                   java.awt.geom.GeneralPath path,
                   java.awt.geom.Point2D sourceIntersectionPointOut,
                   java.awt.geom.Point2D targetIntersectionPointOut)
Callback method for GenericEdgeRealizer.calculatePath(java.awt.geom.Point2D, java.awt.geom.Point2D) ()}. This method should modify the given path instance and return whether it took into account the length of the source and/or target arrow.

Parameters:
context - the context EdgeRealizer
bends - the current BendList
path - the current GeneralPath
sourceIntersectionPointOut - the point to place the source intersection point in
targetIntersectionPointOut - the point to place the target intersection point in
Returns:
either EdgeRealizer.PATH_UNCLIPPED, EdgeRealizer.PATH_CLIPPED_AT_SOURCE, EdgeRealizer.PATH_CLIPPED_AT_TARGET, or EdgeRealizer.PATH_CLIPPED_AT_SOURCE_AND_TARGET

© Copyright 2000-2021,
yWorks GmbH.
All rights reserved.