org.utgenome.graphics
Class GenomeWindow

java.lang.Object
  extended by org.utgenome.graphics.GenomeWindow

public class GenomeWindow
extends Object


Field Summary
 long endIndexOnGenome
           
 long startIndexOnGenome
           
 
Constructor Summary
GenomeWindow(long startIndexOnGenome, long endIndexOnGenome)
           
 
Method Summary
 int calcGenomePosition(int xOnWindow, int windowWidth)
           
 long getGenomeRange()
           
 boolean getReverse()
           
 int getXPosOnWindow(long indexOnGenome, int canvasWidth)
           
 boolean hasOverlap(long startOnGenome, long endOnGenome)
           
 int pixelPositionOnWindow(long indexOnGenome, int windowWidth)
           
 int toGenomeLength(int pixelLength, int windowWidth)
           
static long width(long x1, long x2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startIndexOnGenome

public final long startIndexOnGenome

endIndexOnGenome

public final long endIndexOnGenome
Constructor Detail

GenomeWindow

public GenomeWindow(long startIndexOnGenome,
                    long endIndexOnGenome)
Method Detail

toGenomeLength

public int toGenomeLength(int pixelLength,
                          int windowWidth)

pixelPositionOnWindow

public int pixelPositionOnWindow(long indexOnGenome,
                                 int windowWidth)

calcGenomePosition

public int calcGenomePosition(int xOnWindow,
                              int windowWidth)

width

public static long width(long x1,
                         long x2)

getXPosOnWindow

public int getXPosOnWindow(long indexOnGenome,
                           int canvasWidth)

getGenomeRange

public long getGenomeRange()

getReverse

public boolean getReverse()

hasOverlap

public boolean hasOverlap(long startOnGenome,
                          long endOnGenome)


Copyright © 2007-2012 utgenome.org. All Rights Reserved.