本文整理汇总了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);
}
示例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());
}
示例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);
}
示例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);
}
示例5: CombinedHighlighter
import com.github.mikephil.charting.interfaces.dataprovider.BarLineScatterCandleBubbleDataProvider; //导入依赖的package包/类
public CombinedHighlighter(BarLineScatterCandleBubbleDataProvider chart) {
super(chart);
}