From 4fc6216b97c216796204e7f868c96bb23901b5f8 Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Sun, 23 Jan 2011 20:34:05 -0300 Subject: [PATCH] Fixing license text in every file and adding the powered by requirement --- core-js/src/main/javascript/ColorPicker.js | 36 +- core-js/src/main/javascript/Loader.js | 36 +- core-js/src/main/javascript/Monitor.js | 36 +- core-js/src/main/javascript/Point.js | 24 +- core-js/src/main/javascript/UserAgent.js | 24 +- core-js/src/main/javascript/Utils.js | 30 +- core-js/src/main/javascript/WaitDialog.js | 30 +- core-js/src/main/javascript/footer.js | 30 +- core-js/src/main/javascript/header.js | 24 +- core-js/src/main/javascript/log4js.js | 25 +- .../src/main/javascript/Beta2PelaMigrator.js | 16 + mindplot/src/main/javascript/Board.js | 36 +- mindplot/src/main/javascript/BoardEntry.js | 36 +- mindplot/src/main/javascript/BubbleTip.js | 24 +- mindplot/src/main/javascript/CentralTopic.js | 24 +- .../src/main/javascript/CentralTopicBoard.js | 36 +- mindplot/src/main/javascript/Command.js | 24 +- .../src/main/javascript/ConnectionLine.js | 30 +- mindplot/src/main/javascript/ControlPoint.js | 30 +- .../main/javascript/DesignerActionRunner.js | 24 +- .../main/javascript/DesignerUndoManager.js | 24 +- mindplot/src/main/javascript/DragManager.js | 30 +- mindplot/src/main/javascript/DragPivot.js | 36 +- mindplot/src/main/javascript/DragTopic.js | 36 +- .../main/javascript/DragTopicPositioner.js | 36 +- .../src/main/javascript/EditorProperties.js | 36 +- .../src/main/javascript/FixedDistanceBoard.js | 24 +- mindplot/src/main/javascript/Icon.js | 24 +- mindplot/src/main/javascript/IconGroup.js | 24 +- mindplot/src/main/javascript/IconModel.js | 24 +- mindplot/src/main/javascript/ImageIcon.js | 24 +- mindplot/src/main/javascript/LinkIcon.js | 24 +- mindplot/src/main/javascript/LinkModel.js | 24 +- mindplot/src/main/javascript/MainTopic.js | 24 +- .../src/main/javascript/MainTopicBoard.js | 36 +- mindplot/src/main/javascript/Mindmap.js | 24 +- .../src/main/javascript/MindmapDesigner.js | 24 +- mindplot/src/main/javascript/ModelCodeName.js | 16 + mindplot/src/main/javascript/NodeGraph.js | 24 +- mindplot/src/main/javascript/NodeModel.js | 24 +- mindplot/src/main/javascript/Note.js | 24 +- mindplot/src/main/javascript/NoteModel.js | 24 +- .../src/main/javascript/PersistanceManager.js | 24 +- .../src/main/javascript/RelationshipLine.js | 17 +- .../src/main/javascript/RelationshipModel.js | 16 + mindplot/src/main/javascript/ScreenManager.js | 24 +- .../src/main/javascript/ShrinkConnector.js | 24 +- mindplot/src/main/javascript/TextEditor.js | 24 +- mindplot/src/main/javascript/Tip.js | 24 +- mindplot/src/main/javascript/Topic.js | 24 +- mindplot/src/main/javascript/TopicBoard.js | 36 +- .../main/javascript/VariableDistanceBoard.js | 36 +- mindplot/src/main/javascript/Workspace.js | 24 +- .../javascript/XMLMindmapSerializerFactory.js | 16 + .../javascript/XMLMindmapSerializer_Beta.js | 15 + .../javascript/XMLMindmapSerializer_Pela.js | 24 +- .../commands/AddIconToTopicCommand.js | 24 +- .../commands/AddLinkToTopicCommand.js | 24 +- .../commands/AddNoteToTopicCommand.js | 24 +- .../commands/AddRelationshipCommand.js | 16 + .../javascript/commands/AddTopicCommand.js | 24 +- .../commands/ChangeIconFromTopicCommand.js | 24 +- .../javascript/commands/DeleteTopicCommand.js | 24 +- .../javascript/commands/DragTopicCommand.js | 24 +- .../commands/GenericFunctionCommand.js | 24 +- .../commands/MoveControlPointCommand.js | 16 + .../commands/RemoveIconFromTopicCommand.js | 24 +- .../commands/RemoveLinkFromTopicCommand.js | 24 +- .../commands/RemoveNoteFromTopicCommand.js | 24 +- mindplot/src/main/javascript/footer.js | 24 +- mindplot/src/main/javascript/header.js | 24 +- mindplot/src/main/javascript/util/Shape.js | 24 +- web2d/src/main/javascript/Arrow.js | 63 + web2d/src/main/javascript/CurvedLine.js | 24 +- web2d/src/main/javascript/Element.js | 36 +- web2d/src/main/javascript/Elipse.js | 24 +- web2d/src/main/javascript/EventDispatcher.js | 36 +- web2d/src/main/javascript/Font.js | 36 +- web2d/src/main/javascript/Group.js | 36 +- web2d/src/main/javascript/Image.js | 24 +- web2d/src/main/javascript/Line.js | 24 +- web2d/src/main/javascript/PolyLine.js | 36 +- web2d/src/main/javascript/Rect.js | 36 +- web2d/src/main/javascript/Text.js | 36 +- web2d/src/main/javascript/Toolkit.js | 30 +- web2d/src/main/javascript/Workspace.js | 36 +- web2d/src/main/javascript/header.js | 24 +- .../src/main/javascript/peer/svg/ArialFont.js | 36 +- .../src/main/javascript/peer/svg/ArrowPeer.js | 98 + .../javascript/peer/svg/CurvedLinePeer.js | 24 +- .../main/javascript/peer/svg/ElementPeer.js | 36 +- .../main/javascript/peer/svg/ElipsePeer.js | 24 +- web2d/src/main/javascript/peer/svg/Font.js | 36 +- .../src/main/javascript/peer/svg/GroupPeer.js | 24 +- .../src/main/javascript/peer/svg/ImagePeer.js | 24 +- .../src/main/javascript/peer/svg/LinePeer.js | 24 +- .../main/javascript/peer/svg/PolyLinePeer.js | 24 +- .../src/main/javascript/peer/svg/RectPeer.js | 36 +- .../main/javascript/peer/svg/TahomaFont.js | 36 +- .../src/main/javascript/peer/svg/TextPeer.js | 24 +- .../src/main/javascript/peer/svg/TimesFont.js | 36 +- .../main/javascript/peer/svg/VerdanaFont.js | 36 +- .../main/javascript/peer/svg/WorkspacePeer.js | 36 +- .../main/javascript/peer/utils/EventUtils.js | 36 +- .../javascript/peer/utils/TransformUtils.js | 36 +- .../src/main/javascript/peer/vml/ArialFont.js | 36 +- .../main/javascript/peer/vml/ElementPeer.js | 24 +- .../main/javascript/peer/vml/ElipsePeer.js | 24 +- web2d/src/main/javascript/peer/vml/Font.js | 36 +- .../src/main/javascript/peer/vml/GroupPeer.js | 36 +- .../src/main/javascript/peer/vml/ImagePeer.js | 24 +- .../src/main/javascript/peer/vml/LinePeer.js | 36 +- .../main/javascript/peer/vml/PolyLinePeer.js | 36 +- .../src/main/javascript/peer/vml/RectPeer.js | 24 +- .../main/javascript/peer/vml/TahomaFont.js | 36 +- .../main/javascript/peer/vml/TextBoxPeer.js | 36 +- .../src/main/javascript/peer/vml/TextPeer.js | 36 +- .../src/main/javascript/peer/vml/TimesFont.js | 36 +- .../main/javascript/peer/vml/VerdanaFont.js | 36 +- .../main/javascript/peer/vml/WorkspacePeer.js | 36 +- web2d/src/test/javascript/render/mootools.js | 4322 ++++++++--------- web2d/src/test/javascript/render/utils.js | 36 +- .../javascript/render/web2dLibraryLoader.js | 24 +- wise-webapp/src/license.txt | 31 +- .../controller/ActivationController.java | 24 +- .../controller/BaseMultiActionController.java | 24 +- .../controller/BaseSimpleFormController.java | 24 +- .../controller/CaptchaController.java | 24 +- .../controller/CaptchaFormController.java | 24 +- .../controller/ChangePasswordController.java | 24 +- .../controller/EditProfileController.java | 36 +- .../controller/EmbeddedViewController.java | 24 +- .../controller/ExportController.java | 36 +- .../controller/ForgotPasswordController.java | 36 +- .../controller/HistoryController.java | 36 +- .../controller/ImportController.java | 24 +- .../controller/KeyboardController.java | 24 +- .../controller/LoginController.java | 36 +- .../com/wisemapping/controller/Messages.java | 36 +- .../controller/MindmapController.java | 36 +- .../wisemapping/controller/MindmapCooker.java | 24 +- .../controller/MindmapEditorController.java | 36 +- .../controller/MindmapPublishController.java | 24 +- .../controller/MindmapSharingController.java | 24 +- .../controller/NewMindmapController.java | 24 +- .../controller/PublicPagesController.java | 24 +- .../controller/PublicViewController.java | 36 +- .../controller/RenameMindmapController.java | 36 +- .../controller/SearchController.java | 36 +- .../controller/SettingsController.java | 36 +- .../controller/TagsController.java | 36 +- .../controller/UserController.java | 36 +- .../com/wisemapping/dao/MindmapManager.java | 36 +- .../wisemapping/dao/MindmapManagerImpl.java | 36 +- .../java/com/wisemapping/dao/UserManager.java | 36 +- .../com/wisemapping/dao/UserManagerImpl.java | 36 +- .../com/wisemapping/dwr/BaseDwrService.java | 36 +- .../dwr/JavaScriptErrorLoggerService.java | 36 +- .../com/wisemapping/dwr/MapEditorService.java | 36 +- .../com/wisemapping/dwr/ResponseMessage.java | 36 +- .../AccessDeniedSecurityException.java | 36 +- .../exceptions/EmailNotExistsException.java | 36 +- .../exceptions/NoMapFoundException.java | 24 +- .../UnexpectedArgumentException.java | 36 +- .../UnsupportedBrowserException.java | 36 +- .../exceptions/WiseMappingException.java | 36 +- .../wisemapping/exporter/ExportException.java | 36 +- .../wisemapping/exporter/ExportFormat.java | 36 +- .../exporter/ExportProperties.java | 36 +- .../com/wisemapping/exporter/Exporter.java | 36 +- .../com/wisemapping/exporter/SvgExporter.java | 36 +- .../exporter/freemind/FreemindExporter.java | 24 +- .../exporter/freemind/FreemindIconMapper.java | 36 +- .../filter/BrowserSupportInterceptor.java | 36 +- .../com/wisemapping/filter/UserAgent.java | 24 +- .../wisemapping/importer/ImportFormat.java | 36 +- .../com/wisemapping/importer/Importer.java | 36 +- .../importer/ImporterException.java | 36 +- .../wisemapping/importer/ImporterFactory.java | 36 +- .../importer/freemind/FreemindIconMapper.java | 36 +- .../importer/freemind/FreemindImporter.java | 24 +- .../java/com/wisemapping/mail/Mailer.java | 24 +- .../wisemapping/mail/SmtpAuthenticator.java | 36 +- .../wisemapping/model/ColaborationEmail.java | 36 +- .../com/wisemapping/model/Colaborator.java | 36 +- .../java/com/wisemapping/model/Constants.java | 36 +- .../main/java/com/wisemapping/model/Font.java | 36 +- .../com/wisemapping/model/ImageFamily.java | 36 +- .../java/com/wisemapping/model/MindMap.java | 36 +- .../wisemapping/model/MindMapCriteria.java | 36 +- .../com/wisemapping/model/MindMapHistory.java | 36 +- .../com/wisemapping/model/MindMapNative.java | 36 +- .../com/wisemapping/model/MindmapImage.java | 36 +- .../model/MindmapImagesFactory.java | 36 +- .../com/wisemapping/model/MindmapUser.java | 36 +- .../com/wisemapping/model/ShapeStyle.java | 36 +- .../main/java/com/wisemapping/model/User.java | 36 +- .../java/com/wisemapping/model/UserLogin.java | 36 +- .../java/com/wisemapping/model/UserRole.java | 36 +- .../security/AuthenticationHandler.java | 36 +- .../security/AuthenticationToken.java | 36 +- .../security/CustomPasswordEncoder.java | 36 +- .../CustomTokenBasedRememberMeServices.java | 24 +- .../security/DatabaseUserDetailService.java | 36 +- .../DefaultAuthenticationHandler.java | 36 +- .../java/com/wisemapping/security/User.java | 36 +- .../java/com/wisemapping/security/Utils.java | 36 +- .../WiseAuthenticationProcessingFilter.java | 36 +- .../security/aop/BaseSecurityAdvice.java | 36 +- .../security/aop/UpdateSecurityAdvise.java | 36 +- .../security/aop/ViewBaseSecurityAdvise.java | 36 +- .../service/HibernateAppListener.java | 36 +- .../wisemapping/service/HibernateUtil.java | 36 +- .../InvalidActivationCodeException.java | 36 +- .../service/InvalidColaboratorException.java | 36 +- .../service/InvalidUserEmailException.java | 24 +- .../wisemapping/service/MindmapService.java | 36 +- .../service/MindmapServiceImpl.java | 36 +- .../com/wisemapping/service/UserService.java | 36 +- .../wisemapping/service/UserServiceImpl.java | 24 +- .../java/com/wisemapping/util/JAXBUtils.java | 36 +- .../java/com/wisemapping/util/ZipUtils.java | 24 +- .../validator/ChangePasswordValidator.java | 24 +- .../validator/EditProfileValidator.java | 36 +- .../validator/ForgotPasswordValidator.java | 36 +- .../validator/ImportMapValidator.java | 24 +- .../validator/MapInfoValidator.java | 36 +- .../validator/RenameMapValidator.java | 36 +- .../wisemapping/validator/TagValidator.java | 36 +- .../wisemapping/validator/UserValidator.java | 36 +- .../java/com/wisemapping/validator/Utils.java | 36 +- .../wisemapping/validator/ValidatorUtils.java | 36 +- .../wisemapping/view/ChangePasswordBean.java | 24 +- .../com/wisemapping/view/ColaboratorBean.java | 36 +- .../wisemapping/view/ForgotPasswordBean.java | 36 +- .../com/wisemapping/view/HistoryBean.java | 36 +- .../com/wisemapping/view/ImportMapBean.java | 24 +- .../com/wisemapping/view/MindMapBean.java | 36 +- .../com/wisemapping/view/MindMapInfoBean.java | 24 +- .../java/com/wisemapping/view/TagBean.java | 36 +- .../java/com/wisemapping/view/UserBean.java | 36 +- .../main/java/com/wisemapping/xml/Style.java | 36 +- .../wisemapping/xml/SvgToVMLConverter.java | 36 +- .../wisemapping/xml/VmlToSvgConverter.java | 36 +- .../com/wisemapping/xml/svgmap/Ellipse.java | 36 +- .../java/com/wisemapping/xml/svgmap/G.java | 36 +- .../java/com/wisemapping/xml/svgmap/Line.java | 36 +- .../wisemapping/xml/svgmap/ObjectFactory.java | 36 +- .../com/wisemapping/xml/svgmap/Polyline.java | 36 +- .../java/com/wisemapping/xml/svgmap/Rect.java | 36 +- .../java/com/wisemapping/xml/svgmap/Svg.java | 36 +- .../java/com/wisemapping/xml/svgmap/Text.java | 36 +- .../wisemapping/xml/svgmap/package-info.java | 36 +- .../com/wisemapping/xml/vmlmap/Element.java | 36 +- .../java/com/wisemapping/xml/vmlmap/Fill.java | 36 +- .../com/wisemapping/xml/vmlmap/Group.java | 36 +- .../java/com/wisemapping/xml/vmlmap/Line.java | 36 +- .../wisemapping/xml/vmlmap/ObjectFactory.java | 36 +- .../java/com/wisemapping/xml/vmlmap/Oval.java | 36 +- .../com/wisemapping/xml/vmlmap/Polyline.java | 36 +- .../java/com/wisemapping/xml/vmlmap/Rect.java | 36 +- .../com/wisemapping/xml/vmlmap/Roundrect.java | 36 +- .../com/wisemapping/xml/vmlmap/Shape.java | 36 +- .../com/wisemapping/xml/vmlmap/Stroke.java | 36 +- .../com/wisemapping/xml/vmlmap/Textbox.java | 36 +- .../wisemapping/xml/vmlmap/package-info.java | 36 +- .../webapp/WEB-INF/classes/log4j.properties | 6 +- wise-webapp/src/main/webapp/css/editor.css | 3 +- wise-webapp/src/main/webapp/css/embedded.css | 10 - wise-webapp/src/main/webapp/js/IconPanel.js | 24 +- wise-webapp/src/main/webapp/js/common.js | 36 +- wise-webapp/src/main/webapp/js/editor.js | 30 +- wise-webapp/src/main/webapp/js/embedded.js | 30 +- wise-webapp/src/main/webapp/js/help.js | 24 +- wise-webapp/src/main/webapp/js/helpPanel.js | 24 +- wise-webapp/src/main/webapp/js/menu.js | 36 +- wise-webapp/src/main/webapp/js/menu2.js | 36 +- wise-webapp/src/main/webapp/js/mooRainbow.js | 36 +- wise-webapp/src/main/webapp/js/mootools.js | 24 +- .../src/main/webapp/js/shadedborder.js | 24 +- wise-webapp/src/main/webapp/js/slideShow.js | 24 +- .../src/main/webapp/js/transcorners.js | 36 +- wise-webapp/src/main/webapp/js/windoo.js | 24 +- 283 files changed, 6415 insertions(+), 6677 deletions(-) create mode 100644 web2d/src/main/javascript/Arrow.js create mode 100644 web2d/src/main/javascript/peer/svg/ArrowPeer.js diff --git a/core-js/src/main/javascript/ColorPicker.js b/core-js/src/main/javascript/ColorPicker.js index 40c0ea0e..93df3ac4 100644 --- a/core-js/src/main/javascript/ColorPicker.js +++ b/core-js/src/main/javascript/ColorPicker.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + core.ColorPicker = function() { this.palette = "7x10"; diff --git a/core-js/src/main/javascript/Loader.js b/core-js/src/main/javascript/Loader.js index d44b6be1..5eada05c 100644 --- a/core-js/src/main/javascript/Loader.js +++ b/core-js/src/main/javascript/Loader.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + core.Loader = { load: function(scriptPath, stylePath,jsFileName) diff --git a/core-js/src/main/javascript/Monitor.js b/core-js/src/main/javascript/Monitor.js index 38cd0aa8..8b089e77 100644 --- a/core-js/src/main/javascript/Monitor.js +++ b/core-js/src/main/javascript/Monitor.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + core.Monitor = function(fadeElement, logContentElem) { core.assert(fadeElement, "fadeElement can not be null"); diff --git a/core-js/src/main/javascript/Point.js b/core-js/src/main/javascript/Point.js index 892d647b..8b3908af 100644 --- a/core-js/src/main/javascript/Point.js +++ b/core-js/src/main/javascript/Point.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ core.Point = function(x, y) diff --git a/core-js/src/main/javascript/UserAgent.js b/core-js/src/main/javascript/UserAgent.js index c18e83a9..33ae4816 100644 --- a/core-js/src/main/javascript/UserAgent.js +++ b/core-js/src/main/javascript/UserAgent.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ core.UserAgent = { diff --git a/core-js/src/main/javascript/Utils.js b/core-js/src/main/javascript/Utils.js index 33223333..806dda51 100644 --- a/core-js/src/main/javascript/Utils.js +++ b/core-js/src/main/javascript/Utils.js @@ -1,20 +1,18 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - * $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* Copyright [2011] [wisemapping] +* +* Licensed under 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. */ core.Utils = diff --git a/core-js/src/main/javascript/WaitDialog.js b/core-js/src/main/javascript/WaitDialog.js index f48d6123..550c8b14 100644 --- a/core-js/src/main/javascript/WaitDialog.js +++ b/core-js/src/main/javascript/WaitDialog.js @@ -1,20 +1,18 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - * $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* Copyright [2011] [wisemapping] +* +* Licensed under 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. */ /* diff --git a/core-js/src/main/javascript/footer.js b/core-js/src/main/javascript/footer.js index 68ed9b8b..09a1eade 100644 --- a/core-js/src/main/javascript/footer.js +++ b/core-js/src/main/javascript/footer.js @@ -1,20 +1,18 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - * $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* Copyright [2011] [wisemapping] +* +* Licensed under 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. */ // Init default logger level ... diff --git a/core-js/src/main/javascript/header.js b/core-js/src/main/javascript/header.js index 3d4560b6..bb6ee4e4 100644 --- a/core-js/src/main/javascript/header.js +++ b/core-js/src/main/javascript/header.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ var core = {}; diff --git a/core-js/src/main/javascript/log4js.js b/core-js/src/main/javascript/log4js.js index 29000f95..f8bf6985 100644 --- a/core-js/src/main/javascript/log4js.js +++ b/core-js/src/main/javascript/log4js.js @@ -1,15 +1,18 @@ /* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. + * Copyright [2011] [wisemapping] +* +* Licensed under 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. */ /*jsl:option explicit*/ diff --git a/mindplot/src/main/javascript/Beta2PelaMigrator.js b/mindplot/src/main/javascript/Beta2PelaMigrator.js index a27513b1..86032fd9 100644 --- a/mindplot/src/main/javascript/Beta2PelaMigrator.js +++ b/mindplot/src/main/javascript/Beta2PelaMigrator.js @@ -1,3 +1,19 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.Beta2PelaMigrator = function(betaSerializer){ this._betaSerializer=betaSerializer; this._pelaSerializer = new mindplot.XMLMindmapSerializer_Pela(); diff --git a/mindplot/src/main/javascript/Board.js b/mindplot/src/main/javascript/Board.js index adfb589e..7db3fe67 100644 --- a/mindplot/src/main/javascript/Board.js +++ b/mindplot/src/main/javascript/Board.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.Board = function(defaultHeight, referencePoint) { this.initialize(defaultHeight, referencePoint); diff --git a/mindplot/src/main/javascript/BoardEntry.js b/mindplot/src/main/javascript/BoardEntry.js index dc0ffd23..17dbbd44 100644 --- a/mindplot/src/main/javascript/BoardEntry.js +++ b/mindplot/src/main/javascript/BoardEntry.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.BoardEntry = function(lowerLimit, upperLimit, order) { if (lowerLimit && upperLimit) diff --git a/mindplot/src/main/javascript/BubbleTip.js b/mindplot/src/main/javascript/BubbleTip.js index b3e5ff83..af908963 100644 --- a/mindplot/src/main/javascript/BubbleTip.js +++ b/mindplot/src/main/javascript/BubbleTip.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.BubbleTip = function(divContainer){ diff --git a/mindplot/src/main/javascript/CentralTopic.js b/mindplot/src/main/javascript/CentralTopic.js index 7e4de3e2..5e93eace 100644 --- a/mindplot/src/main/javascript/CentralTopic.js +++ b/mindplot/src/main/javascript/CentralTopic.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.CentralTopic = function(model) diff --git a/mindplot/src/main/javascript/CentralTopicBoard.js b/mindplot/src/main/javascript/CentralTopicBoard.js index 00761c25..5afce4f0 100644 --- a/mindplot/src/main/javascript/CentralTopicBoard.js +++ b/mindplot/src/main/javascript/CentralTopicBoard.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.CentralTopicBoard = function(centralTopic) { var point = new core.Point(0, 0); diff --git a/mindplot/src/main/javascript/Command.js b/mindplot/src/main/javascript/Command.js index 354cf3a3..b9c8e7f3 100644 --- a/mindplot/src/main/javascript/Command.js +++ b/mindplot/src/main/javascript/Command.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.Command = new Class( diff --git a/mindplot/src/main/javascript/ConnectionLine.js b/mindplot/src/main/javascript/ConnectionLine.js index cbf0539f..dc010640 100644 --- a/mindplot/src/main/javascript/ConnectionLine.js +++ b/mindplot/src/main/javascript/ConnectionLine.js @@ -1,20 +1,18 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - * $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* Copyright [2011] [wisemapping] +* +* Licensed under 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. */ mindplot.ConnectionLine = function(sourceNode, targetNode, lineType) diff --git a/mindplot/src/main/javascript/ControlPoint.js b/mindplot/src/main/javascript/ControlPoint.js index 47f41853..78868518 100644 --- a/mindplot/src/main/javascript/ControlPoint.js +++ b/mindplot/src/main/javascript/ControlPoint.js @@ -1,20 +1,18 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - * $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* Copyright [2011] [wisemapping] +* +* Licensed under 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. */ mindplot.ControlPoint = function() diff --git a/mindplot/src/main/javascript/DesignerActionRunner.js b/mindplot/src/main/javascript/DesignerActionRunner.js index 2849ae3e..f4e6c8a6 100644 --- a/mindplot/src/main/javascript/DesignerActionRunner.js +++ b/mindplot/src/main/javascript/DesignerActionRunner.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.DesignerActionRunner = new Class({ diff --git a/mindplot/src/main/javascript/DesignerUndoManager.js b/mindplot/src/main/javascript/DesignerUndoManager.js index f5a36ea0..56f8d9b3 100644 --- a/mindplot/src/main/javascript/DesignerUndoManager.js +++ b/mindplot/src/main/javascript/DesignerUndoManager.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.DesignerUndoManager = new Class({ diff --git a/mindplot/src/main/javascript/DragManager.js b/mindplot/src/main/javascript/DragManager.js index a119b56c..db5b231c 100644 --- a/mindplot/src/main/javascript/DragManager.js +++ b/mindplot/src/main/javascript/DragManager.js @@ -1,20 +1,18 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - * $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* Copyright [2011] [wisemapping] +* +* Licensed under 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. */ mindplot.DragManager = function(workspace) diff --git a/mindplot/src/main/javascript/DragPivot.js b/mindplot/src/main/javascript/DragPivot.js index b603ab22..a3eea924 100644 --- a/mindplot/src/main/javascript/DragPivot.js +++ b/mindplot/src/main/javascript/DragPivot.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.DragPivot = function() { this._position = new core.Point(); diff --git a/mindplot/src/main/javascript/DragTopic.js b/mindplot/src/main/javascript/DragTopic.js index a35389bf..73679ec3 100644 --- a/mindplot/src/main/javascript/DragTopic.js +++ b/mindplot/src/main/javascript/DragTopic.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.DragTopic = function(dragShape, draggedNode) { core.assert(core.Utils.isDefined(dragShape), 'Rect can not be null.'); diff --git a/mindplot/src/main/javascript/DragTopicPositioner.js b/mindplot/src/main/javascript/DragTopicPositioner.js index 967a582f..408f208b 100644 --- a/mindplot/src/main/javascript/DragTopicPositioner.js +++ b/mindplot/src/main/javascript/DragTopicPositioner.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.DragTopicPositioner = function(workspace, topics) { core.assert(workspace, 'workspace can not be null'); diff --git a/mindplot/src/main/javascript/EditorProperties.js b/mindplot/src/main/javascript/EditorProperties.js index fa153911..080c08b6 100644 --- a/mindplot/src/main/javascript/EditorProperties.js +++ b/mindplot/src/main/javascript/EditorProperties.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.EditorProperties = function() { this._zoom = 0; diff --git a/mindplot/src/main/javascript/FixedDistanceBoard.js b/mindplot/src/main/javascript/FixedDistanceBoard.js index 5373a82b..d2e71138 100644 --- a/mindplot/src/main/javascript/FixedDistanceBoard.js +++ b/mindplot/src/main/javascript/FixedDistanceBoard.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.FixedDistanceBoard = function(defaultHeight, topic) diff --git a/mindplot/src/main/javascript/Icon.js b/mindplot/src/main/javascript/Icon.js index eaf6df03..c5d24acf 100644 --- a/mindplot/src/main/javascript/Icon.js +++ b/mindplot/src/main/javascript/Icon.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.Icon = function(url){ diff --git a/mindplot/src/main/javascript/IconGroup.js b/mindplot/src/main/javascript/IconGroup.js index b9e4312a..0bf13d91 100644 --- a/mindplot/src/main/javascript/IconGroup.js +++ b/mindplot/src/main/javascript/IconGroup.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.IconGroup = function(topic) { diff --git a/mindplot/src/main/javascript/IconModel.js b/mindplot/src/main/javascript/IconModel.js index f934cb6b..2e5ee477 100644 --- a/mindplot/src/main/javascript/IconModel.js +++ b/mindplot/src/main/javascript/IconModel.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.IconModel = function(iconType, topic) diff --git a/mindplot/src/main/javascript/ImageIcon.js b/mindplot/src/main/javascript/ImageIcon.js index a4cb9917..f760a895 100644 --- a/mindplot/src/main/javascript/ImageIcon.js +++ b/mindplot/src/main/javascript/ImageIcon.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.ImageIcon = function(iconModel, topic, designer) { diff --git a/mindplot/src/main/javascript/LinkIcon.js b/mindplot/src/main/javascript/LinkIcon.js index 932cea28..c2c603d2 100644 --- a/mindplot/src/main/javascript/LinkIcon.js +++ b/mindplot/src/main/javascript/LinkIcon.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.LinkIcon = function(urlModel, topic, designer) { diff --git a/mindplot/src/main/javascript/LinkModel.js b/mindplot/src/main/javascript/LinkModel.js index 759cad9b..59ffe944 100644 --- a/mindplot/src/main/javascript/LinkModel.js +++ b/mindplot/src/main/javascript/LinkModel.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.LinkModel = function(url, topic) diff --git a/mindplot/src/main/javascript/MainTopic.js b/mindplot/src/main/javascript/MainTopic.js index 4b393cdd..3af7e1c1 100644 --- a/mindplot/src/main/javascript/MainTopic.js +++ b/mindplot/src/main/javascript/MainTopic.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.MainTopic = function(model) diff --git a/mindplot/src/main/javascript/MainTopicBoard.js b/mindplot/src/main/javascript/MainTopicBoard.js index 96d625f6..996c88c4 100644 --- a/mindplot/src/main/javascript/MainTopicBoard.js +++ b/mindplot/src/main/javascript/MainTopicBoard.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.MainTopicBoard = function(topic) { this._topic = topic; diff --git a/mindplot/src/main/javascript/Mindmap.js b/mindplot/src/main/javascript/Mindmap.js index 5537b3ab..e6dbbb5e 100644 --- a/mindplot/src/main/javascript/Mindmap.js +++ b/mindplot/src/main/javascript/Mindmap.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.Mindmap = function() diff --git a/mindplot/src/main/javascript/MindmapDesigner.js b/mindplot/src/main/javascript/MindmapDesigner.js index 309a9c52..e54c4996 100644 --- a/mindplot/src/main/javascript/MindmapDesigner.js +++ b/mindplot/src/main/javascript/MindmapDesigner.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.MindmapDesigner = function(profile, divElement) diff --git a/mindplot/src/main/javascript/ModelCodeName.js b/mindplot/src/main/javascript/ModelCodeName.js index 206620b1..db6d6806 100644 --- a/mindplot/src/main/javascript/ModelCodeName.js +++ b/mindplot/src/main/javascript/ModelCodeName.js @@ -1,3 +1,19 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.ModelCodeName ={}; mindplot.ModelCodeName.BETA = "beta"; diff --git a/mindplot/src/main/javascript/NodeGraph.js b/mindplot/src/main/javascript/NodeGraph.js index cd359f16..a3b7216a 100644 --- a/mindplot/src/main/javascript/NodeGraph.js +++ b/mindplot/src/main/javascript/NodeGraph.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.NodeGraph = function(nodeModel) diff --git a/mindplot/src/main/javascript/NodeModel.js b/mindplot/src/main/javascript/NodeModel.js index faa5cab9..f570e1bd 100644 --- a/mindplot/src/main/javascript/NodeModel.js +++ b/mindplot/src/main/javascript/NodeModel.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.NodeModel = function(type, mindmap) diff --git a/mindplot/src/main/javascript/Note.js b/mindplot/src/main/javascript/Note.js index 493f1839..453aaa54 100644 --- a/mindplot/src/main/javascript/Note.js +++ b/mindplot/src/main/javascript/Note.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.Note = function(textModel, topic, designer) { diff --git a/mindplot/src/main/javascript/NoteModel.js b/mindplot/src/main/javascript/NoteModel.js index ab7b192a..207f91be 100644 --- a/mindplot/src/main/javascript/NoteModel.js +++ b/mindplot/src/main/javascript/NoteModel.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.NoteModel = function(text, topic) diff --git a/mindplot/src/main/javascript/PersistanceManager.js b/mindplot/src/main/javascript/PersistanceManager.js index f92c854d..b82c4b5d 100644 --- a/mindplot/src/main/javascript/PersistanceManager.js +++ b/mindplot/src/main/javascript/PersistanceManager.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.PersistanceManager = {}; diff --git a/mindplot/src/main/javascript/RelationshipLine.js b/mindplot/src/main/javascript/RelationshipLine.js index 5ae74196..7e620dbb 100644 --- a/mindplot/src/main/javascript/RelationshipLine.js +++ b/mindplot/src/main/javascript/RelationshipLine.js @@ -1,4 +1,19 @@ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.RelationshipLine = function(sourceNode, targetNode, lineType) { mindplot.ConnectionLine.call(this,sourceNode, targetNode, lineType); diff --git a/mindplot/src/main/javascript/RelationshipModel.js b/mindplot/src/main/javascript/RelationshipModel.js index c828935b..62a11188 100644 --- a/mindplot/src/main/javascript/RelationshipModel.js +++ b/mindplot/src/main/javascript/RelationshipModel.js @@ -1,3 +1,19 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.RelationshipModel = function(fromNode, toNode) { core.assert(fromNode, 'from node type can not be null'); diff --git a/mindplot/src/main/javascript/ScreenManager.js b/mindplot/src/main/javascript/ScreenManager.js index d3701fb8..7352a287 100644 --- a/mindplot/src/main/javascript/ScreenManager.js +++ b/mindplot/src/main/javascript/ScreenManager.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.ScreenManager = function(width, height, divElement) diff --git a/mindplot/src/main/javascript/ShrinkConnector.js b/mindplot/src/main/javascript/ShrinkConnector.js index d2de0dfa..87b4ae00 100644 --- a/mindplot/src/main/javascript/ShrinkConnector.js +++ b/mindplot/src/main/javascript/ShrinkConnector.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.ShirinkConnector = function(topic) diff --git a/mindplot/src/main/javascript/TextEditor.js b/mindplot/src/main/javascript/TextEditor.js index ee5bd215..8549e34e 100644 --- a/mindplot/src/main/javascript/TextEditor.js +++ b/mindplot/src/main/javascript/TextEditor.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.TextEditor = function(screenManager,actionRunner) diff --git a/mindplot/src/main/javascript/Tip.js b/mindplot/src/main/javascript/Tip.js index 76db9148..28804c7c 100644 --- a/mindplot/src/main/javascript/Tip.js +++ b/mindplot/src/main/javascript/Tip.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.Tip = function(divContainer){ diff --git a/mindplot/src/main/javascript/Topic.js b/mindplot/src/main/javascript/Topic.js index a29a4f00..c10c6e0b 100644 --- a/mindplot/src/main/javascript/Topic.js +++ b/mindplot/src/main/javascript/Topic.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.Topic = function() diff --git a/mindplot/src/main/javascript/TopicBoard.js b/mindplot/src/main/javascript/TopicBoard.js index 50202ea9..83b55e30 100644 --- a/mindplot/src/main/javascript/TopicBoard.js +++ b/mindplot/src/main/javascript/TopicBoard.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.TopicBoard = function() { this._height = null; diff --git a/mindplot/src/main/javascript/VariableDistanceBoard.js b/mindplot/src/main/javascript/VariableDistanceBoard.js index c051c526..97b1193b 100644 --- a/mindplot/src/main/javascript/VariableDistanceBoard.js +++ b/mindplot/src/main/javascript/VariableDistanceBoard.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + mindplot.VariableDistanceBoard = function(defaultHeight, referencePoint) { mindplot.VariableDistanceBoard.superClass.initialize.call(this, defaultHeight, referencePoint); diff --git a/mindplot/src/main/javascript/Workspace.js b/mindplot/src/main/javascript/Workspace.js index aa801437..9a4ae4b5 100644 --- a/mindplot/src/main/javascript/Workspace.js +++ b/mindplot/src/main/javascript/Workspace.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.Workspace = function(profile, screenManager, zoom) diff --git a/mindplot/src/main/javascript/XMLMindmapSerializerFactory.js b/mindplot/src/main/javascript/XMLMindmapSerializerFactory.js index b4fca8c3..e151f09d 100644 --- a/mindplot/src/main/javascript/XMLMindmapSerializerFactory.js +++ b/mindplot/src/main/javascript/XMLMindmapSerializerFactory.js @@ -1,3 +1,19 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.XMLMindmapSerializerFactory = {}; mindplot.XMLMindmapSerializerFactory.getSerializerFromMindmap = function(mindmap){ diff --git a/mindplot/src/main/javascript/XMLMindmapSerializer_Beta.js b/mindplot/src/main/javascript/XMLMindmapSerializer_Beta.js index d74671a9..5e15db65 100644 --- a/mindplot/src/main/javascript/XMLMindmapSerializer_Beta.js +++ b/mindplot/src/main/javascript/XMLMindmapSerializer_Beta.js @@ -1,3 +1,18 @@ +/* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.XMLMindmapSerializer_Beta = function() { diff --git a/mindplot/src/main/javascript/XMLMindmapSerializer_Pela.js b/mindplot/src/main/javascript/XMLMindmapSerializer_Pela.js index fbf1bfd5..88075ec6 100644 --- a/mindplot/src/main/javascript/XMLMindmapSerializer_Pela.js +++ b/mindplot/src/main/javascript/XMLMindmapSerializer_Pela.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.XMLMindmapSerializer_Pela = function() diff --git a/mindplot/src/main/javascript/commands/AddIconToTopicCommand.js b/mindplot/src/main/javascript/commands/AddIconToTopicCommand.js index 3b10214c..2067ecfd 100644 --- a/mindplot/src/main/javascript/commands/AddIconToTopicCommand.js +++ b/mindplot/src/main/javascript/commands/AddIconToTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.AddIconToTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/AddLinkToTopicCommand.js b/mindplot/src/main/javascript/commands/AddLinkToTopicCommand.js index 1f3ec09a..82f33819 100644 --- a/mindplot/src/main/javascript/commands/AddLinkToTopicCommand.js +++ b/mindplot/src/main/javascript/commands/AddLinkToTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.AddLinkToTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/AddNoteToTopicCommand.js b/mindplot/src/main/javascript/commands/AddNoteToTopicCommand.js index f684473e..37e6ebee 100644 --- a/mindplot/src/main/javascript/commands/AddNoteToTopicCommand.js +++ b/mindplot/src/main/javascript/commands/AddNoteToTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.AddNoteToTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/AddRelationshipCommand.js b/mindplot/src/main/javascript/commands/AddRelationshipCommand.js index 03a1881d..f80a6a1c 100644 --- a/mindplot/src/main/javascript/commands/AddRelationshipCommand.js +++ b/mindplot/src/main/javascript/commands/AddRelationshipCommand.js @@ -1,3 +1,19 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.commands.AddRelationshipCommand = mindplot.Command.extend( { initialize: function(model, mindmap) diff --git a/mindplot/src/main/javascript/commands/AddTopicCommand.js b/mindplot/src/main/javascript/commands/AddTopicCommand.js index 8904a2cc..4a28dfc3 100644 --- a/mindplot/src/main/javascript/commands/AddTopicCommand.js +++ b/mindplot/src/main/javascript/commands/AddTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.AddTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/ChangeIconFromTopicCommand.js b/mindplot/src/main/javascript/commands/ChangeIconFromTopicCommand.js index e81f269d..3490c9e6 100644 --- a/mindplot/src/main/javascript/commands/ChangeIconFromTopicCommand.js +++ b/mindplot/src/main/javascript/commands/ChangeIconFromTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.ChangeIconFromTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/DeleteTopicCommand.js b/mindplot/src/main/javascript/commands/DeleteTopicCommand.js index e35be5e9..0969391b 100644 --- a/mindplot/src/main/javascript/commands/DeleteTopicCommand.js +++ b/mindplot/src/main/javascript/commands/DeleteTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.DeleteTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/DragTopicCommand.js b/mindplot/src/main/javascript/commands/DragTopicCommand.js index adc97355..0aa9a899 100644 --- a/mindplot/src/main/javascript/commands/DragTopicCommand.js +++ b/mindplot/src/main/javascript/commands/DragTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.DragTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/GenericFunctionCommand.js b/mindplot/src/main/javascript/commands/GenericFunctionCommand.js index 77324ed2..8c859d6c 100644 --- a/mindplot/src/main/javascript/commands/GenericFunctionCommand.js +++ b/mindplot/src/main/javascript/commands/GenericFunctionCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.GenericFunctionCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/MoveControlPointCommand.js b/mindplot/src/main/javascript/commands/MoveControlPointCommand.js index ecc821df..f3f8d001 100644 --- a/mindplot/src/main/javascript/commands/MoveControlPointCommand.js +++ b/mindplot/src/main/javascript/commands/MoveControlPointCommand.js @@ -1,3 +1,19 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ mindplot.commands.MoveControlPointCommand = mindplot.Command.extend( { initialize: function(ctrlPointController, point) diff --git a/mindplot/src/main/javascript/commands/RemoveIconFromTopicCommand.js b/mindplot/src/main/javascript/commands/RemoveIconFromTopicCommand.js index b4bd097b..5a758974 100644 --- a/mindplot/src/main/javascript/commands/RemoveIconFromTopicCommand.js +++ b/mindplot/src/main/javascript/commands/RemoveIconFromTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.RemoveIconFromTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/RemoveLinkFromTopicCommand.js b/mindplot/src/main/javascript/commands/RemoveLinkFromTopicCommand.js index b79ce81a..ab8aefaf 100644 --- a/mindplot/src/main/javascript/commands/RemoveLinkFromTopicCommand.js +++ b/mindplot/src/main/javascript/commands/RemoveLinkFromTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.RemoveLinkFromTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/commands/RemoveNoteFromTopicCommand.js b/mindplot/src/main/javascript/commands/RemoveNoteFromTopicCommand.js index 450f8b7b..2a446029 100644 --- a/mindplot/src/main/javascript/commands/RemoveNoteFromTopicCommand.js +++ b/mindplot/src/main/javascript/commands/RemoveNoteFromTopicCommand.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.commands.RemoveNoteFromTopicCommand = mindplot.Command.extend( diff --git a/mindplot/src/main/javascript/footer.js b/mindplot/src/main/javascript/footer.js index 59449f5b..38bf5a1b 100644 --- a/mindplot/src/main/javascript/footer.js +++ b/mindplot/src/main/javascript/footer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ if(afterMindpotLibraryLoading) diff --git a/mindplot/src/main/javascript/header.js b/mindplot/src/main/javascript/header.js index c825926e..1abc2365 100644 --- a/mindplot/src/main/javascript/header.js +++ b/mindplot/src/main/javascript/header.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ // (C) Copyright 2007 WiseMapping.com. All Rights Reserved diff --git a/mindplot/src/main/javascript/util/Shape.js b/mindplot/src/main/javascript/util/Shape.js index 3e2061e2..0f696088 100644 --- a/mindplot/src/main/javascript/util/Shape.js +++ b/mindplot/src/main/javascript/util/Shape.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ mindplot.util.Shape = diff --git a/web2d/src/main/javascript/Arrow.js b/web2d/src/main/javascript/Arrow.js new file mode 100644 index 00000000..e2790c21 --- /dev/null +++ b/web2d/src/main/javascript/Arrow.js @@ -0,0 +1,63 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +* +*/ + +web2d.Arrow = function(attributes) +{ + var peer = web2d.peer.Toolkit.createArrow(); + var defaultAttributes = {strokeColor:'black',strokeWidth:1,strokeStyle:'solid',strokeOpacity:1}; + for (var key in attributes) + { + defaultAttributes[key] = attributes[key]; + } + web2d.Element.call(this, peer, defaultAttributes); +}; +objects.extend(web2d.Arrow, web2d.Element); + +web2d.Arrow.prototype.getType = function() +{ + return "Arrow"; +}; + +web2d.Arrow.prototype.setFrom = function(x,y) +{ + this._peer.setFrom(x,y); +}; + +web2d.Arrow.prototype.setControlPoint = function (point) +{ + this._peer.setControlPoint(point); +}; + +web2d.Arrow.prototype.setStrokeColor = function (color) +{ + this._peer.setStrokeColor(color); +}; + +web2d.Arrow.prototype.setStrokeWidth = function(width) +{ + this._peer.setStrokeWidth(width); +}; + +web2d.Arrow.prototype.setDashed = function(isDashed, length, spacing){ + this._peer.setDashed(isDashed, length, spacing); +}; + +web2d.Arrow.prototype.reDraw = function() +{ + this._peer._redraw(); +}; diff --git a/web2d/src/main/javascript/CurvedLine.js b/web2d/src/main/javascript/CurvedLine.js index 95eb868e..aa7523eb 100644 --- a/web2d/src/main/javascript/CurvedLine.js +++ b/web2d/src/main/javascript/CurvedLine.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.CurvedLine = function(attributes) diff --git a/web2d/src/main/javascript/Element.js b/web2d/src/main/javascript/Element.js index 0f09909a..9a0d91b8 100644 --- a/web2d/src/main/javascript/Element.js +++ b/web2d/src/main/javascript/Element.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.Element = function(peer, attributes) { this._peer = peer; diff --git a/web2d/src/main/javascript/Elipse.js b/web2d/src/main/javascript/Elipse.js index 09680e7f..20348f45 100644 --- a/web2d/src/main/javascript/Elipse.js +++ b/web2d/src/main/javascript/Elipse.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.Elipse = function(attributes) diff --git a/web2d/src/main/javascript/EventDispatcher.js b/web2d/src/main/javascript/EventDispatcher.js index 7fd3fa4d..dd888213 100644 --- a/web2d/src/main/javascript/EventDispatcher.js +++ b/web2d/src/main/javascript/EventDispatcher.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.EventDispatcher = function(element) { this._listeners = []; diff --git a/web2d/src/main/javascript/Font.js b/web2d/src/main/javascript/Font.js index 08f1fe0d..f1eb7269 100644 --- a/web2d/src/main/javascript/Font.js +++ b/web2d/src/main/javascript/Font.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.Font = function(fontFamily, textPeer) { var font = "web2d.peer.Toolkit.create" + fontFamily + "Font();"; diff --git a/web2d/src/main/javascript/Group.js b/web2d/src/main/javascript/Group.js index cdfdfc09..7bcf7b9a 100644 --- a/web2d/src/main/javascript/Group.js +++ b/web2d/src/main/javascript/Group.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + /** * A group object can be used to collect shapes. */ diff --git a/web2d/src/main/javascript/Image.js b/web2d/src/main/javascript/Image.js index 81c5b742..ee489472 100644 --- a/web2d/src/main/javascript/Image.js +++ b/web2d/src/main/javascript/Image.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.Image = function(attributes) diff --git a/web2d/src/main/javascript/Line.js b/web2d/src/main/javascript/Line.js index 47df7faa..57c6c9d8 100644 --- a/web2d/src/main/javascript/Line.js +++ b/web2d/src/main/javascript/Line.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.Line = function(attributes) diff --git a/web2d/src/main/javascript/PolyLine.js b/web2d/src/main/javascript/PolyLine.js index 455f2c2c..268e42f1 100644 --- a/web2d/src/main/javascript/PolyLine.js +++ b/web2d/src/main/javascript/PolyLine.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.PolyLine = function(attributes) { var peer = web2d.peer.Toolkit.createPolyLine(); diff --git a/web2d/src/main/javascript/Rect.js b/web2d/src/main/javascript/Rect.js index e1df99f9..7ffd1b6d 100644 --- a/web2d/src/main/javascript/Rect.js +++ b/web2d/src/main/javascript/Rect.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + /** * Create a rectangle and variations of a rectangle shape. * arc must be specified to create rounded rectangles. diff --git a/web2d/src/main/javascript/Text.js b/web2d/src/main/javascript/Text.js index 63ea5654..1536f896 100644 --- a/web2d/src/main/javascript/Text.js +++ b/web2d/src/main/javascript/Text.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.Text = function(attributes) { var peer = web2d.peer.Toolkit.createText(); diff --git a/web2d/src/main/javascript/Toolkit.js b/web2d/src/main/javascript/Toolkit.js index db36e004..448b80e6 100644 --- a/web2d/src/main/javascript/Toolkit.js +++ b/web2d/src/main/javascript/Toolkit.js @@ -1,20 +1,18 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - * $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* Copyright [2011] [wisemapping] +* +* Licensed under 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. */ web2d.peer.ToolkitVML = diff --git a/web2d/src/main/javascript/Workspace.js b/web2d/src/main/javascript/Workspace.js index 74d69f21..86eb980e 100644 --- a/web2d/src/main/javascript/Workspace.js +++ b/web2d/src/main/javascript/Workspace.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.Workspace = function(attributes) { this._htmlContainer = this._createDivContainer(); diff --git a/web2d/src/main/javascript/header.js b/web2d/src/main/javascript/header.js index 1c2db9d3..d8a2f922 100644 --- a/web2d/src/main/javascript/header.js +++ b/web2d/src/main/javascript/header.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ var web2d = {}; diff --git a/web2d/src/main/javascript/peer/svg/ArialFont.js b/web2d/src/main/javascript/peer/svg/ArialFont.js index ce98e479..834606bb 100644 --- a/web2d/src/main/javascript/peer/svg/ArialFont.js +++ b/web2d/src/main/javascript/peer/svg/ArialFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.svg.ArialFont = function() { web2d.peer.svg.Font.call(this); diff --git a/web2d/src/main/javascript/peer/svg/ArrowPeer.js b/web2d/src/main/javascript/peer/svg/ArrowPeer.js new file mode 100644 index 00000000..71ff4978 --- /dev/null +++ b/web2d/src/main/javascript/peer/svg/ArrowPeer.js @@ -0,0 +1,98 @@ +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + +web2d.peer.svg.ArrowPeer = function() +{ + var svgElement = window.document.createElementNS(this.svgNamespace, 'path'); + web2d.peer.svg.ElementPeer.call(this, svgElement); + this._style={}; + this._controlPoint=new core.Point(); + this._fromPoint = new core.Point(); +}; + +objects.extend(web2d.peer.svg.ArrowPeer, web2d.peer.svg.ElementPeer); + +web2d.peer.svg.ArrowPeer.prototype.setFrom = function(x,y) +{ + this._fromPoint.x = x; + this._fromPoint.y = y; + this._redraw(); +}; + +web2d.peer.svg.ArrowPeer.prototype.setControlPoint = function (point) +{ + this._controlPoint = point; + this._redraw(); +}; + +web2d.peer.svg.ArrowPeer.prototype.setStrokeColor = function (color) +{ + this.setStroke(null,null,color, null); +}; + +web2d.peer.svg.ArrowPeer.prototype.setStrokeWidth = function(width) +{ + this.setStroke(width); +}; + +web2d.peer.svg.ArrowPeer.prototype.setDashed = function(isDashed, length, spacing){ + if(core.Utils.isDefined(isDashed) && isDashed && core.Utils.isDefined(length) && core.Utils.isDefined(spacing)){ + this._native.setAttribute("stroke-dasharray",length+","+spacing); + } else { + this._native.setAttribute("stroke-dasharray",""); + } +}; + +web2d.peer.svg.ArrowPeer.prototype._updateStyle = function() +{ + var style = ""; + for(var key in this._style){ + style+=key+":"+this._style[key]+" "; + } + this._native.setAttribute("style",style); +}; + +web2d.peer.svg.ArrowPeer.prototype._redraw = function() +{ + var x,y, xp, yp; + if(this._controlPoint.y == 0) + this._controlPoint.y=1; + var y0 = this._controlPoint.y; + var x0 = this._controlPoint.x; + var x2=x0+y0; + var y2 = y0-x0; + var x3 = x0-y0; + var y3 = y0+x0; + var m = y2/x2; + var mp = y3/x3; + var l = 6; + var pow = Math.pow; + x = (x2==0?0:Math.sqrt(pow(l,2)/(1+pow(m,2)))); + x *=Math.sign(x2); + y = (x2==0?l*Math.sign(y2):m*x); + xp = (x3==0?0:Math.sqrt(pow(l,2)/(1+pow(mp,2)))); + xp *=Math.sign(x3); + yp = (x3==0?l*Math.sign(y3):mp*xp); + + var path = "M"+this._fromPoint.x+","+this._fromPoint.y+" " + +"L"+(x+this._fromPoint.x)+","+(y+this._fromPoint.y) + +"M"+this._fromPoint.x+","+this._fromPoint.y+" " + +"L"+(xp+this._fromPoint.x)+","+(yp+this._fromPoint.y) + ; + this._native.setAttribute("d",path); +}; + diff --git a/web2d/src/main/javascript/peer/svg/CurvedLinePeer.js b/web2d/src/main/javascript/peer/svg/CurvedLinePeer.js index 40ccaf3a..60f37082 100644 --- a/web2d/src/main/javascript/peer/svg/CurvedLinePeer.js +++ b/web2d/src/main/javascript/peer/svg/CurvedLinePeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.svg.CurvedLinePeer = function() diff --git a/web2d/src/main/javascript/peer/svg/ElementPeer.js b/web2d/src/main/javascript/peer/svg/ElementPeer.js index d8e3615d..8e91a9e6 100644 --- a/web2d/src/main/javascript/peer/svg/ElementPeer.js +++ b/web2d/src/main/javascript/peer/svg/ElementPeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.svg.ElementPeer = function(svgElement) { this._native = svgElement; diff --git a/web2d/src/main/javascript/peer/svg/ElipsePeer.js b/web2d/src/main/javascript/peer/svg/ElipsePeer.js index 12998bf3..ea3c8159 100644 --- a/web2d/src/main/javascript/peer/svg/ElipsePeer.js +++ b/web2d/src/main/javascript/peer/svg/ElipsePeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.svg.ElipsePeer = function() diff --git a/web2d/src/main/javascript/peer/svg/Font.js b/web2d/src/main/javascript/peer/svg/Font.js index d441df6e..4fe0c17f 100644 --- a/web2d/src/main/javascript/peer/svg/Font.js +++ b/web2d/src/main/javascript/peer/svg/Font.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.svg.Font = function() { this._size = 10; diff --git a/web2d/src/main/javascript/peer/svg/GroupPeer.js b/web2d/src/main/javascript/peer/svg/GroupPeer.js index eef85194..c4ebcd7f 100644 --- a/web2d/src/main/javascript/peer/svg/GroupPeer.js +++ b/web2d/src/main/javascript/peer/svg/GroupPeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.svg.GroupPeer = function() diff --git a/web2d/src/main/javascript/peer/svg/ImagePeer.js b/web2d/src/main/javascript/peer/svg/ImagePeer.js index 94dae897..5342558b 100644 --- a/web2d/src/main/javascript/peer/svg/ImagePeer.js +++ b/web2d/src/main/javascript/peer/svg/ImagePeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.svg.ImagePeer = function() diff --git a/web2d/src/main/javascript/peer/svg/LinePeer.js b/web2d/src/main/javascript/peer/svg/LinePeer.js index c47994eb..8a89885c 100644 --- a/web2d/src/main/javascript/peer/svg/LinePeer.js +++ b/web2d/src/main/javascript/peer/svg/LinePeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.svg.LinePeer = function() diff --git a/web2d/src/main/javascript/peer/svg/PolyLinePeer.js b/web2d/src/main/javascript/peer/svg/PolyLinePeer.js index a0c9472f..49cc5830 100644 --- a/web2d/src/main/javascript/peer/svg/PolyLinePeer.js +++ b/web2d/src/main/javascript/peer/svg/PolyLinePeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.svg.PolyLinePeer = function() diff --git a/web2d/src/main/javascript/peer/svg/RectPeer.js b/web2d/src/main/javascript/peer/svg/RectPeer.js index 281a7152..b6fa6f8a 100644 --- a/web2d/src/main/javascript/peer/svg/RectPeer.js +++ b/web2d/src/main/javascript/peer/svg/RectPeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + /** * http://www.w3.org/TR/SVG/shapes.html#RectElement */ diff --git a/web2d/src/main/javascript/peer/svg/TahomaFont.js b/web2d/src/main/javascript/peer/svg/TahomaFont.js index e88e45f4..1ec3bd5e 100644 --- a/web2d/src/main/javascript/peer/svg/TahomaFont.js +++ b/web2d/src/main/javascript/peer/svg/TahomaFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.svg.TahomaFont = function() { web2d.peer.svg.Font.call(this); diff --git a/web2d/src/main/javascript/peer/svg/TextPeer.js b/web2d/src/main/javascript/peer/svg/TextPeer.js index 7adb0f19..4d792bba 100644 --- a/web2d/src/main/javascript/peer/svg/TextPeer.js +++ b/web2d/src/main/javascript/peer/svg/TextPeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.svg.TextPeer = function() diff --git a/web2d/src/main/javascript/peer/svg/TimesFont.js b/web2d/src/main/javascript/peer/svg/TimesFont.js index 746de059..9fb43c35 100644 --- a/web2d/src/main/javascript/peer/svg/TimesFont.js +++ b/web2d/src/main/javascript/peer/svg/TimesFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.svg.TimesFont = function() { web2d.peer.svg.Font.call(this); diff --git a/web2d/src/main/javascript/peer/svg/VerdanaFont.js b/web2d/src/main/javascript/peer/svg/VerdanaFont.js index 645cd57a..f22755c2 100644 --- a/web2d/src/main/javascript/peer/svg/VerdanaFont.js +++ b/web2d/src/main/javascript/peer/svg/VerdanaFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.svg.VerdanaFont = function() { web2d.peer.svg.Font.call(this); diff --git a/web2d/src/main/javascript/peer/svg/WorkspacePeer.js b/web2d/src/main/javascript/peer/svg/WorkspacePeer.js index de15890c..56fe83c5 100644 --- a/web2d/src/main/javascript/peer/svg/WorkspacePeer.js +++ b/web2d/src/main/javascript/peer/svg/WorkspacePeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.svg.WorkspacePeer = function(element) { this._element = element; diff --git a/web2d/src/main/javascript/peer/utils/EventUtils.js b/web2d/src/main/javascript/peer/utils/EventUtils.js index f7d67a33..d75c5840 100644 --- a/web2d/src/main/javascript/peer/utils/EventUtils.js +++ b/web2d/src/main/javascript/peer/utils/EventUtils.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.utils.EventUtils = { broadcastChangeEvent:function (elementPeer, type) diff --git a/web2d/src/main/javascript/peer/utils/TransformUtils.js b/web2d/src/main/javascript/peer/utils/TransformUtils.js index c552f39e..abb1b3e1 100644 --- a/web2d/src/main/javascript/peer/utils/TransformUtils.js +++ b/web2d/src/main/javascript/peer/utils/TransformUtils.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.utils.TransformUtil = { diff --git a/web2d/src/main/javascript/peer/vml/ArialFont.js b/web2d/src/main/javascript/peer/vml/ArialFont.js index ff9ced8a..0cb42546 100644 --- a/web2d/src/main/javascript/peer/vml/ArialFont.js +++ b/web2d/src/main/javascript/peer/vml/ArialFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.ArialFont = function() { web2d.peer.vml.Font.call(this); diff --git a/web2d/src/main/javascript/peer/vml/ElementPeer.js b/web2d/src/main/javascript/peer/vml/ElementPeer.js index 98db75d5..03bab5b7 100644 --- a/web2d/src/main/javascript/peer/vml/ElementPeer.js +++ b/web2d/src/main/javascript/peer/vml/ElementPeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.vml.ElementPeer = function(vmlElement) diff --git a/web2d/src/main/javascript/peer/vml/ElipsePeer.js b/web2d/src/main/javascript/peer/vml/ElipsePeer.js index c3290fe5..95f0fa2e 100644 --- a/web2d/src/main/javascript/peer/vml/ElipsePeer.js +++ b/web2d/src/main/javascript/peer/vml/ElipsePeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.vml.ElipsePeer = function() diff --git a/web2d/src/main/javascript/peer/vml/Font.js b/web2d/src/main/javascript/peer/vml/Font.js index 5aa2fa00..5d266daf 100644 --- a/web2d/src/main/javascript/peer/vml/Font.js +++ b/web2d/src/main/javascript/peer/vml/Font.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.Font = function() { this._size = 10; diff --git a/web2d/src/main/javascript/peer/vml/GroupPeer.js b/web2d/src/main/javascript/peer/vml/GroupPeer.js index 426651be..2aa35c7a 100644 --- a/web2d/src/main/javascript/peer/vml/GroupPeer.js +++ b/web2d/src/main/javascript/peer/vml/GroupPeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.GroupPeer = function() { var vmlElement = window.document.createElement('v:group'); diff --git a/web2d/src/main/javascript/peer/vml/ImagePeer.js b/web2d/src/main/javascript/peer/vml/ImagePeer.js index 1c917f1e..06551242 100644 --- a/web2d/src/main/javascript/peer/vml/ImagePeer.js +++ b/web2d/src/main/javascript/peer/vml/ImagePeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ web2d.peer.vml.ImagePeer = function() diff --git a/web2d/src/main/javascript/peer/vml/LinePeer.js b/web2d/src/main/javascript/peer/vml/LinePeer.js index ffe35ec7..ff41e2d0 100644 --- a/web2d/src/main/javascript/peer/vml/LinePeer.js +++ b/web2d/src/main/javascript/peer/vml/LinePeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.LinePeer = function() { var vmlElement = window.document.createElement('v:line'); diff --git a/web2d/src/main/javascript/peer/vml/PolyLinePeer.js b/web2d/src/main/javascript/peer/vml/PolyLinePeer.js index 21b07c98..20996833 100644 --- a/web2d/src/main/javascript/peer/vml/PolyLinePeer.js +++ b/web2d/src/main/javascript/peer/vml/PolyLinePeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.PolyLinePeer = function() { var vmlElement = window.document.createElement('v:polyline'); diff --git a/web2d/src/main/javascript/peer/vml/RectPeer.js b/web2d/src/main/javascript/peer/vml/RectPeer.js index dbf24f75..54ddf284 100644 --- a/web2d/src/main/javascript/peer/vml/RectPeer.js +++ b/web2d/src/main/javascript/peer/vml/RectPeer.js @@ -1,20 +1,18 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ /** diff --git a/web2d/src/main/javascript/peer/vml/TahomaFont.js b/web2d/src/main/javascript/peer/vml/TahomaFont.js index 164a3d71..0de20df5 100644 --- a/web2d/src/main/javascript/peer/vml/TahomaFont.js +++ b/web2d/src/main/javascript/peer/vml/TahomaFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.TahomaFont = function() { web2d.peer.vml.Font.call(this); diff --git a/web2d/src/main/javascript/peer/vml/TextBoxPeer.js b/web2d/src/main/javascript/peer/vml/TextBoxPeer.js index 3d4bbe65..fa1bdf51 100644 --- a/web2d/src/main/javascript/peer/vml/TextBoxPeer.js +++ b/web2d/src/main/javascript/peer/vml/TextBoxPeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.TextBoxPeer = function() { var container = window.document.createElement('v:shape'); diff --git a/web2d/src/main/javascript/peer/vml/TextPeer.js b/web2d/src/main/javascript/peer/vml/TextPeer.js index fea038c1..4a83689f 100644 --- a/web2d/src/main/javascript/peer/vml/TextPeer.js +++ b/web2d/src/main/javascript/peer/vml/TextPeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.TextPeer = function() { var container = window.document.createElement('v:shape'); diff --git a/web2d/src/main/javascript/peer/vml/TimesFont.js b/web2d/src/main/javascript/peer/vml/TimesFont.js index a21a7fdb..359ff633 100644 --- a/web2d/src/main/javascript/peer/vml/TimesFont.js +++ b/web2d/src/main/javascript/peer/vml/TimesFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.TimesFont = function() { web2d.peer.vml.Font.call(this); diff --git a/web2d/src/main/javascript/peer/vml/VerdanaFont.js b/web2d/src/main/javascript/peer/vml/VerdanaFont.js index 0a8a91e8..2fd87136 100644 --- a/web2d/src/main/javascript/peer/vml/VerdanaFont.js +++ b/web2d/src/main/javascript/peer/vml/VerdanaFont.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.VerdanaFont = function() { web2d.peer.vml.Font.call(this); diff --git a/web2d/src/main/javascript/peer/vml/WorkspacePeer.js b/web2d/src/main/javascript/peer/vml/WorkspacePeer.js index a4d12293..1f8d746b 100644 --- a/web2d/src/main/javascript/peer/vml/WorkspacePeer.js +++ b/web2d/src/main/javascript/peer/vml/WorkspacePeer.js @@ -1,22 +1,20 @@ -/* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* 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. -* -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ -*/ - +/* +* Copyright [2011] [wisemapping] +* +* Licensed under 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. +*/ + web2d.peer.vml.WorkspacePeer = function(element) { var vmlElement = window.document.createElement('v:group'); diff --git a/web2d/src/test/javascript/render/mootools.js b/web2d/src/test/javascript/render/mootools.js index 3a3803ba..85995539 100644 --- a/web2d/src/test/javascript/render/mootools.js +++ b/web2d/src/test/javascript/render/mootools.js @@ -1,2169 +1,2167 @@ /* -* Licensed to the Apache Software Foundation (ASF) under one or more -* contributor license agreements. See the NOTICE file distributed with -* this work for additional information regarding copyright ownership. -* The ASF licenses this file to You under the Apache License, Version 2.0 -* (the "License"); you may not use this file except in compliance with -* the License. You may obtain a copy of the License at +* Copyright [2011] [wisemapping] * -* http://www.apache.org/licenses/LICENSE-2.0 +* Licensed under 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 * -* 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. +* http://www.wisemapping.org/license * -* $Id: file 64488 2006-03-10 17:32:09Z paulo $ +* 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. */ -//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, , MIT Style License. - -var MooTools = {version:'1.11'}; -function $defined(obj) { - return(obj != undefined); -} -; -function $type(obj) { - if (!$defined(obj))return false; - if (obj.htmlElement)return'element'; - var type = typeof obj; - if (type == 'object' && obj.nodeName) { - switch (obj.nodeType) {case 1:return'element';case 3:return(/\S/).test(obj.nodeValue) ? 'textnode' : 'whitespace';} - } - if (type == 'object' || type == 'function') { - switch (obj.constructor) {case Array:return'array';case RegExp:return'regexp';case Class:return'class';} - if (typeof obj.length == 'number') { - if (obj.item)return'collection'; - if (obj.callee)return'arguments'; - } - } - return type; -} -; -function $merge() { - var mix = {}; - for (var i = 0; i < arguments.length; i++) { - for (var property in arguments[i]) { - var ap = arguments[i][property]; - var mp = mix[property]; - if (mp && $type(ap) == 'object' && $type(mp) == 'object')mix[property] = $merge(mp, ap); else mix[property] = ap; - } - } - return mix; -} -; -var $extend = function() { - var args = arguments; - if (!args[1])args = [this,args[0]]; - for (var property in args[1])args[0][property] = args[1][property]; - return args[0]; -}; -var $native = function() { - for (var i = 0,l = arguments.length; i < l; i++) { - arguments[i].extend = function(props) { - for (var prop in props) { - if (!this.prototype[prop])this.prototype[prop] = props[prop]; - if (!this[prop])this[prop] = $native.generic(prop); - } - }; - } -}; -$native.generic = function(prop) { - return function(bind) { - return this.prototype[prop].apply(bind, Array.prototype.slice.call(arguments, 1)); - }; -}; -$native(Function, Array, String, Number); -function $chk(obj) { - return!!(obj || obj === 0); -} -; -function $pick(obj, picked) { - return $defined(obj) ? obj : picked; -} -; -function $random(min, max) { - return Math.floor(Math.random() * (max - min + 1) + min); -} -; -function $time() { - return new Date().getTime(); -} -; -function $clear(timer) { - clearTimeout(timer); - clearInterval(timer); - return null; -} -; -var Abstract = function(obj) { - obj = obj || {}; - obj.extend = $extend; - return obj; -}; -var Window = new Abstract(window); -var Document = new Abstract(document); -document.head = document.getElementsByTagName('head')[0]; -window.xpath = !!(document.evaluate); -if (window.ActiveXObject)window.ie = window[window.XMLHttpRequest ? 'ie7' : 'ie6'] = true; else if (document.childNodes && !document.all && !navigator.taintEnabled)window.webkit = window[window.xpath ? 'webkit420' : 'webkit419'] = true; else if (document.getBoxObjectFor != null)window.gecko = true; -window.khtml = window.webkit; -Object.extend = $extend; -if (typeof HTMLElement == 'undefined') { - var HTMLElement = function() { - }; - if (window.webkit)document.createElement("iframe"); - HTMLElement.prototype = (window.webkit) ? window["[[DOMElement.prototype]]"] : {}; -} -HTMLElement.prototype.htmlElement = function() { -}; -if (window.ie6)try { - document.execCommand("BackgroundImageCache", false, true); -} catch(e) { -} -; -var Class = function(properties) { - var klass = function() { - return(arguments[0] !== null && this.initialize && $type(this.initialize) == 'function') ? this.initialize.apply(this, arguments) : this; - }; - $extend(klass, this); - klass.prototype = properties; - klass.constructor = Class; - return klass; -}; -Class.empty = function() { -}; -Class.prototype = {extend:function(properties) { - var proto = new this(null); - for (var property in properties) { - var pp = proto[property]; - proto[property] = Class.Merge(pp, properties[property]); - } - return new Class(proto); -},implement:function() { - for (var i = 0,l = arguments.length; i < l; i++)$extend(this.prototype, arguments[i]); -}}; -Class.Merge = function(previous, current) { - if (previous && previous != current) { - var type = $type(current); - if (type != $type(previous))return current; - switch (type) {case'function':var merged = function() { - this.parent = arguments.callee.parent; - return current.apply(this, arguments); - };merged.parent = previous;return merged;case'object':return $merge(previous, current);} - } - return current; -}; -var Chain = new Class({chain:function(fn) { - this.chains = this.chains || []; - this.chains.push(fn); - return this; -},callChain:function() { - if (this.chains && this.chains.length)this.chains.shift().delay(10, this); -},clearChain:function() { - this.chains = []; -}}); -var Events = new Class({addEvent:function(type, fn) { - if (fn != Class.empty) { - this.$events = this.$events || {}; - this.$events[type] = this.$events[type] || []; - this.$events[type].include(fn); - } - return this; -},fireEvent:function(type, args, delay) { - if (this.$events && this.$events[type]) { - this.$events[type].each(function(fn) { - fn.create({'bind':this,'delay':delay,'arguments':args})(); - }, this); - } - return this; -},removeEvent:function(type, fn) { - if (this.$events && this.$events[type])this.$events[type].remove(fn); - return this; -}}); -var Options = new Class({setOptions:function() { - this.options = $merge.apply(null, [this.options].extend(arguments)); - if (this.addEvent) { - for (var option in this.options) { - if ($type(this.options[option] == 'function') && (/^on[A-Z]/).test(option))this.addEvent(option, this.options[option]); - } - } - return this; -}}); -Array.extend({forEach:function(fn, bind) { - for (var i = 0,j = this.length; i < j; i++)fn.call(bind, this[i], i, this); -},filter:function(fn, bind) { - var results = []; - for (var i = 0,j = this.length; i < j; i++) { - if (fn.call(bind, this[i], i, this))results.push(this[i]); - } - return results; -},map:function(fn, bind) { - var results = []; - for (var i = 0,j = this.length; i < j; i++)results[i] = fn.call(bind, this[i], i, this); - return results; -},every:function(fn, bind) { - for (var i = 0,j = this.length; i < j; i++) { - if (!fn.call(bind, this[i], i, this))return false; - } - return true; -},some:function(fn, bind) { - for (var i = 0,j = this.length; i < j; i++) { - if (fn.call(bind, this[i], i, this))return true; - } - return false; -},indexOf:function(item, from) { - var len = this.length; - for (var i = (from < 0) ? Math.max(0, len + from) : from || 0; i < len; i++) { - if (this[i] === item)return i; - } - return-1; -},copy:function(start, length) { - start = start || 0; - if (start < 0)start = this.length + start; - length = length || (this.length - start); - var newArray = []; - for (var i = 0; i < length; i++)newArray[i] = this[start++]; - return newArray; -},remove:function(item) { - var i = 0; - var len = this.length; - while (i < len) { - if (this[i] === item) { - this.splice(i, 1); - len--; - } else { - i++; - } - } - return this; -},contains:function(item, from) { - return this.indexOf(item, from) != -1; -},associate:function(keys) { - var obj = {},length = Math.min(this.length, keys.length); - for (var i = 0; i < length; i++)obj[keys[i]] = this[i]; - return obj; -},extend:function(array) { - for (var i = 0,j = array.length; i < j; i++)this.push(array[i]); - return this; -},merge:function(array) { - for (var i = 0,l = array.length; i < l; i++)this.include(array[i]); - return this; -},include:function(item) { - if (!this.contains(item))this.push(item); - return this; -},getRandom:function() { - return this[$random(0, this.length - 1)] || null; -},getLast:function() { - return this[this.length - 1] || null; -}}); -Array.prototype.each = Array.prototype.forEach; -Array.each = Array.forEach; -function $A(array) { - return Array.copy(array); -} -; -function $each(iterable, fn, bind) { - if (iterable && typeof iterable.length == 'number' && $type(iterable) != 'object') { - Array.forEach(iterable, fn, bind); - } else { - for (var name in iterable)fn.call(bind || iterable, iterable[name], name); - } -} -; -Array.prototype.test = Array.prototype.contains; -String.extend({test:function(regex, params) { - return(($type(regex) == 'string') ? new RegExp(regex, params) : regex).test(this); -},toInt:function() { - return parseInt(this, 10); -},toFloat:function() { - return parseFloat(this); -},camelCase:function() { - return this.replace(/-\D/g, function(match) { - return match.charAt(1).toUpperCase(); - }); -},hyphenate:function() { - return this.replace(/\w[A-Z]/g, function(match) { - return(match.charAt(0) + '-' + match.charAt(1).toLowerCase()); - }); -},capitalize:function() { - return this.replace(/\b[a-z]/g, function(match) { - return match.toUpperCase(); - }); -},trim:function() { - return this.replace(/^\s+|\s+$/g, ''); -},clean:function() { - return this.replace(/\s{2,}/g, ' ').trim(); -},rgbToHex:function(array) { - var rgb = this.match(/\d{1,3}/g); - return(rgb) ? rgb.rgbToHex(array) : false; -},hexToRgb:function(array) { - var hex = this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); - return(hex) ? hex.slice(1).hexToRgb(array) : false; -},contains:function(string, s) { - return(s) ? (s + this + s).indexOf(s + string + s) > -1 : this.indexOf(string) > -1; -},escapeRegExp:function() { - return this.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1'); -}}); -Array.extend({rgbToHex:function(array) { - if (this.length < 3)return false; - if (this.length == 4 && this[3] == 0 && !array)return'transparent'; - var hex = []; - for (var i = 0; i < 3; i++) { - var bit = (this[i] - 0).toString(16); - hex.push((bit.length == 1) ? '0' + bit : bit); - } - return array ? hex : '#' + hex.join(''); -},hexToRgb:function(array) { - if (this.length != 3)return false; - var rgb = []; - for (var i = 0; i < 3; i++) { - rgb.push(parseInt((this[i].length == 1) ? this[i] + this[i] : this[i], 16)); - } - return array ? rgb : 'rgb(' + rgb.join(',') + ')'; -}}); -Function.extend({create:function(options) { - var fn = this; - options = $merge({'bind':fn,'event':false,'arguments':null,'delay':false,'periodical':false,'attempt':false}, options); - if ($chk(options.arguments) && $type(options.arguments) != 'array')options.arguments = [options.arguments]; - return function(event) { - var args; - if (options.event) { - event = event || window.event; - args = [(options.event === true) ? event : new options.event(event)]; - if (options.arguments)args.extend(options.arguments); - } - else args = options.arguments || arguments; - var returns = function() { - return fn.apply($pick(options.bind, fn), args); - }; - if (options.delay)return setTimeout(returns, options.delay); - if (options.periodical)return setInterval(returns, options.periodical); - if (options.attempt)try { - return returns(); - } catch(err) { - return false; - } - ; - return returns(); - }; -},pass:function(args, bind) { - return this.create({'arguments':args,'bind':bind}); -},attempt:function(args, bind) { - return this.create({'arguments':args,'bind':bind,'attempt':true})(); -},bind:function(bind, args) { - return this.create({'bind':bind,'arguments':args}); -},bindAsEventListener:function(bind, args) { - return this.create({'bind':bind,'event':true,'arguments':args}); -},delay:function(delay, bind, args) { - return this.create({'delay':delay,'bind':bind,'arguments':args})(); -},periodical:function(interval, bind, args) { - return this.create({'periodical':interval,'bind':bind,'arguments':args})(); -}}); -Number.extend({toInt:function() { - return parseInt(this); -},toFloat:function() { - return parseFloat(this); -},limit:function(min, max) { - return Math.min(max, Math.max(min, this)); -},round:function(precision) { - precision = Math.pow(10, precision || 0); - return Math.round(this * precision) / precision; -},times:function(fn) { - for (var i = 0; i < this; i++)fn(i); -}}); -var Element = new Class({initialize:function(el, props) { - if ($type(el) == 'string') { - if (window.ie && props && (props.name || props.type)) { - var name = (props.name) ? ' name="' + props.name + '"' : ''; - var type = (props.type) ? ' type="' + props.type + '"' : ''; - delete props.name; - delete props.type; - el = '<' + el + name + type + '>'; - } - el = document.createElement(el); - } - el = $(el); - return(!props || !el) ? el : el.set(props); -}}); -var Elements = new Class({initialize:function(elements) { - return(elements) ? $extend(elements, this) : this; -}}); -Elements.extend = function(props) { - for (var prop in props) { - this.prototype[prop] = props[prop]; - this[prop] = $native.generic(prop); - } -}; -function $(el) { - if (!el)return null; - if (el.htmlElement)return Garbage.collect(el); - if ([window,document].contains(el))return el; - var type = $type(el); - if (type == 'string') { - el = document.getElementById(el); - type = (el) ? 'element' : false; - } - if (type != 'element')return null; - if (el.htmlElement)return Garbage.collect(el); - if (['object','embed'].contains(el.tagName.toLowerCase()))return el; - $extend(el, Element.prototype); - el.htmlElement = function() { - }; - return Garbage.collect(el); -} -; -document.getElementsBySelector = document.getElementsByTagName; -function $$() { - var elements = []; - for (var i = 0,j = arguments.length; i < j; i++) { - var selector = arguments[i]; - switch ($type(selector)) {case'element':elements.push(selector);case'boolean':break;case false:break;case'string':selector = document.getElementsBySelector(selector, true);default:elements.extend(selector);} - } - return $$.unique(elements); -} -; -$$.unique = function(array) { - var elements = []; - for (var i = 0,l = array.length; i < l; i++) { - if (array[i].$included)continue; - var element = $(array[i]); - if (element && !element.$included) { - element.$included = true; - elements.push(element); - } - } - for (var n = 0,d = elements.length; n < d; n++)elements[n].$included = null; - return new Elements(elements); -}; -Elements.Multi = function(property) { - return function() { - var args = arguments; - var items = []; - var elements = true; - for (var i = 0,j = this.length,returns; i < j; i++) { - returns = this[i][property].apply(this[i], args); - if ($type(returns) != 'element')elements = false; - items.push(returns); - } - ; - return(elements) ? $$.unique(items) : items; - }; -}; -Element.extend = function(properties) { - for (var property in properties) { - HTMLElement.prototype[property] = properties[property]; - Element.prototype[property] = properties[property]; - Element[property] = $native.generic(property); - var elementsProperty = (Array.prototype[property]) ? property + 'Elements' : property; - Elements.prototype[elementsProperty] = Elements.Multi(property); - } -}; -Element.extend({set:function(props) { - for (var prop in props) { - var val = props[prop]; - switch (prop) {case'styles':this.setStyles(val);break;case'events':if (this.addEvents)this.addEvents(val);break;case'properties':this.setProperties(val);break;default:this.setProperty(prop, val);} - } - return this; -},inject:function(el, where) { - el = $(el); - switch (where) {case'before':el.parentNode.insertBefore(this, el);break;case'after':var next = el.getNext();if (!next)el.parentNode.appendChild(this); else el.parentNode.insertBefore(this, next);break;case'top':var first = el.firstChild;if (first) { - el.insertBefore(this, first); - break; - } - default:el.appendChild(this);} - return this; -},injectBefore:function(el) { - return this.inject(el, 'before'); -},injectAfter:function(el) { - return this.inject(el, 'after'); -},injectInside:function(el) { - return this.inject(el, 'bottom'); -},injectTop:function(el) { - return this.inject(el, 'top'); -},adopt:function() { - var elements = []; - $each(arguments, function(argument) { - elements = elements.concat(argument); - }); - $$(elements).inject(this); - return this; -},remove:function() { - return this.parentNode.removeChild(this); -},clone:function(contents) { - var el = $(this.cloneNode(contents !== false)); - if (!el.$events)return el; - el.$events = {}; - for (var type in this.$events)el.$events[type] = {'keys':$A(this.$events[type].keys),'values':$A(this.$events[type].values)}; - return el.removeEvents(); -},replaceWith:function(el) { - el = $(el); - this.parentNode.replaceChild(el, this); - return el; -},appendText:function(text) { - this.appendChild(document.createTextNode(text)); - return this; -},hasClass:function(className) { - return this.className.contains(className, ' '); -},addClass:function(className) { - if (!this.hasClass(className))this.className = (this.className + ' ' + className).clean(); - return this; -},removeClass:function(className) { - this.className = this.className.replace(new RegExp('(^|\\s)' + className + '(?:\\s|$)'), '$1').clean(); - return this; -},toggleClass:function(className) { - return this.hasClass(className) ? this.removeClass(className) : this.addClass(className); -},setStyle:function(property, value) { - switch (property) {case'opacity':return this.setOpacity(parseFloat(value));case'float':property = (window.ie) ? 'styleFloat' : 'cssFloat';} - property = property.camelCase(); - switch ($type(value)) {case'number':if (!['zIndex','zoom'].contains(property))value += 'px';break;case'array':value = 'rgb(' + value.join(',') + ')';} - this.style[property] = value; - return this; -},setStyles:function(source) { - switch ($type(source)) {case'object':Element.setMany(this, 'setStyle', source);break;case'string':this.style.cssText = source;} - return this; -},setOpacity:function(opacity) { - if (opacity == 0) { - if (this.style.visibility != "hidden")this.style.visibility = "hidden"; - } else { - if (this.style.visibility != "visible")this.style.visibility = "visible"; - } - if (!this.currentStyle || !this.currentStyle.hasLayout)this.style.zoom = 1; - if (window.ie)this.style.filter = (opacity == 1) ? '' : "alpha(opacity=" + opacity * 100 + ")"; - this.style.opacity = this.$tmp.opacity = opacity; - return this; -},getStyle:function(property) { - property = property.camelCase(); - var result = this.style[property]; - if (!$chk(result)) { - if (property == 'opacity')return this.$tmp.opacity; - result = []; - for (var style in Element.Styles) { - if (property == style) { - Element.Styles[style].each(function(s) { - var style = this.getStyle(s); - result.push(parseInt(style) ? style : '0px'); - }, this); - if (property == 'border') { - var every = result.every(function(bit) { - return(bit == result[0]); - }); - return(every) ? result[0] : false; - } - return result.join(' '); - } - } - if (property.contains('border')) { - if (Element.Styles.border.contains(property)) { - return['Width','Style','Color'].map(function(p) { - return this.getStyle(property + p); - }, this).join(' '); - } else if (Element.borderShort.contains(property)) { - return['Top','Right','Bottom','Left'].map(function(p) { - return this.getStyle('border' + p + property.replace('border', '')); - }, this).join(' '); - } - } - if (document.defaultView)result = document.defaultView.getComputedStyle(this, null).getPropertyValue(property.hyphenate()); else if (this.currentStyle)result = this.currentStyle[property]; - } - if (window.ie)result = Element.fixStyle(property, result, this); - if (result && property.test(/color/i) && result.contains('rgb')) { - return result.split('rgb').splice(1, 4).map(function(color) { - return color.rgbToHex(); - }).join(' '); - } - return result; -},getStyles:function() { - return Element.getMany(this, 'getStyle', arguments); -},walk:function(brother, start) { - brother += 'Sibling'; - var el = (start) ? this[start] : this[brother]; - while (el && $type(el) != 'element')el = el[brother]; - return $(el); -},getPrevious:function() { - return this.walk('previous'); -},getNext:function() { - return this.walk('next'); -},getFirst:function() { - return this.walk('next', 'firstChild'); -},getLast:function() { - return this.walk('previous', 'lastChild'); -},getParent:function() { - return $(this.parentNode); -},getChildren:function() { - return $$(this.childNodes); -},hasChild:function(el) { - return!!$A(this.getElementsByTagName('*')).contains(el); -},getProperty:function(property) { - var index = Element.Properties[property]; - if (index)return this[index]; - var flag = Element.PropertiesIFlag[property] || 0; - if (!window.ie || flag)return this.getAttribute(property, flag); - var node = this.attributes[property]; - return(node) ? node.nodeValue : null; -},removeProperty:function(property) { - var index = Element.Properties[property]; - if (index)this[index] = ''; else this.removeAttribute(property); - return this; -},getProperties:function() { - return Element.getMany(this, 'getProperty', arguments); -},setProperty:function(property, value) { - var index = Element.Properties[property]; - if (index)this[index] = value; else this.setAttribute(property, value); - return this; -},setProperties:function(source) { - return Element.setMany(this, 'setProperty', source); -},setHTML:function() { - this.innerHTML = $A(arguments).join(''); - return this; -},setText:function(text) { - var tag = this.getTag(); - if (['style','script'].contains(tag)) { - if (window.ie) { - if (tag == 'style')this.styleSheet.cssText = text; else if (tag == 'script')this.setProperty('text', text); - return this; - } else { - this.removeChild(this.firstChild); - return this.appendText(text); - } - } - this[$defined(this.innerText) ? 'innerText' : 'textContent'] = text; - return this; -},getText:function() { - var tag = this.getTag(); - if (['style','script'].contains(tag)) { - if (window.ie) { - if (tag == 'style')return this.styleSheet.cssText; else if (tag == 'script')return this.getProperty('text'); - } else { - return this.innerHTML; - } - } - return($pick(this.innerText, this.textContent)); -},getTag:function() { - return this.tagName.toLowerCase(); -},empty:function() { - Garbage.trash(this.getElementsByTagName('*')); - return this.setHTML(''); -}}); -Element.fixStyle = function(property, result, element) { - if ($chk(parseInt(result)))return result; - if (['height','width'].contains(property)) { - var values = (property == 'width') ? ['left','right'] : ['top','bottom']; - var size = 0; - values.each(function(value) { - size += element.getStyle('border-' + value + '-width').toInt() + element.getStyle('padding-' + value).toInt(); - }); - return element['offset' + property.capitalize()] - size + 'px'; - } else if (property.test(/border(.+)Width|margin|padding/)) { - return'0px'; - } - return result; -}; -Element.Styles = {'border':[],'padding':[],'margin':[]}; -['Top','Right','Bottom','Left'].each(function(direction) { - for (var style in Element.Styles)Element.Styles[style].push(style + direction); -}); -Element.borderShort = ['borderWidth','borderStyle','borderColor']; -Element.getMany = function(el, method, keys) { - var result = {}; - $each(keys, function(key) { - result[key] = el[method](key); - }); - return result; -}; -Element.setMany = function(el, method, pairs) { - for (var key in pairs)el[method](key, pairs[key]); - return el; -}; -Element.Properties = new Abstract({'class':'className','for':'htmlFor','colspan':'colSpan','rowspan':'rowSpan','accesskey':'accessKey','tabindex':'tabIndex','maxlength':'maxLength','readonly':'readOnly','frameborder':'frameBorder','value':'value','disabled':'disabled','checked':'checked','multiple':'multiple','selected':'selected'}); -Element.PropertiesIFlag = {'href':2,'src':2}; -Element.Methods = {Listeners:{addListener:function(type, fn) { - if (this.addEventListener)this.addEventListener(type, fn, false); else this.attachEvent('on' + type, fn); - return this; -},removeListener:function(type, fn) { - if (this.removeEventListener)this.removeEventListener(type, fn, false); else this.detachEvent('on' + type, fn); - return this; -}}}; -window.extend(Element.Methods.Listeners); -document.extend(Element.Methods.Listeners); -Element.extend(Element.Methods.Listeners); -var Garbage = {elements:[],collect:function(el) { - if (!el.$tmp) { - Garbage.elements.push(el); - el.$tmp = {'opacity':1}; - } - return el; -},trash:function(elements) { - for (var i = 0,j = elements.length,el; i < j; i++) { - if (!(el = elements[i]) || !el.$tmp)continue; - if (el.$events)el.fireEvent('trash').removeEvents(); - for (var p in el.$tmp)el.$tmp[p] = null; - for (var d in Element.prototype)el[d] = null; - Garbage.elements[Garbage.elements.indexOf(el)] = null; - el.htmlElement = el.$tmp = el = null; - } - Garbage.elements.remove(null); -},empty:function() { - Garbage.collect(window); - Garbage.collect(document); - Garbage.trash(Garbage.elements); -}}; -window.addListener('beforeunload', function() { - window.addListener('unload', Garbage.empty); - if (window.ie)window.addListener('unload', CollectGarbage); -}); -var Event = new Class({initialize:function(event) { - if (event && event.$extended)return event; - this.$extended = true; - event = event || window.event; - this.event = event; - this.type = event.type; - this.target = event.target || event.srcElement; - if (this.target.nodeType == 3)this.target = this.target.parentNode; - this.shift = event.shiftKey; - this.control = event.ctrlKey; - this.alt = event.altKey; - this.meta = event.metaKey; - if (['DOMMouseScroll','mousewheel'].contains(this.type)) { - this.wheel = (event.wheelDelta) ? event.wheelDelta / 120 : -(event.detail || 0) / 3; - } else if (this.type.contains('key')) { - this.code = event.which || event.keyCode; - for (var name in Event.keys) { - if (Event.keys[name] == this.code) { - this.key = name; - break; - } - } - if (this.type == 'keydown') { - var fKey = this.code - 111; - if (fKey > 0 && fKey < 13)this.key = 'f' + fKey; - } - this.key = this.key || String.fromCharCode(this.code).toLowerCase(); - } else if (this.type.test(/(click|mouse|menu)/)) { - this.page = {'x':event.pageX || event.clientX + document.documentElement.scrollLeft,'y':event.pageY || event.clientY + document.documentElement.scrollTop}; - this.client = {'x':event.pageX ? event.pageX - window.pageXOffset : event.clientX,'y':event.pageY ? event.pageY - window.pageYOffset : event.clientY}; - this.rightClick = (event.which == 3) || (event.button == 2); - switch (this.type) {case'mouseover':this.relatedTarget = event.relatedTarget || event.fromElement;break;case'mouseout':this.relatedTarget = event.relatedTarget || event.toElement;} - this.fixRelatedTarget(); - } - return this; -},stop:function() { - return this.stopPropagation().preventDefault(); -},stopPropagation:function() { - if (this.event.stopPropagation)this.event.stopPropagation(); else this.event.cancelBubble = true; - return this; -},preventDefault:function() { - if (this.event.preventDefault)this.event.preventDefault(); else this.event.returnValue = false; - return this; -}}); -Event.fix = {relatedTarget:function() { - if (this.relatedTarget && this.relatedTarget.nodeType == 3)this.relatedTarget = this.relatedTarget.parentNode; -},relatedTargetGecko:function() { - try { - Event.fix.relatedTarget.call(this); - } catch(e) { - this.relatedTarget = this.target; - } -}}; -Event.prototype.fixRelatedTarget = (window.gecko) ? Event.fix.relatedTargetGecko : Event.fix.relatedTarget; -Event.keys = new Abstract({'enter':13,'up':38,'down':40,'left':37,'right':39,'esc':27,'space':32,'backspace':8,'tab':9,'delete':46}); -Element.Methods.Events = {addEvent:function(type, fn) { - this.$events = this.$events || {}; - this.$events[type] = this.$events[type] || {'keys':[],'values':[]}; - if (this.$events[type].keys.contains(fn))return this; - this.$events[type].keys.push(fn); - var realType = type; - var custom = Element.Events[type]; - if (custom) { - if (custom.add)custom.add.call(this, fn); - if (custom.map)fn = custom.map; - if (custom.type)realType = custom.type; - } - if (!this.addEventListener)fn = fn.create({'bind':this,'event':true}); - this.$events[type].values.push(fn); - return(Element.NativeEvents.contains(realType)) ? this.addListener(realType, fn) : this; -},removeEvent:function(type, fn) { - if (!this.$events || !this.$events[type])return this; - var pos = this.$events[type].keys.indexOf(fn); - if (pos == -1)return this; - var key = this.$events[type].keys.splice(pos, 1)[0]; - var value = this.$events[type].values.splice(pos, 1)[0]; - var custom = Element.Events[type]; - if (custom) { - if (custom.remove)custom.remove.call(this, fn); - if (custom.type)type = custom.type; - } - return(Element.NativeEvents.contains(type)) ? this.removeListener(type, value) : this; -},addEvents:function(source) { - return Element.setMany(this, 'addEvent', source); -},removeEvents:function(type) { - if (!this.$events)return this; - if (!type) { - for (var evType in this.$events)this.removeEvents(evType); - this.$events = null; - } else if (this.$events[type]) { - this.$events[type].keys.each(function(fn) { - this.removeEvent(type, fn); - }, this); - this.$events[type] = null; - } - return this; -},fireEvent:function(type, args, delay) { - if (this.$events && this.$events[type]) { - this.$events[type].keys.each(function(fn) { - fn.create({'bind':this,'delay':delay,'arguments':args})(); - }, this); - } - return this; -},cloneEvents:function(from, type) { - if (!from.$events)return this; - if (!type) { - for (var evType in from.$events)this.cloneEvents(from, evType); - } else if (from.$events[type]) { - from.$events[type].keys.each(function(fn) { - this.addEvent(type, fn); - }, this); - } - return this; -}}; -window.extend(Element.Methods.Events); -document.extend(Element.Methods.Events); -Element.extend(Element.Methods.Events); -Element.Events = new Abstract({'mouseenter':{type:'mouseover',map:function(event) { - event = new Event(event); - if (event.relatedTarget != this && !this.hasChild(event.relatedTarget))this.fireEvent('mouseenter', event); -}},'mouseleave':{type:'mouseout',map:function(event) { - event = new Event(event); - if (event.relatedTarget != this && !this.hasChild(event.relatedTarget))this.fireEvent('mouseleave', event); -}},'mousewheel':{type:(window.gecko) ? 'DOMMouseScroll' : 'mousewheel'}}); -Element.NativeEvents = ['click','dblclick','mouseup','mousedown','mousewheel','DOMMouseScroll','mouseover','mouseout','mousemove','keydown','keypress','keyup','load','unload','beforeunload','resize','move','focus','blur','change','submit','reset','select','error','abort','contextmenu','scroll']; -Function.extend({bindWithEvent:function(bind, args) { - return this.create({'bind':bind,'arguments':args,'event':Event}); -}}); -Elements.extend({filterByTag:function(tag) { - return new Elements(this.filter(function(el) { - return(Element.getTag(el) == tag); - })); -},filterByClass:function(className, nocash) { - var elements = this.filter(function(el) { - return(el.className && el.className.contains(className, ' ')); - }); - return(nocash) ? elements : new Elements(elements); -},filterById:function(id, nocash) { - var elements = this.filter(function(el) { - return(el.id == id); - }); - return(nocash) ? elements : new Elements(elements); -},filterByAttribute:function(name, operator, value, nocash) { - var elements = this.filter(function(el) { - var current = Element.getProperty(el, name); - if (!current)return false; - if (!operator)return true; - switch (operator) {case'=':return(current == value);case'*=':return(current.contains(value));case'^=':return(current.substr(0, value.length) == value);case'$=':return(current.substr(current.length - value.length) == value);case'!=':return(current != value);case'~=':return current.contains(value, ' ');} - return false; - }); - return(nocash) ? elements : new Elements(elements); -}}); -function $E(selector, filter) { - return($(filter) || document).getElement(selector); -} -; -function $ES(selector, filter) { - return($(filter) || document).getElementsBySelector(selector); -} -; -$$.shared = {'regexp':/^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/,'xpath':{getParam:function(items, context, param, i) { - var temp = [context.namespaceURI ? 'xhtml:' : '',param[1]]; - if (param[2])temp.push('[@id="', param[2], '"]'); - if (param[3])temp.push('[contains(concat(" ", @class, " "), " ', param[3], ' ")]'); - if (param[4]) { - if (param[5] && param[6]) { - switch (param[5]) {case'*=':temp.push('[contains(@', param[4], ', "', param[6], '")]');break;case'^=':temp.push('[starts-with(@', param[4], ', "', param[6], '")]');break;case'$=':temp.push('[substring(@', param[4], ', string-length(@', param[4], ') - ', param[6].length, ' + 1) = "', param[6], '"]');break;case'=':temp.push('[@', param[4], '="', param[6], '"]');break;case'!=':temp.push('[@', param[4], '!="', param[6], '"]');} - } else { - temp.push('[@', param[4], ']'); - } - } - items.push(temp.join('')); - return items; -},getItems:function(items, context, nocash) { - var elements = []; - var xpath = document.evaluate('.//' + items.join('//'), context, $$.shared.resolver, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); - for (var i = 0,j = xpath.snapshotLength; i < j; i++)elements.push(xpath.snapshotItem(i)); - return(nocash) ? elements : new Elements(elements.map($)); -}},'normal':{getParam:function(items, context, param, i) { - if (i == 0) { - if (param[2]) { - var el = context.getElementById(param[2]); - if (!el || ((param[1] != '*') && (Element.getTag(el) != param[1])))return false; - items = [el]; - } else { - items = $A(context.getElementsByTagName(param[1])); - } - } else { - items = $$.shared.getElementsByTagName(items, param[1]); - if (param[2])items = Elements.filterById(items, param[2], true); - } - if (param[3])items = Elements.filterByClass(items, param[3], true); - if (param[4])items = Elements.filterByAttribute(items, param[4], param[5], param[6], true); - return items; -},getItems:function(items, context, nocash) { - return(nocash) ? items : $$.unique(items); -}},resolver:function(prefix) { - return(prefix == 'xhtml') ? 'http://www.w3.org/1999/xhtml' : false; -},getElementsByTagName:function(context, tagName) { - var found = []; - for (var i = 0,j = context.length; i < j; i++)found.extend(context[i].getElementsByTagName(tagName)); - return found; -}}; -$$.shared.method = (window.xpath) ? 'xpath' : 'normal'; -Element.Methods.Dom = {getElements:function(selector, nocash) { - var items = []; - selector = selector.trim().split(' '); - for (var i = 0,j = selector.length; i < j; i++) { - var sel = selector[i]; - var param = sel.match($$.shared.regexp); - if (!param)break; - param[1] = param[1] || '*'; - var temp = $$.shared[$$.shared.method].getParam(items, this, param, i); - if (!temp)break; - items = temp; - } - return $$.shared[$$.shared.method].getItems(items, this, nocash); -},getElement:function(selector) { - return $(this.getElements(selector, true)[0] || false); -},getElementsBySelector:function(selector, nocash) { - var elements = []; - selector = selector.split(','); - for (var i = 0,j = selector.length; i < j; i++)elements = elements.concat(this.getElements(selector[i], true)); - return(nocash) ? elements : $$.unique(elements); -}}; -Element.extend({getElementById:function(id) { - var el = document.getElementById(id); - if (!el)return false; - for (var parent = el.parentNode; parent != this; parent = parent.parentNode) { - if (!parent)return false; - } - return el; -},getElementsByClassName:function(className) { - return this.getElements('.' + className); -}}); -document.extend(Element.Methods.Dom); -Element.extend(Element.Methods.Dom); -Element.extend({getValue:function() { - switch (this.getTag()) {case'select':var values = [];$each(this.options, function(option) { - if (option.selected)values.push($pick(option.value, option.text)); - });return(this.multiple) ? values : values[0];case'input':if (!(this.checked && ['checkbox','radio'].contains(this.type)) && !['hidden','text','password'].contains(this.type))break;case'textarea':return this.value;} - return false; -},getFormElements:function() { - return $$(this.getElementsByTagName('input'), this.getElementsByTagName('select'), this.getElementsByTagName('textarea')); -},toQueryString:function() { - var queryString = []; - this.getFormElements().each(function(el) { - var name = el.name; - var value = el.getValue(); - if (value === false || !name || el.disabled)return; - var qs = function(val) { - queryString.push(name + '=' + encodeURIComponent(val)); - }; - if ($type(value) == 'array')value.each(qs); else qs(value); - }); - return queryString.join('&'); -}}); -Element.extend({scrollTo:function(x, y) { - this.scrollLeft = x; - this.scrollTop = y; -},getSize:function() { - return{'scroll':{'x':this.scrollLeft,'y':this.scrollTop},'size':{'x':this.offsetWidth,'y':this.offsetHeight},'scrollSize':{'x':this.scrollWidth,'y':this.scrollHeight}}; -},getPosition:function(overflown) { - overflown = overflown || []; - var el = this,left = 0,top = 0; - do{ - left += el.offsetLeft || 0; - top += el.offsetTop || 0; - el = el.offsetParent; - } while (el); - overflown.each(function(element) { - left -= element.scrollLeft || 0; - top -= element.scrollTop || 0; - }); - return{'x':left,'y':top}; -},getTop:function(overflown) { - return this.getPosition(overflown).y; -},getLeft:function(overflown) { - return this.getPosition(overflown).x; -},getCoordinates:function(overflown) { - var position = this.getPosition(overflown); - var obj = {'width':this.offsetWidth,'height':this.offsetHeight,'left':position.x,'top':position.y}; - obj.right = obj.left + obj.width; - obj.bottom = obj.top + obj.height; - return obj; -}}); -Element.Events.domready = {add:function(fn) { - if (window.loaded) { - fn.call(this); - return; - } - var domReady = function() { - if (window.loaded)return; - window.loaded = true; - window.timer = $clear(window.timer); - this.fireEvent('domready'); - }.bind(this); - if (document.readyState && window.webkit) { - window.timer = function() { - if (['loaded','complete'].contains(document.readyState))domReady(); - }.periodical(50); - } else if (document.readyState && window.ie) { - if (!$('ie_ready')) { - var src = (window.location.protocol == 'https:') ? '://0' : 'javascript:void(0)'; - document.write('