Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratischenko2014-09-17 11:09:59 +0000
committeratischenko2014-11-13 10:54:12 +0000
commit2921506e21105cbf1ac389525fd0bdfed7839bdc (patch)
treeade4cc1b7deae9649f4f22871784a035c12c84d1 /plugins/uml
parentc4d6f43d46759c6559f7761bc4f925888f33903f (diff)
downloadorg.eclipse.papyrus-2921506e21105cbf1ac389525fd0bdfed7839bdc.tar.gz
org.eclipse.papyrus-2921506e21105cbf1ac389525fd0bdfed7839bdc.tar.xz
org.eclipse.papyrus-2921506e21105cbf1ac389525fd0bdfed7839bdc.zip
Bug 443909 - Error in display of Package line color and width.
cherry-picked from master: I48200eeb15bfcaf1a3a8b7bcf169d2557dcbe593 Change-Id: Ie06f3cad77bb8f632d040bf43ecc7c8afb86ce5c Signed-off-by: atischenko <ticher777@gmail.com>
Diffstat (limited to 'plugins/uml')
-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