protected boolean isValidState(mxCellState state) { if (isConnecting()) { return error == null; } else { return super.isValidState(state); } }
protected boolean isValidState(mxCellState state) { if (isConnecting()) { return error == null; } else { return super.isValidState(state); } }
protected boolean intersects(mxCellState state, MouseEvent e) { if (!isHighlighting() || isConnecting()) { return true; } return super.intersects(state, e); } };
protected Color getMarkerColor(MouseEvent e, mxCellState state, boolean isValid) { return (isHighlighting() || isConnecting()) ? super .getMarkerColor(e, state, isValid) : null; }
protected Color getMarkerColor(MouseEvent e, mxCellState state, boolean isValid) { return (isHighlighting() || isConnecting()) ? super .getMarkerColor(e, state, isValid) : null; }
protected boolean intersects(mxCellState state, MouseEvent e) { if (!isHighlighting() || isConnecting()) { return true; } return super.intersects(state, e); } };
protected Object getCell(MouseEvent e) { Object cell = super.getCell(e); if (isConnecting()) { if (source != null) { error = validateConnection(source.getCell(), cell); if (error != null && error.length() == 0) { cell = null; // Enables create target inside groups if (createTarget) { error = null; } } } } else if (!isValidSource(cell)) { cell = null; } return cell; }
protected Object getCell(MouseEvent e) { Object cell = super.getCell(e); if (isConnecting()) { if (source != null) { error = validateConnection(source.getCell(), cell); if (error != null && error.length() == 0) { cell = null; // Enables create target inside groups if (createTarget) { error = null; } } } } else if (!isValidSource(cell)) { cell = null; } return cell; }