/** * Redirects the tooltip handling of the JComponent to the graph * component, which in turn may use getHandleToolTipText in this class to * find a tooltip associated with a handle. */ public String getToolTipText(MouseEvent e) { MouseEvent tmp = SwingUtilities.convertMouseEvent(e.getComponent(), e, graphComponent.getGraphControl()); Iterator<mxCellHandler> it = handlers.values().iterator(); String tip = null; while (it.hasNext() && tip == null) { tip = it.next().getToolTipText(tmp); } return tip; }
/** * Redirects the tooltip handling of the JComponent to the graph * component, which in turn may use getHandleToolTipText in this class to * find a tooltip associated with a handle. */ public String getToolTipText(MouseEvent e) { MouseEvent tmp = SwingUtilities.convertMouseEvent(e.getComponent(), e, graphComponent.getGraphControl()); Iterator<mxCellHandler> it = handlers.values().iterator(); String tip = null; while (it.hasNext() && tip == null) { tip = it.next().getToolTipText(tmp); } return tip; }