@Override public void onNodeMouseClick(final NodeMouseClickEvent event) { // temporarily remove the rect, use findAt to find the underlying shape and trigger the click event if (event.isButtonLeft()) { m_selectionManager.getSelectionShape().removeFromParent(); m_selectionManager.m_layer.draw(); Node<?> node = m_selectionManager.m_layer.getViewport().findShapeAtPoint(event.getX(), event.getY()); m_selectionManager.m_layer.add(m_selectionManager.getSelectionShape()); m_selectionManager.m_layer.draw(); while (node != null) { if (node.isEventHandled(event.getAssociatedType())) { node.fireEvent(event); break; } node = node.getParent(); } } }
@Override public void onNodeMouseClick(final NodeMouseClickEvent event) { // temporarily remove the rect, use findAt to find the underlying shape and trigger the click event if (event.isButtonLeft()) { m_selectionManager.getSelectionShape().removeFromParent(); m_selectionManager.m_layer.draw(); Node<?> node = m_selectionManager.m_layer.getViewport().findShapeAtPoint(event.getX(), event.getY()); m_selectionManager.m_layer.add(m_selectionManager.getSelectionShape()); m_selectionManager.m_layer.draw(); while (node != null) { if (node.isEventHandled(event.getAssociatedType())) { node.fireEvent(event); break; } node = node.getParent(); } } }
@Override public void onNodeMouseClick(final NodeMouseClickEvent event) { // temporarily remove the rect, use findAt to find the underlying shape and trigger the click event if (event.isButtonLeft()) { m_selectionManager.getSelectionShape().removeFromParent(); m_selectionManager.m_layer.draw(); Node<?> node = m_selectionManager.m_layer.getViewport().findShapeAtPoint(event.getX(), event.getY()); m_selectionManager.m_layer.add(m_selectionManager.getSelectionShape()); m_selectionManager.m_layer.draw(); while (node != null) { if (node.isEventHandled(event.getAssociatedType())) { node.fireEvent(event); break; } node = node.getParent(); } } }