Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2018-08-06 08:37:12 -0400
committerCamille Letavernier2018-08-07 03:41:05 -0400
commit813fd99e8a7a5565dd11234f83849b67ca391d78 (patch)
tree786d6f1c99e465e177c5c785aa4b60222e6dea78
parent22f13760d6d16e8d9faefb08fcb857b160b2cdc9 (diff)
downloadorg.eclipse.papyrus-813fd99e8a7a5565dd11234f83849b67ca391d78.tar.gz
org.eclipse.papyrus-813fd99e8a7a5565dd11234f83849b67ca391d78.tar.xz
org.eclipse.papyrus-813fd99e8a7a5565dd11234f83849b67ca391d78.zip
Bug 536631: Styling improvements on the DurationLink
Change-Id: I1d697b889f9be7899e6a0b237b1f8125e5981a1e Signed-off-by: Camille Letavernier <cletavernier@eclipsesource.com>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java
index dee9c1d2b43..5dc926ce906 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java
@@ -244,6 +244,11 @@ public class DurationLinkFigure extends UMLEdgeFigure {
*/
protected void paintArrow(Graphics graphics) {
PolylineConnection arrowLine = new PolylineConnection();
+ arrowLine.setForegroundColor(getForegroundColor());
+ arrowLine.setBackgroundColor(getBackgroundColor());
+ arrowLine.setLineStyle(getLineStyle());
+ arrowLine.setLineWidth(getLineWidth());
+
PointList arrowPoints = getArrowLinePoints();
Point arrowStart = arrowPoints.getFirstPoint();
Point arrowEnd = arrowPoints.getLastPoint();
@@ -276,15 +281,17 @@ public class DurationLinkFigure extends UMLEdgeFigure {
protected void decorateArrowLine(PolylineConnection arrowLine, Point arrowStart, Point arrowEnd) {
// source
PolylineDecoration source = new PolylineDecoration();
+ source.setScale(7 * getLineWidth(), 3 * getLineWidth());
+ source.setLineWidth(getLineWidth());
source.setLocation(arrowStart);
- source.setLineWidth(1);
source.setReferencePoint(arrowEnd);
arrowLine.setSourceDecoration(source);
// target
PolylineDecoration target = new PolylineDecoration();
+ target.setScale(7 * getLineWidth(), 3 * getLineWidth());
+ target.setLineWidth(getLineWidth());
target.setLocation(arrowEnd);
- target.setLineWidth(1);
target.setReferencePoint(arrowStart);
arrowLine.setTargetDecoration(target);
}

Back to the top