Interface ContextMenuRequest<E extends Edge>
- Type Parameters:
E- the edge type of the rendered graph
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Notification fired by
CanvasInteraction when the user triggers a context-menu request (right
button, or Control+click on macOS). The listener receives the pointer position in view coordinates
and the element under the pointer, if any; the actual menu is built in a later phase (N4), so this
phase only delivers the request.- Author:
- posenato
-
Method Summary
Modifier and TypeMethodDescriptionvoidrequest(Point2D viewPoint, LabeledNode node, E edge) Delivers a context-menu request.
-
Method Details
-
request
Delivers a context-menu request.- Parameters:
viewPoint- the pointer position in view (component) coordinates, not nullnode- the node under the pointer, ornullif there is noneedge- the edge under the pointer, ornullif there is none. Whennodeis notnullthis is alwaysnull: a node hit takes precedence over an edge hit
-