Search this API

y.view
Interface GenericEdgeRealizer.IntersectionTest

Enclosing class:
GenericEdgeRealizer

public static interface GenericEdgeRealizer.IntersectionTest

This interface is used as a callback by GenericEdgeRealizer to evaluate intersection tests.

 

Method Summary
 boolean pathIntersects(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, java.awt.geom.Rectangle2D box, boolean considerLabels)
          Callback method for EdgeRealizer.pathIntersects(java.awt.geom.Rectangle2D, boolean).
 

Method Detail

pathIntersects

boolean pathIntersects(EdgeRealizer context,
                       BendList bends,
                       java.awt.geom.GeneralPath path,
                       java.awt.geom.Rectangle2D box,
                       boolean considerLabels)
Callback method for EdgeRealizer.pathIntersects(java.awt.geom.Rectangle2D, boolean).

Parameters:
context - the context EdgeRealizer
bends - the current BendList
path - the current GeneralPath
box - the box to check the intersection with
considerLabels - whether to consider labels
Returns:
whether the path intersects the given box

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