org.broad.igv.tdf
Class TDFBedTile

java.lang.Object
  extended by org.broad.igv.tdf.TDFBedTile
All Implemented Interfaces:
TDFTile

public class TDFBedTile
extends java.lang.Object
implements TDFTile

Author:
jrobinso

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.broad.igv.tdf.TDFTile
TDFTile.Type
 
Constructor Summary
TDFBedTile(java.nio.ByteBuffer byteBuffer, int nSamples, TDFTile.Type type)
           
TDFBedTile(int tileStart, int[] start, int[] end, float[][] data)
           
TDFBedTile(int tileStart, int[] start, int[] end, float[][] data, java.lang.String[] name)
           
 
Method Summary
 int getEndPosition(int idx)
           
 java.lang.String getName(int idx)
           
 int getSize()
           
 int getStartPosition(int idx)
           
 int getTileEnd()
           
 int getTileStart()
           
 float getValue(int row, int idx)
           
 int noValues()
          Returns the number of values that are available for each position in this Tile.
 void writeTo(BufferedByteWriter fos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TDFBedTile

public TDFBedTile(java.nio.ByteBuffer byteBuffer,
                  int nSamples,
                  TDFTile.Type type)
           throws java.io.IOException
Throws:
java.io.IOException

TDFBedTile

public TDFBedTile(int tileStart,
                  int[] start,
                  int[] end,
                  float[][] data)

TDFBedTile

public TDFBedTile(int tileStart,
                  int[] start,
                  int[] end,
                  float[][] data,
                  java.lang.String[] name)
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface TDFTile

getTileStart

public int getTileStart()
Specified by:
getTileStart in interface TDFTile

getTileEnd

public int getTileEnd()

getStartPosition

public int getStartPosition(int idx)
Specified by:
getStartPosition in interface TDFTile

getEndPosition

public int getEndPosition(int idx)
Specified by:
getEndPosition in interface TDFTile

getName

public java.lang.String getName(int idx)
Specified by:
getName in interface TDFTile

getValue

public float getValue(int row,
                      int idx)
Specified by:
getValue in interface TDFTile

writeTo

public void writeTo(BufferedByteWriter fos)
             throws java.io.IOException
Specified by:
writeTo in interface TDFTile
Throws:
java.io.IOException

noValues

public int noValues()
Description copied from interface: TDFTile
Returns the number of values that are available for each position in this Tile.

Specified by:
noValues in interface TDFTile
Returns:


Copyright © 2007-2011 - Thomas Abeel - All Rights Reserved. SourceForge.netLogo