Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/PackageFigure.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/PackageFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/PackageFigure.java
index 07e7473ebb9..0d425afb3fb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/PackageFigure.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/PackageFigure.java
@@ -225,6 +225,7 @@ public class PackageFigure extends NodeNamedElementFigure {
*/
@Override
protected void paintBackground(Graphics graphics, Rectangle rectangle) {
+ super.paintBackground(graphics, rectangle);
if (isUsingGradient()) {
applyTransparency(graphics);
graphics.setBackgroundColor(ColorRegistry.getInstance().getColor(getGradientColor2()));
@@ -235,11 +236,11 @@ public class PackageFigure extends NodeNamedElementFigure {
graphics.fillGradient(getPackageableElementFigure().getBounds(), isVertical);
} else {
graphics.setBackgroundColor(getBackgroundColor());
- graphics.setForegroundColor(getBorderColor());
+ graphics.setForegroundColor(getForegroundColor());
graphics.fillRectangle(getHeader());
graphics.fillRectangle(getPackageableElementFigure().getBounds());
}
- graphics.setForegroundColor(getBorderColor());
+ graphics.setForegroundColor(getForegroundColor());
graphics.setLineWidth(getLineWidth());
graphics.drawRectangle(getHeader());
}

Back to the top