BrowserTrack

Inherits: Base Track
See also: Data Track

Configuration Options

		// Defaults shown
		var params = {
		
			// Config options inherited from BaseTrack
			id           : Ext.id(),          // a unique ID for the track, if not provided then one will be automatically assigned
			name         : 'Track',           // the name of the track, used in the track selector tree and as the track title
			path         : '',                // path used to position the track in the track selector tree, eg /All Tracks/My Track
			minHeight    : 40,                // the minimum height of the track (if resizable)
			maxHeight    : 1000,              // the maximum height of the track (if resizable)
			height       : 40,                // the height of the track when it is first created
			resizable    : true,              // allow the track to be vertically resized by the user
			showControls : false,             // show the track's controls when it is first created
			cls          : 'AJ_track',        // class name to apply to the div that contains the track
			iconCls      : 'silk_bricks',     // class name to use for the track's icon

			// Config options specific to BrowserTrack
			enableMenu   : true,              // enable the custom right-click context menu
			autoResize   : false,             // automatically resize the track to fit its content
			autoScroll   : true,              // ???
			minCache     : 100,               // the minimum size that a cache is allowed to shrink to
			cache        : 3 * screen.width,  // number of pixels (width) to cache in the browser by default
			maxCache     : 20 * screen.width, // the maximum size that a cache is allowed to grow to
			scaler       : 0.5,               // default starting position of the scaler control (must be between 0.0 and 1.0)
			dragMode     : 'browse'           // default dragMode for the track
		};
	

Zoom Categories

A BrowserTrack provides default limits to zoom levels, but these may be overriden by subclasses.

		//Zoom policies
		var policies = [
		
			//Only one policy is provided by default
			{
				index  : 0,
				min    : 1/100,
				max    : 1000/1,
				bases  : 1,
				pixels : 1,
				cache  : 1000000
			}
		];
	

Requests & Responses

Request Response Description
AD.SyndicationRequest AD.SyndicationResponse Syndicate the data service that provides data for this track
* AD = AnnoJ.Datatypes

Code

License: Creative commons (some rights reserved)
Source: minified.js | full.js
* Please report bugs to the most recently listed engineer
VersionEngineer(s)Message
2008-May-27tontij01(at)student.uwa.edu.auFirst formal release with Anno-J v1.0