From d7384d7c0fc69b700eb6d8bfa206ee458d01a358 Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Sat, 27 Nov 2010 14:07:46 +0000 Subject: [PATCH] Make the generation of diamond shapes compatible with GraphViz 2.27. (Contributed by Soraya Santana de la Fe.) --- doc/ver.xml | 4 ++++ src/org/umlgraph/doclet/ClassGraph.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/ver.xml b/doc/ver.xml index ecf8e35..d432e4a 100644 --- a/doc/ver.xml +++ b/doc/ver.xml @@ -4,6 +4,10 @@
Version 5.4 Under development
+
    +
  • Make the generation of diamond shapes compatible with GraphViz 2.27. +(Contributed by Soraya Santana de la Fe.)
  • +
Version 5.3 2010-05-24
diff --git a/src/org/umlgraph/doclet/ClassGraph.java b/src/org/umlgraph/doclet/ClassGraph.java index 4fb6648..6589141 100644 --- a/src/org/umlgraph/doclet/ClassGraph.java +++ b/src/org/umlgraph/doclet/ClassGraph.java @@ -73,8 +73,8 @@ class ClassGraph { static { associationMap.put(RelationType.ASSOC, "arrowhead=none"); associationMap.put(RelationType.NAVASSOC, "arrowhead=open"); - associationMap.put(RelationType.HAS, "arrowhead=none, arrowtail=ediamond"); - associationMap.put(RelationType.COMPOSED, "arrowhead=none, arrowtail=diamond"); + associationMap.put(RelationType.HAS, "arrowhead=none, arrowtail=ediamond, dir=both"); + associationMap.put(RelationType.COMPOSED, "arrowhead=none, arrowtail=diamond, dir=both"); associationMap.put(RelationType.DEPEND, "arrowhead=open, style=dashed"); } protected Map classnames = new HashMap();