Search this API

y.view
Interface NodePort.UnionRectCalculator

All Known Implementing Classes:
ShapePortConfiguration
Enclosing class:
NodePort

public static interface NodePort.UnionRectCalculator

This interface is used by NodePort to delegate the work of the NodePort.calcUnionRect(java.awt.geom.Rectangle2D) 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
 void calcUnionRect(NodePort port, java.awt.geom.Rectangle2D rectangle)
          Calculates the rectangular union of the specified rectangle and the specified port's bounds.
 

Method Detail

calcUnionRect

void calcUnionRect(NodePort port,
                   java.awt.geom.Rectangle2D rectangle)
Calculates the rectangular union of the specified rectangle and the specified port's bounds.

Callback method for NodePort.calcUnionRect(java.awt.geom.Rectangle2D).

Parameters:
port - the port instance whose bounds have to be added to the given rectangle.
rectangle - the rectangle to be enlarged such that it contains the bounds of the specified port.

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