Author: dthompson
Date: 2008-11-27 15:11:36-0800
New Revision: 16195
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PathItemPlacement.java
Log:
Issue 5517: Changed the PathItemPlacement paint colour to a translucent blue.
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PathItemPlacement.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PathItemPlacement.java?view=diff&rev=16195&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PathItemPlacement.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PathItemPlacement.java&r1=16194&r2=16195
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PathItemPlacement.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/PathItemPlacement.java 2008-11-27 15:11:36-0800
@@ -35,6 +35,7 @@
import java.awt.geom.Line2D;
import org.apache.log4j.Logger;
+import org.tigris.gef.base.Globals;
import org.tigris.gef.base.PathConv;
import org.tigris.gef.presentation.Fig;
import org.tigris.gef.presentation.FigEdge;
@@ -593,7 +594,10 @@
final Point p1 = getAnchorPosition();
Point p2 = getPoint();
Rectangle r = itemFig.getBounds();
- g.setColor(new Color(255,128,128,100));
+ // Load the standard colour, just add an alpha channel.
+ Color c = Globals.getPrefs().handleColorFor(itemFig);
+ c = new Color(c.getRed(), c.getGreen(), c.getBlue(), 30);
+ g.setColor(c);
r.grow(2, 2);
g.fillRoundRect(r.x, r.y, r.width, r.height, 8, 8);
if (r.contains(p2)) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.