Class Index | File Index

Classes


Class JBrowse.Model.TrackMetaData


Defined in: TrackMetaData.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Data store for track metadata, supporting faceted (parameterized) searching.
Method Summary
Method Attributes Method Name and Description
 
 
containsValue(item, attribute, value)
 
 
 
Get the number of items that matched the most recent query.
 
getFacetCounts(facetName)
 
getFacetNames(callback)
Get an array of the text names of the facets that are defined in this track metadata.
 
getFacetStats(facetName)
Get statistics about the facet with the given name.
 
getFacetValues(facetName)
Get an Array of the distinct values for a given facet name.
 
 
 
 
 
 
getValue(i, attr, defaultValue)
 
getValues(i, attr)
 
hasAttribute(item, attr)
 
isItem(item)
 
 
loadItem(args)
 
Event hook called after a fetch has been successfully completed on this store.
 
onReady(scope, func)
Class Detail
JBrowse.Model.TrackMetaData()
Data store for track metadata, supporting faceted (parameterized) searching. Keeps all of the track metadata, and the indexes thereof, in memory.
Parameters:
args.trackConfigs
{Array} array of track configuration
args.indexFacets
{Function|Array|String}
args.onReady
{Function}
args.metadataStores
{Array[dojox.data]}
Method Detail
close()

containsValue(item, attribute, value)
Parameters:
item
attribute
value

fetchItemByIdentity(id)
Parameters:
id

getAttributes(item)
Parameters:
item

{Number} getCount()
Get the number of items that matched the most recent query.
Returns:
{Number} the item count, or undefined if there has not been any query so far.

{Object} getFacetCounts(facetName)
Parameters:
facetName
{String} facet name
Returns:
{Object}

getFacetNames(callback)
Get an array of the text names of the facets that are defined in this track metadata.
Parameters:
callback
{Function} called as callback( [facet,facet,...] )

{Object} getFacetStats(facetName)
Get statistics about the facet with the given name.
Parameters:
facetName
Returns:
{Object} as: { itemCount: ##, bucketCount: ##, avgBucketSize: ## }

{Array} getFacetValues(facetName)
Get an Array of the distinct values for a given facet name.
Parameters:
facetName
{String} the facet name
Returns:
{Array} distinct values for that facet

getFeatures()

getIdentity(i)
Parameters:
i

getIdentityAttributes()

getLabel(i)
Parameters:
i

getLabelAttributes(i)
Parameters:
i

getValue(i, attr, defaultValue)
Parameters:
i
attr
defaultValue

getValues(i, attr)
Parameters:
i
attr

hasAttribute(item, attr)
Parameters:
item
attr

isItem(item)
Parameters:
item

isItemLoaded()

loadItem(args)
Parameters:
args

onFetchSuccess()
Event hook called after a fetch has been successfully completed on this store.

onReady(scope, func)
Parameters:
scope
func

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 14 2012 17:43:45 GMT-0400 (EDT)