public interface IPortSelectionTester
This interface is mostly provided through the ILookup.lookup(java.lang.Class) of IPortOwner
implementations such as INode.
| Modifier and Type | Method and Description |
|---|---|
IPort |
getHitPort(IInputModeContext context,
PointD location)
Returns the port at the given world coordinate position or
null if there is no such port. |
IEnumerable<IPort> |
getPortsInBox(IInputModeContext context,
RectD rectangle)
Returns the ports for the given marquee rectangle.
|
IPort getHitPort(IInputModeContext context, PointD location)
null if there is no such port.context - The input mode context to use for querying the position.location - The coordinates of the position in the world coordinate system.null.IEnumerable<IPort> getPortsInBox(IInputModeContext context, RectD rectangle)
context - The input mode context to use for querying the position.rectangle - The marquee selection box in the world coordinate system.