Java Code Examples for lecho.lib.hellocharts.model.Line#setBitmapCacheProvider()

The following examples show how to use lecho.lib.hellocharts.model.Line#setBitmapCacheProvider() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BgGraphBuilder.java    From xDrip with GNU General Public License v3.0 6 votes vote down vote up
private List<Line> smbLines() {
    final List<Line> lines = new LinkedList<>();
    final Line line = new Line(smbValues);
    line.setTag("smb");
    line.setHasPoints(true);
    line.setHasLines(false);
    line.setPointRadius(4);
    line.setPointColor(Color.TRANSPARENT);
    line.setStrokeWidth(1);
    line.setColor(getCol(X.color_smb_line));
    line.setPointColor(ColorUtil.blendColor(getCol(X.color_smb_line), Color.TRANSPARENT, 0.99f));
    line.setBitmapScale(0.5f);
    line.setBitmapLabels(true);
    line.setBitmapCacheProvider(BitmapLoader.getInstance());
    lines.add(line);
    return lines;
}
 
Example 2
Source File: BgGraphBuilder.java    From xDrip with GNU General Public License v3.0 6 votes vote down vote up
private List<Line> iconLines() {
    final List<Line> lines = new LinkedList<>();

    final Line line = new Line(iconValues);
    line.setTag("icon");
    line.setHasPoints(true);
    line.setHasLines(false);
    line.setPointRadius(5);
    line.setPointColor(ColorUtil.blendColor(Color.BLACK,Color.TRANSPARENT, 0.99f));
    line.setBitmapScale(1f);
    line.setBitmapLabels(true);
    line.setBitmapLabelShadowColor(Color.WHITE);
    line.setFullShadow(true);
    line.setBitmapCacheProvider(BitmapLoader.getInstance());
    lines.add(line);
    return lines;
}
 
Example 3
Source File: BgGraphBuilder.java    From xDrip-plus with GNU General Public License v3.0 6 votes vote down vote up
private List<Line> smbLines() {
    final List<Line> lines = new LinkedList<>();
    final Line line = new Line(smbValues);
    line.setTag("smb");
    line.setHasPoints(true);
    line.setHasLines(false);
    line.setPointRadius(4);
    line.setPointColor(Color.TRANSPARENT);
    line.setStrokeWidth(1);
    line.setColor(getCol(X.color_smb_line));
    line.setPointColor(ColorUtil.blendColor(getCol(X.color_smb_line), Color.TRANSPARENT, 0.99f));
    line.setBitmapScale(0.5f);
    line.setBitmapLabels(true);
    line.setBitmapCacheProvider(BitmapLoader.getInstance());
    lines.add(line);
    return lines;
}
 
Example 4
Source File: BgGraphBuilder.java    From xDrip-plus with GNU General Public License v3.0 6 votes vote down vote up
private List<Line> iconLines() {
    final List<Line> lines = new LinkedList<>();

    final Line line = new Line(iconValues);
    line.setTag("icon");
    line.setHasPoints(true);
    line.setHasLines(false);
    line.setPointRadius(5);
    line.setPointColor(ColorUtil.blendColor(Color.BLACK,Color.TRANSPARENT, 0.99f));
    line.setBitmapScale(1f);
    line.setBitmapLabels(true);
    line.setBitmapLabelShadowColor(Color.WHITE);
    line.setFullShadow(true);
    line.setBitmapCacheProvider(BitmapLoader.getInstance());
    lines.add(line);
    return lines;
}