Java Code Examples for lecho.lib.hellocharts.model.Line#setPathEffect()
The following examples show how to use
lecho.lib.hellocharts.model.Line#setPathEffect() .
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 | 5 votes |
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; }
Example 2
Source File: BgGraphBuilder.java From xDrip with GNU General Public License v3.0 | 5 votes |
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; }
Example 3
Source File: BgGraphBuilder.java From xDrip with GNU General Public License v3.0 | 5 votes |
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; }
Example 4
Source File: BgGraphBuilder.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
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; }
Example 5
Source File: BgGraphBuilder.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
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; }
Example 6
Source File: BgGraphBuilder.java From xDrip-plus with GNU General Public License v3.0 | 5 votes |
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; }