本文整理汇总了Java中lecho.lib.hellocharts.model.Line.setPathEffect方法的典型用法代码示例。如果您正苦于以下问题:Java Line.setPathEffect方法的具体用法?Java Line.setPathEffect怎么用?Java Line.setPathEffect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lecho.lib.hellocharts.model.Line
的用法示例。
在下文中一共展示了Line.setPathEffect方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTargetLine
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
private Line getTargetLine() {
if (!needDrawTargetLine()) {
return null;
}
PointValue lastRecordPoint = (PointValue) this.mPointValues.get(this.mPointValues.size()
- 1);
PointValue targetPoint = new PointValue(((AxisValue) this.mAxisValues.get(this
.mAxisValues.size() - 1)).getValue(), this.mTargetWeight);
List<PointValue> points = new ArrayList();
points.add(lastRecordPoint);
points.add(targetPoint);
Line line = new Line(points);
line.setColor(this.resources.getColor(R.color.da));
line.setPathEffect(new DashPathEffect(new float[]{15.0f, 15.0f, 15.0f, 15.0f}, 0.0f));
line.setHasLabels(false);
if (this.mTypeMode > 0) {
line.setHasPoints(false);
return line;
}
line.setHasPoints(true);
return line;
}
示例2: avg1Line
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
public Line avg1Line() {
List<PointValue> myLineValues = new ArrayList<PointValue>();
myLineValues.add(new PointValue((float) avg1startfuzzed, (float) unitized(avg1value)));
myLineValues.add(new PointValue((float) end_time, (float) unitized(avg1value)));
Line myLine = new Line(myLineValues);
myLine.setHasPoints(false);
myLine.setStrokeWidth(1);
myLine.setColor(getCol(X.color_average1_line));
myLine.setPathEffect(new DashPathEffect(new float[]{10.0f, 10.0f}, 0));
myLine.setAreaTransparency(50);
return myLine;
}
示例3: avg2Line
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
public Line avg2Line() {
List<PointValue> myLineValues = new ArrayList<PointValue>();
myLineValues.add(new PointValue((float) start_time, (float) unitized(avg2value)));
myLineValues.add(new PointValue((float) end_time, (float) unitized(avg2value)));
Line myLine = new Line(myLineValues);
myLine.setHasPoints(false);
myLine.setStrokeWidth(1);
myLine.setColor(getCol(X.color_average2_line));
myLine.setPathEffect(new DashPathEffect(new float[]{30.0f, 10.0f}, 0));
myLine.setAreaTransparency(50);
return myLine;
}
示例4: idealLine
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
public Line idealLine() {
// if profile has more than 1 target bg value then we need to iterate those and plot them for completeness
List<PointValue> myLineValues = new ArrayList<PointValue>();
myLineValues.add(new PointValue((float) start_time, (float) Profile.getTargetRangeInUnits(start_time)));
myLineValues.add(new PointValue((float) predictive_end_time, (float) Profile.getTargetRangeInUnits(predictive_end_time)));
Line myLine = new Line(myLineValues);
myLine.setHasPoints(false);
myLine.setStrokeWidth(1);
myLine.setColor(getCol(X.color_target_line));
myLine.setPathEffect(new DashPathEffect(new float[]{5f, 5f}, 0));
myLine.setAreaTransparency(50);
return myLine;
}