new plotter

This commit is contained in:
Sergey Solovyev
2013-01-16 17:47:56 +04:00
parent 93c5e2a093
commit c3f1e3200f
14 changed files with 188 additions and 80 deletions

View File

@@ -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();