本文整理汇总了Java中com.github.mikephil.charting.data.BarLineScatterCandleBubbleData类的典型用法代码示例。如果您正苦于以下问题:Java BarLineScatterCandleBubbleData类的具体用法?Java BarLineScatterCandleBubbleData怎么用?Java BarLineScatterCandleBubbleData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BarLineScatterCandleBubbleData类属于com.github.mikephil.charting.data包,在下文中一共展示了BarLineScatterCandleBubbleData类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: BarLineChartTouchListener
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的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
示例2: BarLineChartTouchListener
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的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
示例3: getData
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
@Override
protected BarLineScatterCandleBubbleData getData() {
return mChart.getBarData();
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:BarHighlighter.java
示例4: getHighlightsAtXValue
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
/**
* Returns a list of Highlight objects representing the entries closest to the given xVal.
* The returned list contains two objects per DataSet (closest rounding up, closest rounding down).
*
* @param xVal the transformed x-value of the x-touch position
* @param x touch position
* @param y touch position
* @return
*/
protected List<Highlight> getHighlightsAtXValue(float xVal, float x, float y) {
mHighlightBuffer.clear();
BarLineScatterCandleBubbleData data = getData();
if (data == null)
return mHighlightBuffer;
for (int i = 0, dataSetCount = data.getDataSetCount(); i < dataSetCount; i++) {
IDataSet dataSet = data.getDataSetByIndex(i);
// don't include DataSets that cannot be highlighted
if (!dataSet.isHighlightEnabled())
continue;
mHighlightBuffer.addAll(buildHighlights(dataSet, i, xVal, DataSet.Rounding.CLOSEST));
}
return mHighlightBuffer;
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:32,代码来源:ChartHighlighter.java
示例5: getData
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
protected BarLineScatterCandleBubbleData getData() {
return mChart.getData();
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:ChartHighlighter.java
示例6: BarLineChartTouchListener
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
public BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends IBarLineScatterCandleBubbleDataSet<? extends Entry>>> chart, Matrix touchMatrix) {
super(chart);
this.mMatrix = touchMatrix;
}
开发者ID:rahulmaddineni,项目名称:Stayfit,代码行数:5,代码来源:BarLineChartTouchListener.java
示例7: BarLineChartTouchListener
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
public BarLineChartTouchListener(BarLineChartBase<? extends BarLineScatterCandleBubbleData<? extends BarLineScatterCandleBubbleDataSet<? extends Entry>>> chart, Matrix touchMatrix) {
super(chart);
this.mMatrix = touchMatrix;
}
开发者ID:xinpengfei520,项目名称:P2P,代码行数:5,代码来源:BarLineChartTouchListener.java
示例8: getHighlightsAtXPos
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
@Override
protected List<Highlight> getHighlightsAtXPos(float xVal, float x, float y) {
mHighlightBuffer.clear();
List<BarLineScatterCandleBubbleData> dataObjects = mChart.getCombinedData().getAllData();
for (int i = 0; i < dataObjects.size(); i++) {
ChartData dataObject = dataObjects.get(i);
// in case of BarData, let the BarHighlighter take over
if (barHighlighter != null && dataObject instanceof BarData) {
Highlight high = barHighlighter.getHighlight(x, y);
if (high != null) {
high.setDataIndex(i);
mHighlightBuffer.add(high);
}
} else {
for (int j = 0, dataSetCount = dataObject.getDataSetCount(); j < dataSetCount; j++) {
IDataSet dataSet = dataObjects.get(i).getDataSetByIndex(j);
// don't include datasets that cannot be highlighted
if (!dataSet.isHighlightEnabled())
continue;
Highlight s1 = buildHighlight(dataSet, j, xVal, DataSet.Rounding.CLOSEST);
s1.setDataIndex(i);
mHighlightBuffer.add(s1);
// Highlight s2 = buildHighlight(dataSet, j, xVal, DataSet.Rounding.DOWN);
// s2.setDataIndex(i);
// vals.add(s2);
}
}
}
return mHighlightBuffer;
}
开发者ID:letolab,项目名称:LETO-Toggl_Android,代码行数:43,代码来源:CombinedHighlighter.java
示例9: getHighlightsAtXPos
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
/**
* Returns a list of Highlight objects representing the entries closest to the given xVal.
* The returned list contains two objects per DataSet (closest rounding up, closest rounding down).
*
* @param xVal the transformed x-value of the x-touch position
* @param x touch position
* @param y touch position
* @return
*/
protected List<Highlight> getHighlightsAtXPos(float xVal, float x, float y) {
mHighlightBuffer.clear();
BarLineScatterCandleBubbleData data = getData();
if (data == null)
return mHighlightBuffer;
for (int i = 0, dataSetCount = data.getDataSetCount(); i < dataSetCount; i++) {
IDataSet dataSet = data.getDataSetByIndex(i);
// dont include datasets that cannot be highlighted
if (!dataSet.isHighlightEnabled())
continue;
Highlight high = buildHighlight(dataSet, i, xVal, DataSet.Rounding.CLOSEST);
if(high != null)
mHighlightBuffer.add(high);
//vals.add(buildHighlight(dataSet, i, xVal, DataSet.Rounding.DOWN));
}
return mHighlightBuffer;
}
开发者ID:letolab,项目名称:LETO-Toggl_Android,代码行数:36,代码来源:ChartHighlighter.java
示例10: getData
import com.github.mikephil.charting.data.BarLineScatterCandleBubbleData; //导入依赖的package包/类
BarLineScatterCandleBubbleData getData();
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:2,代码来源:BarLineScatterCandleBubbleDataProvider.java
注:本文中的com.github.mikephil.charting.data.BarLineScatterCandleBubbleData类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论