From e8389e6887e9a7b0b1e62b67180759e2a7bfbc6b Mon Sep 17 00:00:00 2001 From: Emux Date: Tue, 23 Jun 2020 13:00:11 +0300 Subject: [PATCH] LineStyle: rename constructor parameter stroke to color --- vtm/src/org/oscim/theme/styles/LineStyle.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vtm/src/org/oscim/theme/styles/LineStyle.java b/vtm/src/org/oscim/theme/styles/LineStyle.java index 75803f81..fb0fc3eb 100644 --- a/vtm/src/org/oscim/theme/styles/LineStyle.java +++ b/vtm/src/org/oscim/theme/styles/LineStyle.java @@ -58,16 +58,16 @@ public final class LineStyle extends RenderStyle { public final float repeatStart; public final float repeatGap; - public LineStyle(int stroke, float width) { - this(0, "", stroke, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); + public LineStyle(int color, float width) { + this(0, "", color, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); } - public LineStyle(int level, int stroke, float width) { - this(level, "", stroke, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); + public LineStyle(int level, int color, float width) { + this(level, "", color, width, Cap.BUTT, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); } - public LineStyle(int stroke, float width, Cap cap) { - this(0, "", stroke, width, cap, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); + public LineStyle(int color, float width, Cap cap) { + this(0, "", color, width, cap, true, 1, 0, 0, 0, -1, 0, false, null, true, null, REPEAT_START_DEFAULT * CanvasAdapter.getScale(), REPEAT_GAP_DEFAULT * CanvasAdapter.getScale()); } public LineStyle(int level, String style, int color, float width,