1// $Id = DriveFile.js,v 1.12 2010-01-02 09 =45 =14 gaudenz Exp $ 2// Copyright (c) 2006-2014, JGraph Ltd 3/** 4 * Constructs a new point for the optional x and y coordinates. If no 5 * coordinates are given, then the default values for <x> and <y> are used. 6 * @constructor 7 * @class Implements a basic 2D point. Known subclassers = {@link mxRectangle}. 8 * @param {number} x X-coordinate of the point. 9 * @param {number} y Y-coordinate of the point. 10 */ 11LocalLibrary = function(ui, data, title) 12{ 13 LocalFile.call(this, ui, data, title); 14}; 15 16//Extends mxEventSource 17mxUtils.extend(LocalLibrary, LocalFile); 18 19/** 20 * Translates this point by the given vector. 21 * 22 * @param {number} dx X-coordinate of the translation. 23 * @param {number} dy Y-coordinate of the translation. 24 */ 25LocalLibrary.prototype.getHash = function() 26{ 27 return 'F' + this.getTitle(); 28}; 29 30/** 31 * Translates this point by the given vector. 32 * 33 * @param {number} dx X-coordinate of the translation. 34 * @param {number} dy Y-coordinate of the translation. 35 */ 36LocalLibrary.prototype.isAutosave = function() 37{ 38 return false; 39}; 40 41/** 42 * Translates this point by the given vector. 43 * 44 * @param {number} dx X-coordinate of the translation. 45 * @param {number} dy Y-coordinate of the translation. 46 */ 47LocalLibrary.prototype.saveAs = function(title, success, error) 48{ 49 this.saveFile(title, false, success, error); 50}; 51 52/** 53 * Translates this point by the given vector. 54 * 55 * @param {number} dx X-coordinate of the translation. 56 * @param {number} dy Y-coordinate of the translation. 57 */ 58LocalLibrary.prototype.updateFileData = function() 59{ 60 // Do nothing 61}; 62 63/** 64 * Returns the location as a new object. 65 * @type mx.Point 66 */ 67LocalLibrary.prototype.open = function() 68{ 69 // Do nothing - this should never be called 70}; 71