Search this API

y.view
Interface NodePort.ContainsTest

All Known Implementing Classes:
PortConfigurationAdapter, ShapePortConfiguration
Enclosing class:
NodePort

public static interface NodePort.ContainsTest

This interface is used by NodePort to delegate the work of the NodePort.contains(double, double) method to.

Classes implementing this interface should query the given context port instance for the necessary information each time the methods are called since instances of this interface will be shared for multiple NodePort instances.

 

Method Summary
 boolean contains(NodePort port, double x, double y)
          Returns true if the specified port contains the specified point and false otherwise.
 

Method Detail

contains

boolean contains(NodePort port,
                 double x,
                 double y)
Returns true if the specified port contains the specified point and false otherwise.

Callback method for NodePort.contains(double, double).

Parameters:
port - the port instance to check.
x - the x-coordinate of the point to check.
y - the y-coordinate of the point to check.
Returns:
true if the specified port contains the specified point and false otherwise.

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