summaryrefslogtreecommitdiff
path: root/src/net/sourceforge/plantuml/ugraphic/URectangle.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sourceforge/plantuml/ugraphic/URectangle.java')
-rw-r--r--src/net/sourceforge/plantuml/ugraphic/URectangle.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/sourceforge/plantuml/ugraphic/URectangle.java b/src/net/sourceforge/plantuml/ugraphic/URectangle.java
index 0230333..ca4c441 100644
--- a/src/net/sourceforge/plantuml/ugraphic/URectangle.java
+++ b/src/net/sourceforge/plantuml/ugraphic/URectangle.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
*
@@ -93,6 +93,10 @@ public class URectangle extends AbstractShadowable implements Scalable, UShapeSi
this(dim.getWidth(), dim.getHeight());
}
+ public URectangle(Dimension2D dim, double rx, double ry) {
+ this(dim.getWidth(), dim.getHeight(), rx, ry);
+ }
+
@Override
public String toString() {
return "width=" + width + " height=" + height;