Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-05-18 07:49:36 +0000
committerHenrik Rentz-Reichert2012-05-18 07:49:36 +0000
commit08ab5b100ebdc97ddd9a9bc868007f8d03e4f336 (patch)
tree29671f3feab07c582a416224095b603f7ae66579 /plugins/org.eclipse.etrice.ui.behavior/src
parent8f6fe13cc9f791ef6ce216e6758fcbd13f7a13d4 (diff)
downloadorg.eclipse.etrice-08ab5b100ebdc97ddd9a9bc868007f8d03e4f336.tar.gz
org.eclipse.etrice-08ab5b100ebdc97ddd9a9bc868007f8d03e4f336.tar.xz
org.eclipse.etrice-08ab5b100ebdc97ddd9a9bc868007f8d03e4f336.zip
[ui.behavior] lighter background for inherited states
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.behavior/src')
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateSupport.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateSupport.java b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateSupport.java
index b8e98914c..f1977cfa2 100644
--- a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateSupport.java
+++ b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateSupport.java
@@ -110,6 +110,7 @@ public class StateSupport {
public static final IColorConstant LINE_COLOR = new ColorConstant(0, 0, 0);
public static final IColorConstant INHERITED_COLOR = new ColorConstant(100, 100, 100);
private static final IColorConstant BACKGROUND = new ColorConstant(200, 200, 200);
+ private static final IColorConstant INHERITED_BACKGROUND = new ColorConstant(230, 230, 230);
private static class FeatureProvider extends DefaultFeatureProvider {
@@ -234,13 +235,14 @@ public class StateSupport {
boolean inherited = SupportUtil.isInherited(getDiagram(), s);
Color lineColor = manageColor(inherited?INHERITED_COLOR:LINE_COLOR);
+ Color bgColor = manageColor(inherited?INHERITED_BACKGROUND:BACKGROUND);
IGaService gaService = Graphiti.getGaService();
{
final Rectangle invisibleRectangle = gaService.createInvisibleRectangle(containerShape);
gaService.setLocationAndSize(invisibleRectangle,
x-(width/2+MARGIN), y-(height/2+MARGIN), width + 2*MARGIN, height + 2*MARGIN);
- RoundedRectangle rect = createFigure(s, invisibleRectangle, lineColor, manageColor(BACKGROUND));
+ RoundedRectangle rect = createFigure(s, invisibleRectangle, lineColor, bgColor);
// anchor for direct transitions to this state
ChopboxAnchor anchor = peCreateService.createChopboxAnchor(containerShape);
@@ -404,7 +406,8 @@ public class StateSupport {
boolean inherited = SupportUtil.isInherited(getDiagram(), s);
Color lineColor = manageColor(inherited?INHERITED_COLOR:LINE_COLOR);
- createFigure(s, invisibleRect, lineColor, manageColor(BACKGROUND));
+ Color bgColor = manageColor(inherited?INHERITED_BACKGROUND:BACKGROUND);
+ createFigure(s, invisibleRect, lineColor, bgColor);
GraphicsAlgorithm ga = container.getChildren().get(0).getGraphicsAlgorithm();
if (ga instanceof Text) {

Back to the top