本文整理汇总了Java中lecho.lib.hellocharts.model.Line.isFilled方法的典型用法代码示例。如果您正苦于以下问题:Java Line.isFilled方法的具体用法?Java Line.isFilled怎么用?Java Line.isFilled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lecho.lib.hellocharts.model.Line
的用法示例。
在下文中一共展示了Line.isFilled方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawPath
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
private void drawPath(Canvas canvas, Line line) {
prepareLinePaint(line);
int valueIndex = 0;
for (PointValue pointValue : line.getValues()) {
float rawX = this.computator.computeRawX(pointValue.getX());
float rawY = this.computator.computeRawY(pointValue.getY());
if (valueIndex == 0) {
this.path.moveTo(rawX, rawY);
} else {
this.path.lineTo(rawX, rawY);
}
valueIndex++;
}
canvas.drawPath(this.path, this.linePaint);
if (line.isFilled()) {
drawArea(canvas, line);
}
this.path.reset();
}
示例2: drawSquarePath
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
private void drawSquarePath(Canvas canvas, Line line) {
prepareLinePaint(line);
int valueIndex = 0;
float previousRawY = 0.0f;
for (PointValue pointValue : line.getValues()) {
float rawX = this.computator.computeRawX(pointValue.getX());
float rawY = this.computator.computeRawY(pointValue.getY());
if (valueIndex == 0) {
this.path.moveTo(rawX, rawY);
} else {
this.path.lineTo(rawX, previousRawY);
this.path.lineTo(rawX, rawY);
}
previousRawY = rawY;
valueIndex++;
}
canvas.drawPath(this.path, this.linePaint);
if (line.isFilled()) {
drawArea(canvas, line);
}
this.path.reset();
}
示例3: drawPath
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
/**
* Draws lines, uses path for drawing filled area on software canvas. Line is drawn with canvas.drawLines() method.
*/
private void drawPath(Canvas canvas, final Line line) {
prepareLinePaint(line);
int valueIndex = 0;
for (PointValue pointValue : line.getValues()) {
final float rawX = computator.computeRawX(pointValue.getX());
final float rawY = computator.computeRawY(pointValue.getY());
if (valueIndex == 0) {
path.moveTo(rawX, rawY);
} else {
path.lineTo(rawX, rawY);
}
++valueIndex;
}
canvas.drawPath(path, linePaint);
if (line.isFilled()) {
drawArea(canvas, line);
}
path.reset();
}
示例4: drawSquarePath
import lecho.lib.hellocharts.model.Line; //导入方法依赖的package包/类
private void drawSquarePath(Canvas canvas, final Line line) {
prepareLinePaint(line);
int valueIndex = 0;
float previousRawY = 0;
for (PointValue pointValue : line.getValues()) {
final float rawX = computator.computeRawX(pointValue.getX());
final float rawY = computator.computeRawY(pointValue.getY());
if (valueIndex == 0) {
path.moveTo(rawX, rawY);
} else {
path.lineTo(rawX, previousRawY);
path.lineTo(rawX, rawY);
}
previousRawY = rawY;
++valueIndex;
}
canvas.drawPath(path, linePaint);
if (line.isFilled()) {
drawArea(canvas, line);
}
path.reset();
}