This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import javax.swing.JFileChooser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mxUtils.getXml: function(node, linefeed) | |
{ | |
var xml = ''; | |
if (window.XMLSerializer != null) | |
{ | |
var xmlSerializer = new XMLSerializer(); | |
xml = xmlSerializer.serializeToString(node); | |
} | |
else if (node.xml != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sets the XML node for the current diagram. | |
*/ | |
Editor.prototype.setGraphXml = function(node) | |
{ | |
var dec = new mxCodec(node.ownerDocument); | |
if (node.nodeName == 'mxGraphModel') | |
{ | |
this.graph.view.scale = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mxHierarchicalLayout.prototype.run = function(parent) | |
{ | |
// Separate out unconnected hierarchies | |
var hierarchyVertices = []; | |
var allVertexSet = []; | |
if (this.roots == null && parent != null) | |
{ | |
var filledVertexSet = Object(); | |
this.filterDescendants(parent, filledVertexSet); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mxHierarchicalLayout.prototype.run = function(parent) | |
{ | |
// Separate out unconnected hierarchies | |
var hierarchyVertices = []; | |
var allVertexSet = []; | |
if (this.roots == null && parent != null) | |
{ | |
var filledVertexSet = Object(); | |
this.filterDescendants(parent, filledVertexSet); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var s = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;' + mxConstants.STYLE_STROKEWIDTH + '=2;'; | |
content.appendChild(this.createVertexTemplate(s + mxConstants.STYLE_SHAPE + '=mxgraph.er.attribute;buttonText=Attribute;textColor=#000000;fontSize=17;buttonStyle=dblFrame;' + mxConstants.STYLE_FILLCOLOR + '=#ffffff;', w, h, '', 'Attribute', false)); | |
content.appendChild(this.createVertexTemplate(s + mxConstants.STYLE_SHAPE + '=mxgraph.er.bachmans;textColor=#000000;' + mxConstants.STYLE_FONTSIZE + '=17;', w * 3, h * 2, '', 'ERD Bachman\'s Notation', false)); | |
content.appendChild(this.createVertexTemplate(s + mxConstants.STYLE_SHAPE + '=mxgraph.er.chens;textColor=#000000;' + mxConstants.STYLE_FONTSIZE + '=17;', w * 3, h, '', 'ERD Chen\'s Notation', false)); | |
content.appendChild(this.createVertexTemplate(s + mxConstants.STYLE_SHAPE + '=mxgraph.er.cloud;buttonText=Cloud;textColor=#000000;' + mxConstants.STYLE_FONTSIZE + '=17;', w, h, '', 'Cloud', false)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $Id: DriveRealTime.js,v 1.33 2013/05/07 08:55:47 gaudenz Exp $ | |
* Copyright (c) 2011-2013, JGraph Ltd | |
*/ | |
/** | |
* Creates an object that synchronizes the graph model and given realtime model. | |
* The session ID is used as a prefix in the model to produce unique IDs for new | |
* cells. | |
* | |
* See https://developers.google.com/drive/realtime/reference/gapi.drive.realtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ListingManifest> | |
<SubListings> | |
<SubListing> | |
<DisplayName>Complete</DisplayName> | |
<EditionId>default_edition</EditionId> | |
<PaymentModel>FREE</PaymentModel> | |
<SeatCount>1000000</SeatCount> | |
</SubListing> | |
</SubListings> | |
</ListingManifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mxGraphModel dx="800" dy="800" grid="1" guides="1" tooltips="1" connect="1" fold="1" page="1" pageScale="1" pageWidth="826" pageHeight="1169" style="default-style2"> | |
<root> | |
<mxCell id="0"/> | |
<mxCell id="1" parent="0"/> | |
<mxCell id="2" value="<p style="margin: 0px; margin-top: 4px; text-align: center;"><strong>Class</strong></p><hr /><p style="margin: 0px; margin-left: 4px;">+ field:<sup>Type</sup></p><hr /><p style="margin: 0px; margin-left: 4px;">+ method(): Type</p>" style="verticalAlign=top;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica;html=1" vertex="1" parent="1"> | |
<mxGeometry x="10" y="10" width="440" height="360" as="geometry"/> | |
</mxCell> | |
</root> | |
</mxGraphModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $Id: Diagramly.js,v 1.80 2013/05/31 13:17:27 david Exp $ | |
* Copyright (c) 2006-2010, JGraph Ltd | |
*/ | |
// For compatibility with open servlet on GAE | |
function setCurrentXml(data, filename) | |
{ | |
if (window.parent != null && window.parent.openFile != null) | |
{ | |
window.parent.openFile.setData(data, filename); |
OlderNewer