本文整理汇总了Java中com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet类的典型用法代码示例。如果您正苦于以下问题:Java ILineScatterCandleRadarDataSet类的具体用法?Java ILineScatterCandleRadarDataSet怎么用?Java ILineScatterCandleRadarDataSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ILineScatterCandleRadarDataSet类属于com.github.mikephil.charting.interfaces.datasets包,在下文中一共展示了ILineScatterCandleRadarDataSet类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: drawHighlightLines
import com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet; //导入依赖的package包/类
/**
* Draws vertical & horizontal highlight-lines if enabled.
*
* @param c
* @param x x-position of the highlight line intersection
* @param y y-position of the highlight line intersection
* @param set the currently drawn dataset
*/
protected void drawHighlightLines(Canvas c, float x, float y, ILineScatterCandleRadarDataSet set) {
// set color and stroke-width
mHighlightPaint.setColor(set.getHighLightColor());
mHighlightPaint.setStrokeWidth(set.getHighlightLineWidth());
// draw highlighted lines (if enabled)
mHighlightPaint.setPathEffect(set.getDashPathEffectHighlight());
// draw vertical highlight lines
if (set.isVerticalHighlightIndicatorEnabled()) {
// create vertical path
mHighlightLinePath.reset();
mHighlightLinePath.moveTo(x, mViewPortHandler.contentTop());
mHighlightLinePath.lineTo(x, mViewPortHandler.contentBottom());
c.drawPath(mHighlightLinePath, mHighlightPaint);
}
// draw horizontal highlight lines
if (set.isHorizontalHighlightIndicatorEnabled()) {
// create horizontal path
mHighlightLinePath.reset();
mHighlightLinePath.moveTo(mViewPortHandler.contentLeft(), y);
mHighlightLinePath.lineTo(mViewPortHandler.contentRight(), y);
c.drawPath(mHighlightLinePath, mHighlightPaint);
}
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:40,代码来源:LineScatterCandleRadarRenderer.java
示例2: drawHighlightLines
import com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet; //导入依赖的package包/类
/**
* Draws vertical & horizontal highlight-lines if enabled.
*
* @param c
* @param pts the transformed x- and y-position of the lines
* @param set the currently drawn dataset
*/
protected void drawHighlightLines(Canvas c, float[] pts, ILineScatterCandleRadarDataSet set) {
// set color and stroke-width
mHighlightPaint.setColor(set.getHighLightColor());
mHighlightPaint.setStrokeWidth(set.getHighlightLineWidth());
// draw highlighted lines (if enabled)
mHighlightPaint.setPathEffect(set.getDashPathEffectHighlight());
// draw vertical highlight lines
if (set.isVerticalHighlightIndicatorEnabled()) {
// create vertical path
mHighlightLinePath.reset();
mHighlightLinePath.moveTo(pts[0], mViewPortHandler.contentTop());
mHighlightLinePath.lineTo(pts[0], mViewPortHandler.contentBottom());
c.drawPath(mHighlightLinePath, mHighlightPaint);
}
// draw horizontal highlight lines
if (set.isHorizontalHighlightIndicatorEnabled()) {
// create horizontal path
mHighlightLinePath.reset();
mHighlightLinePath.moveTo(mViewPortHandler.contentLeft(), pts[1]);
mHighlightLinePath.lineTo(mViewPortHandler.contentRight(), pts[1]);
c.drawPath(mHighlightLinePath, mHighlightPaint);
}
}
开发者ID:rahulmaddineni,项目名称:Stayfit,代码行数:39,代码来源:LineScatterCandleRadarRenderer.java
注:本文中的com.github.mikephil.charting.interfaces.datasets.ILineScatterCandleRadarDataSet类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论