org.utgenome.graphics
Class RibbonCanvas

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

public class RibbonCanvas
extends Object

genome drawing canvas supporting indel display

Author:
leo

Constructor Summary
RibbonCanvas(int width, int height, GenomeWindow window)
           
 
Method Summary
 void draw(Read read)
           
 void drawText(String text, long startIndexOnGenome, long endIndexOnGenome, int yOffset, int fontSize, Color color)
           
 Color getBaseColor(char base)
           
 void setPixelSize(int width, int height)
           
 void setReference(Reference reference)
           
 void toPNG(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RibbonCanvas

public RibbonCanvas(int width,
                    int height,
                    GenomeWindow window)
Method Detail

getBaseColor

public Color getBaseColor(char base)

setPixelSize

public void setPixelSize(int width,
                         int height)

setReference

public void setReference(Reference reference)

draw

public void draw(Read read)

drawText

public void drawText(String text,
                     long startIndexOnGenome,
                     long endIndexOnGenome,
                     int yOffset,
                     int fontSize,
                     Color color)

toPNG

public void toPNG(OutputStream out)
           throws IOException
Throws:
IOException


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