wisemapping-open-source/mindplot/src/main/javascript/ActionDispatcher.js

111 lines
3.2 KiB
JavaScript
Raw Normal View History

2011-07-26 20:07:53 +02:00
/*
* Copyright [2011] [wisemapping]
*
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
* It is basically the Apache License, Version 2.0 (the "License") plus the
* "powered by wisemapping" text requirement on every single page;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the license at
*
* http://www.wisemapping.org/license
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//noinspection JSUnusedLocalSymbols
mindplot.ActionDispatcher = new Class({
2011-08-05 03:12:53 +02:00
Implements:[Events],
initialize: function(commandContext) {
$assert(commandContext, "commandContext can not be null");
2011-07-26 20:07:53 +02:00
},
2011-07-30 23:55:32 +02:00
2011-10-09 22:59:16 +02:00
connectByRelation: function(model, mindmap) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
2011-09-09 07:22:44 +02:00
addTopic: function(nodeModel, parentTopicId, animated) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
deleteTopics: function(topicsIds, relIds) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
dragTopic: function(topicId, position, order, parentTopic) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
2012-01-18 05:26:39 +01:00
moveTopic: function(topicId, position) {
throw "method must be implemented.";
},
moveControlPoint: function(ctrlPoint, point) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
changeFontFamilyToTopic: function(topicIds, fontFamily) {
throw "method must be implemented.";
},
changeFontStyleToTopic: function(topicsIds) {
throw "method must be implemented.";
},
changeFontColorToTopic: function(topicsIds, color) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
changeFontSizeToTopic : function(topicsIds, size) {
throw "method must be implemented.";
},
changeBackgroundColorToTopic: function(topicsIds, color) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
},
changeBorderColorToTopic: function(topicsIds, color) {
throw "method must be implemented.";
},
2011-09-10 02:53:41 +02:00
changeShapeTypeToTopic : function(topicsIds, shapeType) {
throw "method must be implemented.";
},
changeFontWeightToTopic : function(topicsIds) {
throw "method must be implemented.";
2011-08-05 03:12:53 +02:00
},
2011-08-05 06:34:51 +02:00
changeTextToTopic : function(topicsIds, text) {
2011-08-05 03:12:53 +02:00
throw "method must be implemented.";
2011-08-05 06:34:51 +02:00
},
shrinkBranch : function(topicsIds, collapse) {
2011-08-05 06:34:51 +02:00
throw "method must be implemented.";
},
addFeatureToTopic : function(topicId, type, attributes) {
throw "method must be implemented.";
},
changeFeatureToTopic : function(topicId, featureId, attributes) {
throw "method must be implemented.";
},
removeFeatureFromTopic : function(topicId, featureId) {
throw "method must be implemented.";
}
2011-07-26 20:07:53 +02:00
});
mindplot.ActionDispatcher.setInstance = function(dispatcher) {
mindplot.ActionDispatcher._instance = dispatcher;
};
mindplot.ActionDispatcher.getInstance = function() {
return mindplot.ActionDispatcher._instance;
};