/** * */ protected Cursor getCursor(MouseEvent e) { Cursor cursor = null; if (isMoveEnabled()) { Object cell = graphComponent.getCellAt(e.getX(), e.getY(), false); if (cell != null) { if (graphComponent.isFoldingEnabled() && graphComponent.hitFoldingIcon(cell, e.getX(), e.getY())) { cursor = FOLD_CURSOR; } else if (graphComponent.getGraph().isCellMovable(cell)) { cursor = MOVE_CURSOR; } } } return cursor; }
/** * */ protected Cursor getCursor(MouseEvent e) { Cursor cursor = null; if (isMoveEnabled()) { Object cell = graphComponent.getCellAt(e.getX(), e.getY(), false); if (cell != null) { if (graphComponent.isFoldingEnabled() && graphComponent.hitFoldingIcon(cell, e.getX(), e.getY())) { cursor = FOLD_CURSOR; } else if (graphComponent.getGraph().isCellMovable(cell)) { cursor = MOVE_CURSOR; } } } return cursor; }
/** * */ public String getToolTipText(MouseEvent e) { String tip = getSelectionCellsHandler().getToolTipText(e); if (tip == null) { Object cell = getCellAt(e.getX(), e.getY()); if (cell != null) { if (hitFoldingIcon(cell, e.getX(), e.getY())) { tip = mxResources.get("collapse-expand"); } else { tip = graph.getToolTipForCell(cell); } } } if (tip != null && tip.length() > 0) { return tip; } return super.getToolTipText(e); }
/** * */ public String getToolTipText(MouseEvent e) { String tip = getSelectionCellsHandler().getToolTipText(e); if (tip == null) { Object cell = getCellAt(e.getX(), e.getY()); if (cell != null) { if (hitFoldingIcon(cell, e.getX(), e.getY())) { tip = mxResources.get("collapse-expand"); } else { tip = graph.getToolTipForCell(cell); } } } if (tip != null && tip.length() > 0) { return tip; } return super.getToolTipText(e); }
if ( graphComponent.isFoldingEnabled() && graphComponent.hitFoldingIcon( initialCell, e.getX(), e.getY() ) ) if ( graphComponent.isFoldingEnabled() && graphComponent.hitFoldingIcon( tmp, e.getX(), e.getY() ) )
if ( graphComponent.isFoldingEnabled() && graphComponent.hitFoldingIcon( initialCell, e.getX(), e.getY() ) ) if ( graphComponent.isFoldingEnabled() && graphComponent.hitFoldingIcon( tmp, e.getX(), e.getY() ) )
&& graphComponent.hitFoldingIcon(initialCell, e.getX(), e.getY())) && graphComponent.hitFoldingIcon(tmp, e.getX(), e.getY()))
&& graphComponent.hitFoldingIcon(initialCell, e.getX(), e.getY())) && graphComponent.hitFoldingIcon(tmp, e.getX(), e.getY()))