org.broad.igv.tdf
Class TDFVaryTile

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

public class TDFVaryTile
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
TDFVaryTile(java.nio.ByteBuffer byteBuffer, int nSamples)
           
TDFVaryTile(int tileStart, float span, int[] start, float[][] data)
           
 
Method Summary
 void fill(java.nio.ByteBuffer byteBuffer, int nSamples)
           
 int getEndPosition(int idx)
           
 java.lang.String getName(int idx)
           
 int getSize()
           
 int getStartPosition(int idx)
           
 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

TDFVaryTile

public TDFVaryTile(java.nio.ByteBuffer byteBuffer,
                   int nSamples)
            throws java.io.IOException
Throws:
java.io.IOException

TDFVaryTile

public TDFVaryTile(int tileStart,
                   float span,
                   int[] start,
                   float[][] data)
Method Detail

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:

getSize

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

getTileStart

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

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

fill

public void fill(java.nio.ByteBuffer byteBuffer,
                 int nSamples)
          throws java.io.IOException
Throws:
java.io.IOException


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