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; }
/** * Processes the given event and marks the state returned by getStateAt * with the color returned by getMarkerColor. If the markerColor is not * null, then the state is stored in markedState. If isValidState returns * true, then the state is stored in validState regardless of the marker * color. The state is returned regardless of the marker color and * valid state. */ public mxCellState process(MouseEvent e) { mxCellState state = null; if (isEnabled()) { state = getState(e); boolean valid = (state != null) ? isValidState(state) : false; Color color = getMarkerColor(e, state, valid); highlight(state, color, valid); } return state; }
/** * Processes the given event and marks the state returned by getStateAt * with the color returned by getMarkerColor. If the markerColor is not * null, then the state is stored in markedState. If isValidState returns * true, then the state is stored in validState regardless of the marker * color. The state is returned regardless of the marker color and * valid state. */ public mxCellState process(MouseEvent e) { mxCellState state = null; if (isEnabled()) { state = getState(e); boolean valid = (state != null) ? isValidState(state) : false; Color color = getMarkerColor(e, state, valid); highlight(state, color, valid); } return state; }