org.broad.igv.tdf
Class TDFFixedTile

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

public class TDFFixedTile
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
TDFFixedTile(java.nio.ByteBuffer byteBuffer, int nSamples)
           
TDFFixedTile(int tileStart, int start, float span, 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 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

TDFFixedTile

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

TDFFixedTile

public TDFFixedTile(int tileStart,
                    int start,
                    float span,
                    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:

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

getSize

public int getSize()
Specified by:
getSize 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