/** * Highlights the value at the given x-value and y-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * @param x The x-value to highlight * @param y The y-value to highlight. Supply `NaN` for "any" * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, float y, int dataSetIndex) { highlightValue(x, y, dataSetIndex, true); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, int dataSetIndex) { highlightValue(x, dataSetIndex, true); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in * @param callListener Should the listener be called for this change */ public void highlightValue(float x, int dataSetIndex, boolean callListener) { highlightValue(x, Float.NaN, dataSetIndex, callListener); }
/** * Highlights the values represented by the provided Highlight object * This method *will not* call the listener. * * @param highlight contains information about which entry should be highlighted */ public void highlightValue(Highlight highlight) { highlightValue(highlight, false); }
/** * Perform a highlight operation. * * @param e */ protected void performHighlight(Highlight h, MotionEvent e) { if (h == null || h.equalTo(mLastHighlighted)) { mChart.highlightValue(null, true); mLastHighlighted = null; } else { mChart.highlightValue(h, true); mLastHighlighted = h; } }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * @param x The x-value to highlight * @param y The y-value to highlight. Supply `NaN` for "any" * @param dataSetIndex The dataset index to search in * @param callListener Should the listener be called for this change */ public void highlightValue(float x, float y, int dataSetIndex, boolean callListener) { if (dataSetIndex < 0 || dataSetIndex >= mData.getDataSetCount()) { highlightValue(null, callListener); } else { highlightValue(new Highlight(x, y, dataSetIndex), callListener); } }
/** * Highlights the value at the given x-value and y-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * @param x The x-value to highlight * @param y The y-value to highlight. Supply `NaN` for "any" * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, float y, int dataSetIndex) { highlightValue(x, y, dataSetIndex, true); }
/** * Highlights the value at the given x-value and y-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * * @param x The x-value to highlight * @param y The y-value to highlight. Supply `NaN` for "any" * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, float y, int dataSetIndex) { highlightValue(x, y, dataSetIndex, true); }
/** * Highlights the value at the given x-value and y-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * @param x The x-value to highlight * @param y The y-value to highlight. Supply `NaN` for "any" * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, float y, int dataSetIndex) { highlightValue(x, y, dataSetIndex, true); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in * @param callListener Should the listener be called for this change */ public void highlightValue(float x, int dataSetIndex, boolean callListener) { highlightValue(x, Float.NaN, dataSetIndex, callListener); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in * @param callListener Should the listener be called for this change */ public void highlightValue(float x, int dataSetIndex, boolean callListener) { highlightValue(x, Float.NaN, dataSetIndex, callListener); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in * @param callListener Should the listener be called for this change */ public void highlightValue(float x, int dataSetIndex, boolean callListener) { highlightValue(x, Float.NaN, dataSetIndex, callListener); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in * @param callListener Should the listener be called for this change */ public void highlightValue(float x, int dataSetIndex, boolean callListener) { highlightValue(x, Float.NaN, dataSetIndex, callListener); }
/** * Highlights the values represented by the provided Highlight object * This method *will not* call the listener. * * @param highlight contains information about which entry should be highlighted */ public void highlightValue(Highlight highlight) { highlightValue(highlight, false); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, int dataSetIndex) { highlightValue(x, dataSetIndex, true); }
/** * Highlights the values represented by the provided Highlight object * This method *will not* call the listener. * * @param highlight contains information about which entry should be highlighted */ public void highlightValue(Highlight highlight) { highlightValue(highlight, false); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, int dataSetIndex) { highlightValue(x, dataSetIndex, true); }
/** * Highlights the values represented by the provided Highlight object * This method *will not* call the listener. * * @param highlight contains information about which entry should be highlighted */ public void highlightValue(Highlight highlight) { highlightValue(highlight, false); }
/** * Highlights any y-value at the given x-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * @param x The x-value to highlight * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, int dataSetIndex) { highlightValue(x, dataSetIndex, true); }
/** * Highlights the value at the given x-value and y-value in the given DataSet. * Provide -1 as the dataSetIndex to undo all highlighting. * This method will call the listener. * @param x The x-value to highlight * @param y The y-value to highlight. Supply `NaN` for "any" * @param dataSetIndex The dataset index to search in */ public void highlightValue(float x, float y, int dataSetIndex) { highlightValue(x, y, dataSetIndex, true); }