public interface IContainsBendTester
IBend
in 2D coordinate space.
This interface is used to determine which bends of edges that connect child nodes are moved when the parent node is moved. Therefore, special care has to be taken if you want to provide this interface in the node lookup for other purposes, as this can also affect implicit bend movement.
Modifier and Type | Method and Description |
---|---|
boolean |
contains(IInputModeContext context,
IBend bend)
Determines whether the provided
bend is deemed to lie within the shape this test is implemented for. |
boolean contains(IInputModeContext context, IBend bend)
bend
is deemed to lie within the shape this test is implemented for.
This method is used to determine which bends of edges that connect child nodes are moved when the parent node is moved.
If an implementation of IContainsBendTester
is present in the node's
ILookup.lookup(java.lang.Class)
, this method is called with the bend and the bend
will be moved together with the parent node iff true
is returned. If no implemention is provided, only bends
that lie inside the bounds of the parent node are moved.
context
- The input mode context to use.bend
- The bend to testtrue
iff the bend is contained within the shape.