org.utgenome.graphics
Class RibbonCanvas
java.lang.Object
org.utgenome.graphics.RibbonCanvas
public class RibbonCanvas
- extends Object
genome drawing canvas supporting indel display
- Author:
- leo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RibbonCanvas
public RibbonCanvas(int width,
int height,
GenomeWindow window)
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.