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

121 lines
3.4 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
addIconToTopic: function(topicId, iconType) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
},
2011-07-30 23:55:32 +02:00
addLinkToTopic: function(topicId, url) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
},
2011-07-30 23:55:32 +02:00
addNoteToTopic: function(topicId, text) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
addRelationship: 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
},
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
},
removeIconFromTopic: function(topicId, iconModel) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
removeLinkFromTopic: function(topicId) {
2011-07-26 20:07:53 +02:00
throw "method must be implemented.";
2011-07-30 23:55:32 +02:00
},
removeNoteFromTopic: function(topicId) {
throw "method must be implemented.";
},
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.";
2011-07-26 20:07:53 +02:00
}
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;
};