• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java IBarLineScatterCandleBubbleDataSet类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet的典型用法代码示例。如果您正苦于以下问题:Java IBarLineScatterCandleBubbleDataSet类的具体用法?Java IBarLineScatterCandleBubbleDataSet怎么用?Java IBarLineScatterCandleBubbleDataSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IBarLineScatterCandleBubbleDataSet类属于com.github.mikephil.charting.interfaces.datasets包,在下文中一共展示了IBarLineScatterCandleBubbleDataSet类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getDataSetByTouchPoint

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
/**
 * returns the DataSet object displayed at the touched position of the chart
 *
 * @param x
 * @param y
 * @return
 */
public IBarLineScatterCandleBubbleDataSet getDataSetByTouchPoint(float x, float y) {
    Highlight h = getHighlightByTouchPoint(x, y);
    if (h != null) {
        return mData.getDataSetByIndex(h.getDataSetIndex());
    }
    return null;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:15,代码来源:BarLineChartBase.java


示例2: BarLineChartTouchListener

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
/**
 * Constructor with initialization parameters.
 *
 * @param chart               instance of the chart
 * @param touchMatrix         the touch-matrix of the chart
 * @param dragTriggerDistance the minimum movement distance that will be interpreted as a "drag" gesture in dp (3dp equals
 *                            to about 9 pixels on a 5.5" FHD screen)
 */
public BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends
        IBarLineScatterCandleBubbleDataSet<? extends Entry>>> chart, Matrix touchMatrix, float dragTriggerDistance) {
    super(chart);
    this.mMatrix = touchMatrix;

    this.mDragTriggerDist = Utils.convertDpToPixel(dragTriggerDistance);

    this.mMinScalePointerDistance = Utils.convertDpToPixel(3.5f);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:18,代码来源:BarLineChartTouchListener.java


示例3: isInBoundsX

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
/**
 * Checks if the provided entry object is in bounds for drawing considering the current animation phase.
 *
 * @param e
 * @param set
 * @return
 */
protected boolean isInBoundsX(Entry e, IBarLineScatterCandleBubbleDataSet set) {

    if (e == null)
        return false;

    float entryIndex = set.getEntryIndex(e);

    if (e == null || entryIndex >= set.getEntryCount() * mAnimator.getPhaseX()) {
        return false;
    } else {
        return true;
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:21,代码来源:BarLineScatterCandleBubbleRenderer.java


示例4: set

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
/**
 * Calculates the minimum and maximum x values as well as the range between them.
 *
 * @param chart
 * @param dataSet
 */
public void set(BarLineScatterCandleBubbleDataProvider chart, IBarLineScatterCandleBubbleDataSet dataSet) {
    float phaseX = Math.max(0.f, Math.min(1.f, mAnimator.getPhaseX()));

    float low = chart.getLowestVisibleX();
    float high = chart.getHighestVisibleX();

    Entry entryFrom = dataSet.getEntryForXValue(low, Float.NaN, DataSet.Rounding.DOWN);
    Entry entryTo = dataSet.getEntryForXValue(high, Float.NaN, DataSet.Rounding.UP);

    min = entryFrom == null ? 0 : dataSet.getEntryIndex(entryFrom);
    max = entryTo == null ? 0 : dataSet.getEntryIndex(entryTo);
    range = (int) ((max - min) * phaseX);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:20,代码来源:BarLineScatterCandleBubbleRenderer.java


示例5: BarLineChartTouchListener

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
public BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends IBarLineScatterCandleBubbleDataSet<? extends Entry>>> chart, Matrix touchMatrix) {
    super(chart);
    this.mMatrix = touchMatrix;

    // this equals to about 9 pixels on a 5.5" FHD screen
    this.mDragTriggerDist = Utils.convertDpToPixel(3f);

    this.mMinScalePointerDistance = Utils.convertDpToPixel(3.5f);
}
 
开发者ID:pencil-box,项目名称:NetKnight,代码行数:10,代码来源:BarLineChartTouchListener.java


示例6: set

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
/**
 * Calculates the minimum and maximum x values as well as the range between them.
 *
 * @param chart
 * @param dataSet
 */
public void set(BarLineScatterCandleBubbleDataProvider chart, IBarLineScatterCandleBubbleDataSet dataSet) {
    float phaseX = Math.max(0.f, Math.min(1.f, mAnimator.getPhaseX()));

    float low = chart.getLowestVisibleX();
    float high = chart.getHighestVisibleX();

    Entry entryFrom = dataSet.getEntryForXPos(low, DataSet.Rounding.DOWN);
    Entry entryTo = dataSet.getEntryForXPos(high, DataSet.Rounding.UP);

    min = dataSet.getEntryIndex(entryFrom);
    max = dataSet.getEntryIndex(entryTo);
    range = (int) ((max - min) * phaseX);
}
 
开发者ID:letolab,项目名称:LETO-Toggl_Android,代码行数:20,代码来源:BarLineScatterCandleBubbleRenderer.java


示例7: getDataSetByHighlight

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
/**
 * Get dataset for highlight
 *
 * @param highlight current highlight
 * @return dataset related to highlight
 */
public IBarLineScatterCandleBubbleDataSet<? extends Entry> getDataSetByHighlight(Highlight highlight) {
    if (highlight.getDataIndex() >= getAllData().size())
        return null;

    BarLineScatterCandleBubbleData data = getDataByIndex(highlight.getDataIndex());

    if (highlight.getDataSetIndex() >= data.getDataSetCount())
        return null;

    return (IBarLineScatterCandleBubbleDataSet<? extends Entry>)
            data.getDataSets().get(highlight.getDataSetIndex());
}
 
开发者ID:PhilJay,项目名称:MPAndroidChart,代码行数:19,代码来源:CombinedData.java


示例8: calcMinMax

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
@Override
public void calcMinMax() {

    if(mDataSets == null){
        mDataSets = new ArrayList<>();
    }
    mDataSets.clear();

    mYMax = -Float.MAX_VALUE;
    mYMin = Float.MAX_VALUE;
    mXMax = -Float.MAX_VALUE;
    mXMin = Float.MAX_VALUE;

    mLeftAxisMax = -Float.MAX_VALUE;
    mLeftAxisMin = Float.MAX_VALUE;
    mRightAxisMax = -Float.MAX_VALUE;
    mRightAxisMin = Float.MAX_VALUE;

    List<BarLineScatterCandleBubbleData> allData = getAllData();

    for (ChartData data : allData) {

        data.calcMinMax();

        List<IBarLineScatterCandleBubbleDataSet<? extends Entry>> sets = data.getDataSets();
        mDataSets.addAll(sets);

        if (data.getYMax() > mYMax)
            mYMax = data.getYMax();

        if (data.getYMin() < mYMin)
            mYMin = data.getYMin();

        if (data.getXMax() > mXMax)
            mXMax = data.getXMax();

        if (data.getXMin() < mXMin)
            mXMin = data.getXMin();

        if (data.mLeftAxisMax > mLeftAxisMax)
            mLeftAxisMax = data.mLeftAxisMax;

        if (data.mLeftAxisMin < mLeftAxisMin)
            mLeftAxisMin = data.mLeftAxisMin;

        if (data.mRightAxisMax > mRightAxisMax)
            mRightAxisMax = data.mRightAxisMax;

        if (data.mRightAxisMin < mRightAxisMin)
            mRightAxisMin = data.mRightAxisMin;

    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:54,代码来源:CombinedData.java


示例9: removeDataSet

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
@Override
public boolean removeDataSet(IBarLineScatterCandleBubbleDataSet<? extends Entry> d) {

    List<BarLineScatterCandleBubbleData> datas = getAllData();

    boolean success = false;

    for (ChartData data : datas) {

        success = data.removeDataSet(d);

        if (success) {
            break;
        }
    }

    return success;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:19,代码来源:CombinedData.java


示例10: BarLineChartTouchListener

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
public BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends IBarLineScatterCandleBubbleDataSet<? extends Entry>>> chart, Matrix touchMatrix) {
    super(chart);
    this.mMatrix = touchMatrix;
}
 
开发者ID:rahulmaddineni,项目名称:Stayfit,代码行数:5,代码来源:BarLineChartTouchListener.java


示例11: calcMinMax

import com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet; //导入依赖的package包/类
@Override
public void calcMinMax() {

    if(mDataSets == null){
        mDataSets = new ArrayList<>();
    }
    mDataSets.clear();

    mYMax = -Float.MAX_VALUE;
    mYMin = Float.MAX_VALUE;
    mXMax = -Float.MAX_VALUE;
    mXMin = Float.MAX_VALUE;

    mLeftAxisMax = -Float.MAX_VALUE;
    mLeftAxisMin = Float.MAX_VALUE;
    mRightAxisMax = -Float.MAX_VALUE;
    mRightAxisMin = Float.MAX_VALUE;

    List<BarLineScatterCandleBubbleData> allData = getAllData();

    for (ChartData data : allData) {

        data.calcMinMax();

        List<IBarLineScatterCandleBubbleDataSet<? extends Entry>> sets = data.getDataSets();
        mDataSets.addAll(sets);

        if (data.getYMax() > mYMax)
            mYMax = data.getYMax();

        if (data.getYMin() < mYMin)
            mYMin = data.getYMin();

        if (data.getXMax() > mXMax)
            mXMax = data.getXMax();

        if (data.getXMin() < mXMin)
            mXMin = data.getXMin();

        if (data.mLeftAxisMax > mLeftAxisMax)
            mLeftAxisMax = data.mLeftAxisMax;

        if (data.mLeftAxisMin < mLeftAxisMin)
            mLeftAxisMin = data.mLeftAxisMin;

        if (data.mRightAxisMax > mRightAxisMax)
            mRightAxisMax = data.mRightAxisMax;

        if (data.mRightAxisMin < mRightAxisMin)
            mRightAxisMin = data.mRightAxisMin;

    }

}
 
开发者ID:letolab,项目名称:LETO-Toggl_Android,代码行数:55,代码来源:CombinedData.java



注:本文中的com.github.mikephil.charting.interfaces.datasets.IBarLineScatterCandleBubbleDataSet类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Func类代码示例发布时间:2022-05-23
下一篇:
Java IndexedRecord类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap