Search this API

y.view
Interface GenericEdgeRealizer.ContainsTest

All Known Implementing Classes:
PolyLineContainsTest
Enclosing class:
GenericEdgeRealizer

public static interface GenericEdgeRealizer.ContainsTest

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

 

Method Summary
 boolean contains(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, double x, double y)
          Callback method for EdgeRealizer.contains(double, double).
 int containsSeg(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, double x, double y)
          Callback method for EdgeRealizer.containsSeg(double, double).
 

Method Detail

contains

boolean contains(EdgeRealizer context,
                 BendList bends,
                 java.awt.geom.GeneralPath path,
                 double x,
                 double y)
Callback method for EdgeRealizer.contains(double, double).

Parameters:
context - the context EdgeRealizer
bends - the current BendList
path - the current GeneralPath

containsSeg

int containsSeg(EdgeRealizer context,
                BendList bends,
                java.awt.geom.GeneralPath path,
                double x,
                double y)
Callback method for EdgeRealizer.containsSeg(double, double).

Parameters:
context - the context EdgeRealizer
bends - the current BendList
path - the current GeneralPath

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