Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2018-08-06 12:37:12 +0000
committerCamille Letavernier2018-09-24 10:48:36 +0000
commit6a941cd64ac4643b9479998534f79abafa9e3d59 (patch)
tree22b20e17d1cf2aeca3de1537e9a212cbf9ac167e /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse
parent4a0c282d7021a4314b441570af56a3c57c480fe2 (diff)
downloadorg.eclipse.papyrus-6a941cd64ac4643b9479998534f79abafa9e3d59.tar.gz
org.eclipse.papyrus-6a941cd64ac4643b9479998534f79abafa9e3d59.tar.xz
org.eclipse.papyrus-6a941cd64ac4643b9479998534f79abafa9e3d59.zip
Bug 536631: Styling improvements on the DurationLink
Change-Id: I1d697b889f9be7899e6a0b237b1f8125e5981a1e Signed-off-by: Camille Letavernier <cletavernier@eclipsesource.com>
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse')
-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