Search this API

y.view
Interface NodePort.BoundsProvider

All Known Implementing Classes:
ShapePortConfiguration
Enclosing class:
NodePort

public static interface NodePort.BoundsProvider

This interface is used by NodePort to delegate the work of the NodePort.getBounds() 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
 YRectangle getBounds(NodePort port)
          Returns the bounds of the specified port in absolute world (graph) coordinates.
 

Method Detail

getBounds

YRectangle getBounds(NodePort port)
Returns the bounds of the specified port in absolute world (graph) coordinates.

Callback method for NodePort.getBounds().

Parameters:
port - the port instance whose bounds have to be determined.
Returns:
the bounds of the specified port in absolute world (graph).

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