Adding start and end arrows to relationship lines

This commit is contained in:
Pablo Luna
2011-01-16 11:48:53 -03:00
parent 4777ccf6fb
commit 8ddb66eebb
15 changed files with 107 additions and 45 deletions

View File

@@ -99,6 +99,8 @@ public class FreemindExporter
arrowlink.setDESTINATION(dstNode.getID());
if(relationship.isEndArrow())
arrowlink.setENDARROW("Default");
if(relationship.isStartArrow())
arrowlink.setSTARTARROW("Default");
List<Object> cloudOrEdge = srcNode.getArrowlinkOrCloudOrEdge();
cloudOrEdge.add(arrowlink);
}

View File

@@ -323,7 +323,8 @@ public class FreemindImporter
inclination = arrow.getSTARTINCLINATION().split(";");
relationship.setSrcCtrlPoint(inclination[0]+","+inclination[1]);
//relationship.setCtrlPointRelative(true);
relationship.setEndArrow(!arrow.getENDARROW().equals("None"));
relationship.setEndArrow(!arrow.getENDARROW().toLowerCase().equals("none"));
relationship.setStartArrow(!arrow.getSTARTARROW().toLowerCase().equals("none"));
relationship.setLineType("3");
relationships.add(relationship);
}

View File

@@ -59,7 +59,7 @@
<xsd:attribute name="srcCtrlPoint" type="xsd:string"/>
<xsd:attribute name="destCtrlPoint" type="xsd:string"/>
<xsd:attribute name="endArrow" type="xsd:boolean"/>
<xsd:attribute name="ctrlPointRelative" type="xsd:boolean"/>
<xsd:attribute name="startArrow" type="xsd:boolean"/>
</xsd:complexType>
</xsd:schema>

View File

@@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.01.11 at 06:58:42 PM ART
// Generated on: 2011.01.16 at 11:06:29 AM ART
//

View File

@@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.01.11 at 06:58:42 PM ART
// Generated on: 2011.01.16 at 11:06:29 AM ART
//

View File

@@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.01.11 at 06:58:42 PM ART
// Generated on: 2011.01.16 at 11:06:29 AM ART
//

View File

@@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.01.11 at 06:58:42 PM ART
// Generated on: 2011.01.16 at 11:06:29 AM ART
//

View File

@@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.01.11 at 06:58:42 PM ART
// Generated on: 2011.01.16 at 11:06:29 AM ART
//
@@ -50,19 +50,11 @@ public class ObjectFactory {
}
/**
* Create an instance of {@link Map }
* Create an instance of {@link Icon }
*
*/
public Map createMap() {
return new Map();
}
/**
* Create an instance of {@link Link }
*
*/
public Link createLink() {
return new Link();
public Icon createIcon() {
return new Icon();
}
/**
@@ -73,6 +65,14 @@ public class ObjectFactory {
return new TopicType();
}
/**
* Create an instance of {@link Map }
*
*/
public Map createMap() {
return new Map();
}
/**
* Create an instance of {@link RelationshipType }
*
@@ -82,11 +82,11 @@ public class ObjectFactory {
}
/**
* Create an instance of {@link Icon }
* Create an instance of {@link Link }
*
*/
public Icon createIcon() {
return new Icon();
public Link createLink() {
return new Link();
}
/**

View File

@@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.01.11 at 06:58:42 PM ART
// Generated on: 2011.01.16 at 11:06:29 AM ART
//
@@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlType;
* &lt;attribute name="srcCtrlPoint" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="destCtrlPoint" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="endArrow" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* &lt;attribute name="ctrlPointRelative" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* &lt;attribute name="startArrow" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
@@ -57,7 +57,7 @@ public class RelationshipType {
@XmlAttribute
protected Boolean endArrow;
@XmlAttribute
protected Boolean ctrlPointRelative;
protected Boolean startArrow;
/**
* Gets the value of the id property.
@@ -228,27 +228,27 @@ public class RelationshipType {
}
/**
* Gets the value of the ctrlPointRelative property.
* Gets the value of the startArrow property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCtrlPointRelative() {
return ctrlPointRelative;
public Boolean isStartArrow() {
return startArrow;
}
/**
* Sets the value of the ctrlPointRelative property.
* Sets the value of the startArrow property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setCtrlPointRelative(Boolean value) {
this.ctrlPointRelative = value;
public void setStartArrow(Boolean value) {
this.startArrow = value;
}
}

View File

@@ -2,7 +2,7 @@
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011.01.11 at 06:58:42 PM ART
// Generated on: 2011.01.16 at 11:06:29 AM ART
//