protected boolean isValidState(mxCellState state) { if (isConnecting()) { return error == null; } else { return super.isValidState(state); } }
/** * No flip event is ignored. */ protected boolean isIgnoredEvent(MouseEvent e) { return !isFlipEvent(e) && super.isIgnoredEvent(e); }
/** * Hides the middle handle if the edge is not bendable. */ protected boolean isHandleVisible(int index) { return super.isHandleVisible(index) && (isSource(index) || isTarget(index) || isCellBendable()); }
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; }
/** * */ public void highlight(mxCellState state, Color color) { highlight(state, color, true); }
/** * Returns true if the given index is the index of the last handle. */ public boolean isLabel(int index) { return index == getHandleCount() - 1; }
/** * Processes the given event. */ public void mouseReleased(MouseEvent e) { reset(); }
/** * * @param graphComponent */ public mxKeyboardHandler(mxGraphComponent graphComponent) { installKeyboardActions(graphComponent); }
public void invoke(Object source, mxEventObject evt) { reset(); } };
/** * */ protected mxConnectPreview createConnectPreview() { return new mxConnectPreview(graphComponent); }
/** * Hides the middle handle if the edge is not bendable. */ protected boolean isHandleVisible(int index) { return super.isHandleVisible(index) && (isSource(index) || isTarget(index) || isCellBendable()); }
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 boolean isValidState(mxCellState state) { if (isConnecting()) { return error == null; } else { return super.isValidState(state); } }
/** * No flip event is ignored. */ protected boolean isIgnoredEvent(MouseEvent e) { return !isFlipEvent(e) && super.isIgnoredEvent(e); }