summaryrefslogtreecommitdiff
path: root/src/net/sourceforge/plantuml/skin/rose/ComponentRoseLine.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sourceforge/plantuml/skin/rose/ComponentRoseLine.java')
-rw-r--r--src/net/sourceforge/plantuml/skin/rose/ComponentRoseLine.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/net/sourceforge/plantuml/skin/rose/ComponentRoseLine.java b/src/net/sourceforge/plantuml/skin/rose/ComponentRoseLine.java
index 29f189c..6d1ae2b 100644
--- a/src/net/sourceforge/plantuml/skin/rose/ComponentRoseLine.java
+++ b/src/net/sourceforge/plantuml/skin/rose/ComponentRoseLine.java
@@ -2,7 +2,7 @@
* PlantUML : a free UML diagram generator
* ========================================================================
*
- * (C) Copyright 2009-2017, Arnaud Roques
+ * (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: http://plantuml.com
*
@@ -37,11 +37,15 @@ package net.sourceforge.plantuml.skin.rose;
import java.awt.geom.Dimension2D;
+import net.sourceforge.plantuml.SkinParam;
import net.sourceforge.plantuml.graphic.HtmlColor;
+import net.sourceforge.plantuml.graphic.IHtmlColorSet;
import net.sourceforge.plantuml.graphic.StringBounder;
import net.sourceforge.plantuml.skin.AbstractComponent;
import net.sourceforge.plantuml.skin.Area;
import net.sourceforge.plantuml.skin.ArrowConfiguration;
+import net.sourceforge.plantuml.style.PName;
+import net.sourceforge.plantuml.style.Style;
import net.sourceforge.plantuml.ugraphic.UChangeColor;
import net.sourceforge.plantuml.ugraphic.UGraphic;
import net.sourceforge.plantuml.ugraphic.ULine;
@@ -54,8 +58,13 @@ public class ComponentRoseLine extends AbstractComponent {
private final boolean continueLine;
private final UStroke stroke;
- public ComponentRoseLine(HtmlColor color, boolean continueLine, UStroke stroke) {
- this.color = color;
+ public ComponentRoseLine(Style style, HtmlColor color, boolean continueLine, UStroke stroke, IHtmlColorSet set) {
+ super(style);
+ if (SkinParam.USE_STYLES()) {
+ this.color = style.value(PName.LineColor).asColor(set);
+ } else {
+ this.color = color;
+ }
this.continueLine = continueLine;
this.stroke = stroke;
}