summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-08-21 09:18:36 (EDT)
committerStephan Born2012-08-21 09:18:36 (EDT)
commit0136d25eb1d9b120c4052ac3958d0d6ae17b6795 (patch)
tree8401c135f95b5c9fc917785a6e659b58d6a688d8
parent3b063dd309e6a77f043d9fa0d7b61231bd393b11 (diff)
downloadorg.eclipse.stardust.ui.web-0136d25eb1d9b120c4052ac3958d0d6ae17b6795.zip
org.eclipse.stardust.ui.web-0136d25eb1d9b120c4052ac3958d0d6ae17b6795.tar.gz
org.eclipse.stardust.ui.web-0136d25eb1d9b120c4052ac3958d0d6ae17b6795.tar.bz2
CRNT-25789
1)Added code to clearCurrentSelection from this.diagram on dragStart() in m_symbol.js before select() for symbol selected. 2)Seperated the code to deselect currentSelection from clearCurrentSelection() to deselectCurrentSelection() in m_diagram.js git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@58583 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js160
-rw-r--r--web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js217
2 files changed, 193 insertions, 184 deletions
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
index 672e3d6..62d77ac 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_diagram.js
@@ -3,7 +3,7 @@
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors: SunGard CSA LLC - initial API and implementation and/or initial
* documentation
******************************************************************************/
@@ -46,7 +46,7 @@ define(
var symbolEditMode = false;
/**
- *
+ *
*/
function panCurrentDiagramNorth() {
if (currentDiagram != null) {
@@ -55,7 +55,7 @@ define(
}
/**
- *
+ *
*/
function panCurrentDiagramEast() {
if (currentDiagram != null) {
@@ -64,7 +64,7 @@ define(
}
/**
- *
+ *
*/
function panCurrentDiagramSouth() {
if (currentDiagram != null) {
@@ -73,7 +73,7 @@ define(
}
/**
- *
+ *
*/
function panCurrentDiagramWest() {
if (currentDiagram != null) {
@@ -82,7 +82,7 @@ define(
}
/**
- *
+ *
*/
function Diagram(newDivId) {
currentDiagram = this;
@@ -413,14 +413,14 @@ define(
this.poolSymbol = null;
/**
- *
+ *
*/
Diagram.prototype.toString = function() {
return "Lightdust.Diagram";
};
/**
- *
+ *
*/
Diagram.prototype.initialize = function() {
// Load all models to populate Properties Panels
@@ -454,7 +454,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.getEndpointUrl = function() {
return m_urlUtils.getContextName()
@@ -462,7 +462,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.createTransferObject = function() {
var transferObject = {};
@@ -478,10 +478,10 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.findSymbolByGuid = function(guid) {
-
+
if (null != guid) {
for ( var i = 0; i < this.symbols.length; i++) {
if (this.symbols[i].oid == guid) {
@@ -489,12 +489,12 @@ define(
}
}
}
-
+
return null;
};
/**
- *
+ *
*/
Diagram.prototype.findSymbolByModelElementGuid = function(guid) {
@@ -511,7 +511,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.findConnection = function(conn) {
@@ -563,9 +563,9 @@ define(
}
}
}
-
+
// Apply changes
-
+
for ( var i = 0; i < obj.changes.modified.length; i++) {
var symbol = this
.findSymbolByGuid(obj.changes.modified[i].oid);
@@ -596,7 +596,7 @@ define(
// modelElement change
}
}
-
+
// Delete removed elements
for ( var i = 0; i < obj.changes.removed.length; i++) {
var symbol = this
@@ -618,7 +618,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.findActivitySymbolById = function(id) {
for ( var n in this.activitySymbols) {
@@ -633,7 +633,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.findGatewaySymbolById = function(id) {
for ( var n in this.gatewaySymbols) {
@@ -648,7 +648,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.findEventSymbolById = function(id) {
for ( var n in this.eventSymbols) {
@@ -663,7 +663,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.findDataSymbolById = function(id) {
for ( var n in this.dataSymbols) {
@@ -678,7 +678,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.submitUpdate = function() {
// TODO Incomplete
@@ -690,13 +690,13 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.onUpdate = function() {
};
/**
- *
+ *
*/
Diagram.prototype.addActivitySymbol = function() {
this.newSymbol = m_activitySymbol.createActivitySymbol(
@@ -704,14 +704,14 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.isInConnectionMode = function() {
return this.mode == this.CONNECTION_MODE;
};
/**
- *
+ *
*/
Diagram.prototype.setSelectMode = function() {
this.clearCurrentSelection();
@@ -729,7 +729,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.setSeparatorMode = function() {
this.clearCurrentSelection();
@@ -747,7 +747,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.isInNormalMode = function() {
return this.mode == this.NORMAL_MODE;
@@ -779,7 +779,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.onGlobalMouseMove = function(x, y) {
if (this.newSymbol != null) {
@@ -868,7 +868,7 @@ define(
this.separatorList[n].moveBy(dX
* Math.abs(this.separatorDX), dY
* Math.abs(this.separatorDY));
- this.separatorList[n].parentSymbol.adjustToSymbolBoundaries();
+ this.separatorList[n].parentSymbol.adjustToSymbolBoundaries();
}
}
@@ -933,7 +933,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.onGlobalMouseUp = function(x, y) {
if (this.mode == this.RUBBERBAND_MODE) {
@@ -961,7 +961,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.getSymbolContainingCoordinates = function(x,
y) {
@@ -975,7 +975,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.moveLeftOfBy = function(x, dX) {
for ( var n in this.symbols) {
@@ -986,7 +986,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.moveRightOfBy = function(x, dX) {
for ( var n in this.symbols) {
@@ -997,7 +997,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.moveAboveBy = function(y, dY) {
for ( var n in this.symbols) {
@@ -1008,7 +1008,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.moveBelowBy = function(y, dY) {
for ( var n in this.symbols) {
@@ -1019,7 +1019,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.getSymbolContainingCoordinatesExcludeContainerSymbols = function(
x, y) {
@@ -1034,7 +1034,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.checkSnapLines = function(symbol) {
this.verticalSnapLine.hide();
@@ -1083,7 +1083,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.hideSnapLines = function(symbol) {
this.verticalSnapLine.hide();
@@ -1094,7 +1094,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.adjustVerticalSnapLine = function(newPosition) {
this.verticalSnapLinePosition = newPosition;
@@ -1105,7 +1105,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.adjustHorizontalSnapLine = function(
newPosition) {
@@ -1117,7 +1117,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.snapSymbol = function(symbol) {
if (this.isVerticalSnap) {
@@ -1139,7 +1139,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.onClick = function(x, y) {
if (this.newSymbol != null) {
@@ -1161,7 +1161,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.placeNewSymbol = function(x, y) {
this.newSymbol.complete();
@@ -1179,7 +1179,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.flipFlowOrientation = function(anchorPoint) {
if (this.flowOrientation == m_constants.DIAGRAM_FLOW_ORIENTATION_VERTICAL) {
@@ -1201,14 +1201,14 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.print = function(anchorPoint) {
jQuery("#scrollpane").print();
};
/**
- *
+ *
*/
Diagram.prototype.connectSymbol = function(symbol) {
this.mode = this.CONNECTION_MODE;
@@ -1230,7 +1230,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.connectToActivity = function(symbol) {
this.addAndConnectSymbol(symbol, m_activitySymbol
@@ -1238,7 +1238,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.connectToGateway = function(symbol) {
this.addAndConnectSymbol(symbol, m_gatewaySymbol
@@ -1246,7 +1246,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.connectToStopEvent = function(symbol) {
this.addAndConnectSymbol(symbol, m_eventSymbol
@@ -1254,7 +1254,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.addAndConnectSymbol = function(startSymbol,
targetSymbol) {
@@ -1283,7 +1283,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.setAnchorPoint = function(anchorPoint) {
if (this.currentConnection == null) {
@@ -1310,27 +1310,33 @@ define(
return m_connection.createConnection(this, anchorPoint);
};
/**
- *
+ *
*/
Diagram.prototype.addToCurrentSelection = function(drawable) {
this.currentSelection.push(drawable);
};
/**
- *
+ *
*/
- Diagram.prototype.clearCurrentSelection = function() {
+ Diagram.prototype.deselectCurrentSelection = function() {
for ( var item in this.currentSelection) {
this.currentSelection[item].deselect();
}
+ };
+ /**
+ *
+ */
+ Diagram.prototype.clearCurrentSelection = function() {
+ this.deselectCurrentSelection();
this.currentSelection = [];
-
+
this.showProcessPropertiesPanel();
};
/**
- *
+ *
*/
Diagram.prototype.showProcessPropertiesPanel = function() {
m_processPropertiesPanel.getInstance().setElement(
@@ -1338,11 +1344,11 @@ define(
m_propertiesPanel
.initializeProcessPropertiesPanel(m_processPropertiesPanel
- .getInstance());
+ .getInstance());
}
-
+
/**
- *
+ *
*/
Diagram.prototype.moveSelectedSymbolsBy = function(dX, dY) {
for ( var n in this.currentSelection) {
@@ -1351,7 +1357,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.showEditable = function(textPrimitive) {
this.currentTextPrimitive = textPrimitive;
@@ -1377,7 +1383,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.submitEditable = function(content) {
if (content == '') {
@@ -1392,7 +1398,7 @@ define(
name : this.currentTextPrimitive.attr("text")
}
};
-
+
m_commandsController.submitCommand(m_command
.createUpdateModelElementCommand(this.currentTextPrimitive.auxiliaryProperties.callbackScope.diagram.modelId,
this.currentTextPrimitive.auxiliaryProperties.callbackScope.oid,
@@ -1404,7 +1410,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.cancelEditable = function() {
this.editableText.css("visibility", "hidden").hide()
@@ -1415,7 +1421,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.zoomIn = function() {
this.zoomFactor = Math.max(this.zoomFactor
@@ -1431,7 +1437,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.zoomOut = function() {
this.zoomFactor = this.zoomFactor
@@ -1447,7 +1453,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.loadProcess = function() {
m_communicationController.syncGetData({
@@ -1469,7 +1475,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.loadFromJson = function(json) {
m_utils.debug("===> Process/Diagram JSON");
@@ -1507,7 +1513,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.setSize = function(width, height) {
this.width = width;
@@ -1520,7 +1526,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.checkPan = function(x, y) {
if (this.panningSensorNorth.x <= x
@@ -1601,7 +1607,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.panNorth = function() {
if (this.scrollPane.scrollTop() > 0) {
@@ -1613,7 +1619,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.panEast = function() {
if (this.scrollPane.scrollLeft() < this.width) {
@@ -1625,7 +1631,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.panSouth = function() {
if (this.scrollPane.scrollTop() < this.height) {
@@ -1637,7 +1643,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.panWest = function() {
if (this.scrollPane.scrollLeft() > 0) {
@@ -1694,7 +1700,7 @@ define(
// === End move to m_toolbar.js ===
/**
- *
+ *
*/
Diagram.prototype.applyDecoration = function(decoration) {
for ( var decorationElement in decoration.elements) {
@@ -1744,7 +1750,7 @@ define(
};
/**
- *
+ *
*/
Diagram.prototype.findLane = function(id) {
return this.poolSymbol.findLane(id);
diff --git a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
index 63db1cd..94b9f96 100644
--- a/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
+++ b/web-modeler/src/main/resources/META-INF/xhtml/js/m_symbol.js
@@ -3,7 +3,7 @@
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors: SunGard CSA LLC - initial API and implementation and/or initial
* documentation
******************************************************************************/
@@ -26,7 +26,7 @@ define(
};
/**
- *
+ *
*/
function Symbol() {
var drawable = m_drawable.createDrawable();
@@ -50,14 +50,14 @@ define(
// Method initialization
/**
- *
+ *
*/
Symbol.prototype.toString = function() {
return "Lightdust.Symbol";
};
/**
- *
+ *
*/
Symbol.prototype.getProperties = function() {
this.properties.dimensions = {
@@ -71,7 +71,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.initialize = function(x, y) {
this.prepare(x, y);
@@ -100,21 +100,21 @@ define(
}
/**
- *
+ *
*/
Symbol.prototype.getXCenter = function() {
return this.x + 0.5 * this.width;
};
/**
- *
+ *
*/
Symbol.prototype.getYCenter = function() {
return this.y + 0.5 * this.height;
};
/**
- *
+ *
*/
Symbol.prototype.prepare = function(x, y) {
this.x = x;
@@ -124,7 +124,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.prepareNoPosition = function() {
this.createPrimitives();
@@ -145,21 +145,21 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.isContainerSymbol = function() {
return false;
};
/**
- *
+ *
*/
Symbol.prototype.requiresParentSymbol = function() {
return true;
};
/**
- *
+ *
*/
Symbol.prototype.completeNoTransfer = function() {
m_messageDisplay.clear();
@@ -218,7 +218,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.complete = function() {
this.completeNoTransfer(this);
@@ -250,7 +250,7 @@ define(
return commandType;
}
/**
- *
+ *
* Registers symbol in specific lists in the diagram.
*/
Symbol.prototype.register = function() {
@@ -258,21 +258,21 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.createPrimitives = function() {
// Nothing to be done
};
/**
- *
+ *
*/
Symbol.prototype.createChildSymbols = function() {
// Nothing to be done
};
/**
- *
+ *
*/
Symbol.prototype.createAnchorPoints = function() {
this.anchorPoints[0] = new AnchorPoint(this, 0);
@@ -282,7 +282,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.showAnchorPoints = function() {
for ( var n in this.anchorPoints) {
@@ -291,7 +291,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.hideAnchorPoints = function() {
for ( var n in this.anchorPoints) {
@@ -300,7 +300,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.getClosestAnchorPoint = function(x, y) {
var scrollPos = m_modelerUtils.getModelerScrollPosition();
@@ -324,7 +324,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.showPrimitives = function() {
for ( var n in this.primitives) {
@@ -334,7 +334,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.hidePrimitives = function() {
for ( var n in this.primitives) {
@@ -343,7 +343,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.hide = function() {
this.visible = false;
@@ -356,7 +356,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.show = function() {
this.visible = true;
@@ -367,7 +367,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.hideConnections = function() {
var n = 0;
@@ -429,7 +429,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.cacheAnchorPointAndAdjust = function(
currentAnchorPt, targetAnchorPt) {
@@ -458,7 +458,7 @@ define(
}
/**
- *
+ *
*/
Symbol.prototype.showConnections = function() {
var n = 0;
@@ -478,7 +478,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.primitivesToFront = function() {
for ( var n in this.primitives) {
@@ -487,7 +487,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.adjustAnchorPoints = function() {
this.anchorPoints[0].adjust();
@@ -507,7 +507,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.adjustAuxiliaryElements = function() {
if (this.visible) {
@@ -521,13 +521,13 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.adjustChildSymbols = function() {
};
/**
- *
+ *
*/
Symbol.prototype.adjustSelectFrame = function() {
this.leftSelectFrame.attr("path", this
@@ -541,7 +541,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.isInBoundingBox = function(xClick, yClick) {
return this.x <= xClick && this.x + this.width >= xClick
@@ -550,7 +550,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.isInRectangle = function(x, y, width, height) {
return x <= this.x && x + width >= this.x + this.width
@@ -559,7 +559,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.createProximitySensorPrimitive = function() {
return m_canvasManager.drawRectangle(this.x
@@ -577,7 +577,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.createSelectFrame = function() {
this.leftSelectFrame = m_canvasManager.drawPath(this
@@ -654,7 +654,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.getLeftSelectFramePath = function() {
return "M"
@@ -668,7 +668,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.getTopSelectFramePath = function() {
return "M"
@@ -681,7 +681,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.getRightSelectFramePath = function() {
return "M"
@@ -695,7 +695,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.getBottomSelectFramePath = function() {
return "M"
@@ -709,7 +709,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.createFlyOutMenuBackground = function(x, y,
height, width) {
@@ -739,7 +739,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.showSelectFrame = function() {
this.leftSelectFrame.show();
@@ -749,7 +749,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.hideSelectFrame = function() {
this.leftSelectFrame.hide();
@@ -759,14 +759,14 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.move = function(x, y) {
this.moveBy(x - this.x, y - this.y);
};
/**
- *
+ *
*/
Symbol.prototype.moveBy = function(dX, dY) {
this.x = this.x + dX;
@@ -829,7 +829,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.refresh = function() {
this.refreshFromModelElement();
@@ -847,13 +847,13 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.adjustPrimitives = function() {
};
/**
- *
+ *
*/
Symbol.prototype.dragStart = function() {
// TODO hide for all selected
@@ -861,6 +861,9 @@ define(
this.hideProximitySensor();
if (!this.selected) {
+ // deselect other symbols before drag
+ this.diagram.deselectCurrentSelection();
+ this.diagram.currentSelection = [];
this.select();
}
@@ -871,7 +874,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.dragStop = function() {
this.showProximitySensor();
@@ -965,7 +968,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.proximityHoverIn = function() {
if (this.diagram.mode == this.diagram.NORMAL_MODE) {
@@ -980,7 +983,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.proximityHoverOut = function() {
if (this.diagram.mode == this.diagram.NORMAL_MODE) {
@@ -992,7 +995,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.addToPrimitives = function(element) {
this.primitives.push(element);
@@ -1018,7 +1021,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.initializeDefaultEventHandling = function(
element) {
@@ -1044,7 +1047,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.mouseMove = function(x, y) {
if (this.diagram.isInConnectionMode()) {
@@ -1071,7 +1074,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.hoverIn = function(x, y) {
if (this.diagram.isInConnectionMode()) {
@@ -1098,7 +1101,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.hoverOut = function() {
if (this.diagram.isInConnectionMode()) {
@@ -1116,7 +1119,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.click = function(x, y) {
// When symbol is Draged, the edit symbol operation should
@@ -1154,7 +1157,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.select = function() {
if (!this.isCompleted()) {
@@ -1171,7 +1174,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.showPropertiesPanel = function() {
if (this.propertiesPanel != null) {
@@ -1182,7 +1185,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.deselect = function() {
if (!this.isCompleted()) {
@@ -1199,19 +1202,19 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.highlight = function() {
};
/**
- *
+ *
*/
Symbol.prototype.dehighlight = function() {
};
/**
- *
+ *
*/
Symbol.prototype.deselectAnchorPoints = function() {
for ( var n in this.anchorPoints) {
@@ -1220,7 +1223,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.remove = function() {
this.removeConnections();
@@ -1235,7 +1238,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.createAndSubmitDeleteCommand = function() {
var command = m_command.createRemoveNodeCommand(this
@@ -1258,7 +1261,7 @@ define(
}
}
/**
- *
+ *
*/
Symbol.prototype.removePrimitives = function() {
var n = 0;
@@ -1270,7 +1273,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.removeConnections = function() {
var n = 0;
@@ -1282,7 +1285,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.removeAnchorPoints = function() {
for ( var n in this.anchorPoints) {
@@ -1291,7 +1294,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.stretchStop = function() {
var newGeometry = {
@@ -1308,7 +1311,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.stretchLeft = function(dX, dY, x, y) {
this.width = x - this.diagram.X_OFFSET - this.x;
@@ -1318,7 +1321,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.stretchTop = function(dX, dY, x, y) {
this.height = y - this.diagram.Y_OFFSET - this.y;
@@ -1328,7 +1331,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.stretchRight = function(dX, dY, x, y) {
this.width = x - this.diagram.X_OFFSET - this.x;
@@ -1337,7 +1340,7 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.stretchBottom = function(dX, dY, x, y) {
this.height = y - this.diagram.Y_OFFSET - this.y;
@@ -1346,21 +1349,21 @@ define(
};
/**
- *
+ *
*/
Symbol.prototype.validateCreateConnection = function() {
return true;
};
/*
- *
+ *
*/
Symbol.prototype.onParentSymbolChange = function() {
// Do nothing
};
/*
- *
+ *
*/
Symbol.prototype.flipFlowOrientation = function(flowOrientation) {
var x = this.x;
@@ -1370,14 +1373,14 @@ define(
};
/*
- *
+ *
*/
Symbol.prototype.getDashboardX = function() {
return this.x + 30;
};
/*
- *
+ *
*/
Symbol.prototype.getDashboardY = function() {
return this.y + 30;
@@ -1387,49 +1390,49 @@ define(
// Callback methods for closure trick
/**
- *
+ *
*/
function Symbol_hoverInClosure(event, x, y) {
this.auxiliaryProperties.callbackScope.hoverIn(x, y);
}
/**
- *
+ *
*/
function Symbol_hoverOutClosure() {
this.auxiliaryProperties.callbackScope.hoverOut();
}
/**
- *
+ *
*/
function Symbol_clickClosure(event, x, y) {
this.auxiliaryProperties.callbackScope.click(x, y);
}
/**
- *
+ *
*/
function Symbol_hoverInFlyOutMenuClosure() {
this.auxiliaryProperties.callbackScope.showFlyOutMenu();
}
/**
- *
+ *
*/
function Symbol_hoverOutFlyOutMenuClosure() {
this.auxiliaryProperties.callbackScope.hideFlyOutMenu();
}
/**
- *
+ *
*/
function Symbol_mouseMoveClosure(event, x, y) {
this.auxiliaryProperties.callbackScope.mouseMove(x, y);
}
/**
- *
+ *
*/
function Symbol_dragClosure(dX, dY, x, y, event) {
this.auxiliaryProperties.callbackScope.diagram
@@ -1451,21 +1454,21 @@ define(
}
/**
- *
+ *
*/
function Symbol_dragStartClosure() {
this.auxiliaryProperties.callbackScope.dragStart();
}
/**
- *
+ *
*/
function Symbol_dragStopClosure() {
this.auxiliaryProperties.callbackScope.dragStop();
}
/**
- *
+ *
*/
function Symbol_stretchLeftClosure(dX, dY, x, y) {
this.auxiliaryProperties.callbackScope
@@ -1481,7 +1484,7 @@ define(
}
/**
- *
+ *
*/
function Symbol_stretchTopClosure(dX, dY, x, y) {
this.auxiliaryProperties.callbackScope
@@ -1497,7 +1500,7 @@ define(
}
/**
- *
+ *
*/
function Symbol_stretchRightClosure(dX, dY, x, y) {
this.auxiliaryProperties.callbackScope
@@ -1513,7 +1516,7 @@ define(
}
/**
- *
+ *
*/
function Symbol_stretchBottomClosure(dX, dY, x, y) {
this.auxiliaryProperties.callbackScope
@@ -1529,7 +1532,7 @@ define(
}
/**
- *
+ *
*/
function Symbol_stretchStartClosure() {
if (this.auxiliaryProperties.callbackScope.stretchStart) {
@@ -1538,7 +1541,7 @@ define(
}
/**
- *
+ *
*/
function Symbol_stretchStopClosure() {
this.auxiliaryProperties.callbackScope.stretchStop();
@@ -1547,7 +1550,7 @@ define(
}
/**
- *
+ *
*/
// TOD= Is this needed
function Symbol_createClosure(callbackScope, data) {
@@ -1595,14 +1598,14 @@ define(
AnchorPoint_dragStopClosure);
/**
- *
+ *
*/
AnchorPoint.prototype.toString = function() {
return "Lightdust.AnchorPoint";
};
/**
- *
+ *
*/
AnchorPoint.prototype.moveTo = function(x, y) {
this.x = x;
@@ -1615,7 +1618,7 @@ define(
}
/**
- *
+ *
*/
AnchorPoint.prototype.adjust = function() {
if (this.orientation == m_constants.NORTH) {
@@ -1634,7 +1637,7 @@ define(
};
/**
- *
+ *
*/
AnchorPoint.prototype.show = function() {
this.graphics.show();
@@ -1642,14 +1645,14 @@ define(
};
/**
- *
+ *
*/
AnchorPoint.prototype.hide = function() {
this.graphics.hide();
};
/**
- *
+ *
*/
AnchorPoint.prototype.select = function() {
this.graphics
@@ -1669,7 +1672,7 @@ define(
};
/**
- *
+ *
*/
AnchorPoint.prototype.deselect = function() {
this.graphics.animate({
@@ -1685,21 +1688,21 @@ define(
};
/**
- *
+ *
*/
AnchorPoint.prototype.hoverIn = function() {
this.select();
};
/**
- *
+ *
*/
AnchorPoint.prototype.hoverOut = function() {
this.deselect();
};
/**
- *
+ *
*/
AnchorPoint.prototype.drag = function(dX, dY, x, y) {
if (this.dragConnection == null) {
@@ -1762,7 +1765,7 @@ define(
}
/**
- *
+ *
*/
AnchorPoint.prototype.dragStart = function() {
this.dragConnection = this.symbol.connections[0];
@@ -1796,7 +1799,7 @@ define(
}
/**
- *
+ *
*/
AnchorPoint.prototype.dragStop = function() {
if (this.dragConnection == null) {
@@ -1856,7 +1859,7 @@ define(
}
/**
- *
+ *
*/
AnchorPoint.prototype.remove = function() {
this.graphics.remove();