com.github.mikephil.charting.highlight.Highlight.equalTo()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中com.github.mikephil.charting.highlight.Highlight.equalTo()方法的一些代码示例,展示了Highlight.equalTo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Highlight.equalTo()方法的具体详情如下:
包路径:com.github.mikephil.charting.highlight.Highlight
类名称:Highlight
方法名:equalTo

Highlight.equalTo介绍

[英]Returns true if this highlight object is equal to the other (compares xIndex and dataSetIndex)
[中]如果此高亮显示对象等于另一个,则返回true(比较xIndex和dataSetIndex)

代码示例

代码示例来源:origin: PhilJay/MPAndroidChart

/**
 * Highlights upon dragging, generates callbacks for the selection-listener.
 *
 * @param e
 */
private void performHighlightDrag(MotionEvent e) {
  Highlight h = mChart.getHighlightByTouchPoint(e.getX(), e.getY());
  if (h != null && !h.equalTo(mLastHighlighted)) {
    mLastHighlighted = h;
    mChart.highlightValue(h, true);
  }
}

代码示例来源:origin: PhilJay/MPAndroidChart

/**
 * 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;
  }
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

/**
 * Highlights upon dragging, generates callbacks for the selection-listener.
 *
 * @param e
 */
private void performHighlightDrag(MotionEvent e) {
  Highlight h = mChart.getHighlightByTouchPoint(e.getX(), e.getY());
  if (h != null && !h.equalTo(mLastHighlighted)) {
    mLastHighlighted = h;
    mChart.highlightValue(h, true);
  }
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

/**
 * Highlights upon dragging, generates callbacks for the selection-listener.
 *
 * @param e
 */
private void performHighlightDrag(MotionEvent e) {
  Highlight h = mChart.getHighlightByTouchPoint(e.getX(), e.getY());
  if (h != null && !h.equalTo(mLastHighlighted)) {
    mLastHighlighted = h;
    mChart.highlightValue(h, true);
  }
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * Highlights upon dragging, generates callbacks for the selection-listener.
 *
 * @param e
 */
private void performHighlightDrag(MotionEvent e) {
  Highlight h = mChart.getHighlightByTouchPoint(e.getX(), e.getY());
  if (h != null && !h.equalTo(mLastHighlighted)) {
    mLastHighlighted = h;
    mChart.highlightValue(h, true);
  }
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

/**
 * Highlights upon dragging, generates callbacks for the selection-listener.
 *
 * @param e
 */
private void performHighlightDrag(MotionEvent e) {
  Highlight h = mChart.getHighlightByTouchPoint(e.getX(), e.getY());
  if (h != null && !h.equalTo(mLastHighlighted)) {
    mLastHighlighted = h;
    mChart.highlightValue(h, true);
  }
}

代码示例来源:origin: com.github.PhilJay/MPAndroidChart

/**
 * 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;
  }
}

代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart

/**
 * 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;
  }
}

代码示例来源:origin: WenWangAndroid/ChartManager

/**
 * 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;
  }
}

代码示例来源:origin: xiaolongonly/Ticket-Analysis

/**
 * 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;
  }
}

相关文章