当前位置: 首页>>代码示例>>Java>>正文


Java Line.isFilled方法代码示例

本文整理汇总了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();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:20,代码来源:LineChartRenderer.java

示例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();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:23,代码来源:LineChartRenderer.java

示例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();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:31,代码来源:LineChartRenderer.java

示例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();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:32,代码来源:LineChartRenderer.java


注:本文中的lecho.lib.hellocharts.model.Line.isFilled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。