new plotter
This commit is contained in:
@@ -18,7 +18,7 @@ public class PlotLineDef {
|
||||
*/
|
||||
|
||||
@NotNull
|
||||
public static final Float DEFAULT_LINE_WIDTH = -1f;
|
||||
private static final Float DEFAULT_LINE_WIDTH = 0f;
|
||||
|
||||
private static final int WHITE = 0xFFFFFFFF;
|
||||
|
||||
@@ -39,7 +39,7 @@ public class PlotLineDef {
|
||||
@NotNull
|
||||
private PlotLineStyle lineStyle = PlotLineStyle.solid;
|
||||
|
||||
private float lineWidth = -DEFAULT_LINE_WIDTH;
|
||||
private float lineWidth = DEFAULT_LINE_WIDTH;
|
||||
|
||||
private PlotLineDef() {
|
||||
}
|
||||
@@ -88,6 +88,13 @@ public class PlotLineDef {
|
||||
return result;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static PlotLineDef changeLineWidth(@NotNull PlotLineDef plotLineDef, int newLineWidth) {
|
||||
final PlotLineDef result = plotLineDef.copy();
|
||||
result.lineWidth = newLineWidth;
|
||||
return result;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static PlotLineDef changeLineColorType(@NotNull PlotLineDef plotLineDef, @NotNull PlotLineColorType newPlotLineColorType) {
|
||||
final PlotLineDef result = plotLineDef.copy();
|
||||
|
Reference in New Issue
Block a user