summaryrefslogtreecommitdiff
path: root/src/net/sourceforge/plantuml/ugraphic/AbstractCommonUGraphic.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sourceforge/plantuml/ugraphic/AbstractCommonUGraphic.java')
-rw-r--r--src/net/sourceforge/plantuml/ugraphic/AbstractCommonUGraphic.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/net/sourceforge/plantuml/ugraphic/AbstractCommonUGraphic.java b/src/net/sourceforge/plantuml/ugraphic/AbstractCommonUGraphic.java
index 097d3fb..ef6771a 100644
--- a/src/net/sourceforge/plantuml/ugraphic/AbstractCommonUGraphic.java
+++ b/src/net/sourceforge/plantuml/ugraphic/AbstractCommonUGraphic.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
*
@@ -44,6 +44,7 @@ public abstract class AbstractCommonUGraphic implements UGraphic {
private boolean hidden = false;
private HtmlColor backColor = null;
private HtmlColor color = null;
+ private boolean enlargeClip = false;
private UTranslate translate = new UTranslate();
@@ -80,14 +81,22 @@ public abstract class AbstractCommonUGraphic implements UGraphic {
}
final public UClip getClip() {
+ if (enlargeClip && clip != null) {
+ return clip.enlarge(1);
+ }
return clip;
}
+ final public void enlargeClip() {
+ this.enlargeClip = true;
+ }
+
public AbstractCommonUGraphic(ColorMapper colorMapper) {
this.colorMapper = colorMapper;
}
protected AbstractCommonUGraphic(AbstractCommonUGraphic other) {
+ this.enlargeClip = other.enlargeClip;
this.colorMapper = other.colorMapper;
this.translate = other.translate;
this.clip = other.clip;