当前位置: 首页>>代码示例>>Java>>正文


Java BarLineScatterCandleBubbleDataProvider类代码示例

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


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

示例1: set

import com.github.mikephil.charting.interfaces.dataprovider.BarLineScatterCandleBubbleDataProvider; //导入依赖的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

示例2: calcXBounds

import com.github.mikephil.charting.interfaces.dataprovider.BarLineScatterCandleBubbleDataProvider; //导入依赖的package包/类
/**
 * Calculates the minimum and maximum x-value the chart can currently
 * display (with the given zoom level). -> mMinX, mMaxX
 * 
 * @param dataProvider
 * @param xAxisModulus
 */
public void calcXBounds(BarLineScatterCandleBubbleDataProvider dataProvider, int xAxisModulus) {
    
    int low = dataProvider.getLowestVisibleXIndex();
    int high = dataProvider.getHighestVisibleXIndex();
    
    int subLow = (low % xAxisModulus == 0) ? xAxisModulus : 0;
    
    mMinX = Math.max((low / xAxisModulus) * (xAxisModulus) - subLow, 0);
    mMaxX = Math.min((high / xAxisModulus) * (xAxisModulus) + xAxisModulus, (int) dataProvider.getXChartMax());
}
 
开发者ID:rahulmaddineni,项目名称:Stayfit,代码行数:18,代码来源:Renderer.java

示例3: set

import com.github.mikephil.charting.interfaces.dataprovider.BarLineScatterCandleBubbleDataProvider; //导入依赖的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

示例4: calcXBounds

import com.github.mikephil.charting.interfaces.dataprovider.BarLineScatterCandleBubbleDataProvider; //导入依赖的package包/类
@Override
public void calcXBounds(BarLineScatterCandleBubbleDataProvider chart, int xAxisModulus) {
    for (DataRenderer renderer : mRenderers)
        renderer.calcXBounds(chart, xAxisModulus);
}
 
开发者ID:rahulmaddineni,项目名称:Stayfit,代码行数:6,代码来源:CombinedChartRenderer.java

示例5: CombinedHighlighter

import com.github.mikephil.charting.interfaces.dataprovider.BarLineScatterCandleBubbleDataProvider; //导入依赖的package包/类
public CombinedHighlighter(BarLineScatterCandleBubbleDataProvider chart) {
    super(chart);
}
 
开发者ID:rahulmaddineni,项目名称:Stayfit,代码行数:4,代码来源:CombinedHighlighter.java


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