Class Track
Defined in: YScaleMixin.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Track()
Mixin for a track that has a Y-axis scale bar on its left side.
|
Method Attributes | Method Name and Description |
---|---|
clear()
|
|
endZoom(destScale, destBlockBases)
|
|
heightUpdate(height, blockIndex)
|
|
hide()
|
|
hideAll()
|
|
load(url)
|
|
loadFail(error)
|
|
loadSuccess(error)
|
|
moveBlocks(delta)
|
|
setLabel(newHTML)
|
|
setViewInfo(heightUpdate, numBlocks, trackDiv, labelDiv, widthPct, widthPx, scale)
|
|
show()
|
|
showRange(first, last, startBase, bpPerBlock, scale, containerStart, containerEnd)
|
|
sizeInit(numBlocks, widthPct, blockDelta)
|
|
startZoom(destScale, destStart, destEnd)
|
|
transfer()
|
|
updateViewDimensions(coords)
Called by GenomeView when the view is scrolled: communicates the
new x, y, width, and height of the view.
|
Class Detail
Track()
Mixin for a track that has a Y-axis scale bar on its left side.
Puts the scale div in
this.yscale
, stores the 'left' CSS pixel
offset in this.yscale_left
.
Method Detail
cleanupBlock()
Defined in: Track.js.
clear()
Defined in: Track.js.
endZoom(destScale, destBlockBases)
Defined in: Track.js.
- Parameters:
- destScale
- destBlockBases
heightUpdate(height, blockIndex)
Defined in: Track.js.
- Parameters:
- height
- blockIndex
hide()
Defined in: Track.js.
hideAll()
Defined in: Track.js.
initBlocks()
Defined in: Track.js.
load(url)
Defined in: Track.js.
- Parameters:
- url
loadFail(error)
Defined in: Track.js.
- Parameters:
- error
loadSuccess(error)
Defined in: Track.js.
- Parameters:
- error
moveBlocks(delta)
Defined in: Track.js.
- Parameters:
- delta
setLabel(newHTML)
Defined in: Track.js.
- Parameters:
- newHTML
setLoaded()
Defined in: Track.js.
setViewInfo(heightUpdate, numBlocks, trackDiv, labelDiv, widthPct, widthPx, scale)
Defined in: Track.js.
- Parameters:
- heightUpdate
- numBlocks
- trackDiv
- labelDiv
- widthPct
- widthPx
- scale
show()
Defined in: Track.js.
showRange(first, last, startBase, bpPerBlock, scale, containerStart, containerEnd)
Defined in: Track.js.
- Parameters:
- first
- last
- startBase
- bpPerBlock
- scale
- containerStart
- containerEnd
sizeInit(numBlocks, widthPct, blockDelta)
Defined in: Track.js.
- Parameters:
- numBlocks
- widthPct
- blockDelta
startZoom(destScale, destStart, destEnd)
Defined in: Track.js.
- Parameters:
- destScale
- destStart
- destEnd
transfer()
Defined in: Track.js.
updateViewDimensions(coords)
Called by GenomeView when the view is scrolled: communicates the
new x, y, width, and height of the view. This is needed by tracks
for positioning stationary things like axis labels.
Defined in: Track.js.
Defined in: Track.js.
- Parameters:
- {Object} coords