Search this API

y.view
Interface MouseInputEditorProvider

All Known Implementing Classes:
GenericEdgeRealizer, GenericGroupNodeRealizer, GenericNodeRealizer, TableGroupNodeRealizer

public interface MouseInputEditorProvider

This interface can be implemented by classes that provide MouseInputEditor instances for use in MouseInputMode for example. This interface serves as a callback and determines the right editor to use for a given mouse event. Typically NodeRealizer, EdgeRealizer, and Drawable implementations can implement this interface to allow for user interaction.

See Also:
MouseInputMode, MouseInputEditor
 

Method Summary
 MouseInputEditor findMouseInputEditor(Graph2DView view, double x, double y, HitInfo hitInfo)
          Sole callback method that determines the MouseInputEditor that should be activated if the mouse hovers over the given coordinates.
 

Method Detail

findMouseInputEditor

MouseInputEditor findMouseInputEditor(Graph2DView view,
                                      double x,
                                      double y,
                                      HitInfo hitInfo)
Sole callback method that determines the MouseInputEditor that should be activated if the mouse hovers over the given coordinates.

Parameters:
view - the view that will host the editor
x - the x coordinate of the mouse event
y - the y coordinate of the mouse event
hitInfo - the HitInfo that may be used to determine what instance to return or null
Returns:
the editor to install or null

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