org.utgenome.gwt.utgb.client.canvas
Class GWTGenomeCanvas
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.utgenome.gwt.ipad.client.TouchableComposite
org.utgenome.gwt.utgb.client.canvas.GWTGenomeCanvas
- All Implemented Interfaces:
- com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, HasTouchHandlers
public class GWTGenomeCanvas
- extends TouchableComposite
Browser-side graphic canvas for drawing gene objects
- Author:
- leo
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
Method Summary |
void |
clear()
|
void |
clearWidgets()
|
void |
displayInfo(int clientX,
int clientY,
GenomeRange g)
|
void |
draw()
|
void |
draw(Gene gene,
int yPosition)
|
void |
draw(Gene gene,
List<Exon> exonList,
CDS cds,
int yPosition)
|
void |
draw(Interval gene,
int yPosition)
|
|
drawBlock(ReadCoverage block)
|
void |
drawExon(Gene gene,
Exon exon,
CDS cds,
int yPosition)
|
void |
drawGeneRect(int x1,
int x2,
int y,
com.google.gwt.widgetideas.graphics.client.Color c,
boolean drawShadow)
|
void |
drawPadding(int x1,
int x2,
int y,
com.google.gwt.widgetideas.graphics.client.Color c,
boolean drawShadow)
|
com.google.gwt.widgetideas.graphics.client.Color |
getCDSColor(Interval g)
|
com.google.gwt.widgetideas.graphics.client.Color |
getCDSColor(Interval g,
float alpha)
|
static com.google.gwt.widgetideas.graphics.client.Color |
getColor(String hex,
float alpha)
|
com.google.gwt.widgetideas.graphics.client.Color |
getExonColor(Gene g)
|
com.google.gwt.widgetideas.graphics.client.Color |
getGeneColor(Interval l)
|
com.google.gwt.widgetideas.graphics.client.Color |
getGeneColor(Interval l,
float alpha)
|
float |
getPrefetchFactor()
|
TrackWindow |
getPrefetchWindow()
|
int |
getXOnCanvas(com.google.gwt.user.client.Event event)
|
int |
getXOnCanvas(int clientX)
|
int |
getYOnCanvas(com.google.gwt.user.client.Event event)
|
int |
getYOnCanvas(int clientY)
|
boolean |
hasCacheCovering(TrackWindow newWindow)
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
int |
pixelPositionOnWindow(int indexOnGenome)
|
void |
resetData(List<GenomeRange> readSet)
|
void |
resetPrefetchFactor()
|
void |
setAllowOverlapPairedReads(boolean allow)
|
void |
setLocusClickHandler(LocusClickHandler handler)
|
void |
setPixelSize(int width,
int height)
|
void |
setPrefetchFactor(float factor)
|
void |
setReadStyle(ReadDisplayStyle style)
|
void |
setSequencetxt(char[] chrSequence)
|
void |
setSequencetxt(String strSequence)
|
void |
setStartSeq(int startSeq)
|
void |
setTrackGroup(TrackGroup trackGroup)
|
void |
setTrackWindow(TrackWindow newWindow,
boolean resetPrefetchWindow)
|
static int |
width(int x1,
int x2)
|
Methods inherited from class com.google.gwt.user.client.ui.Composite |
getWidget, initWidget, isAttached, onAttach, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
chrSeq
public char[] chrSeq
strSeq
public String strSeq
intStartSeq
public int intStartSeq
GWTGenomeCanvas
public GWTGenomeCanvas()
setLocusClickHandler
public void setLocusClickHandler(LocusClickHandler handler)
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event)
- Specified by:
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in class com.google.gwt.user.client.ui.Composite
displayInfo
public void displayInfo(int clientX,
int clientY,
GenomeRange g)
setAllowOverlapPairedReads
public void setAllowOverlapPairedReads(boolean allow)
getXOnCanvas
public int getXOnCanvas(com.google.gwt.user.client.Event event)
getXOnCanvas
public int getXOnCanvas(int clientX)
getYOnCanvas
public int getYOnCanvas(int clientY)
getYOnCanvas
public int getYOnCanvas(com.google.gwt.user.client.Event event)
hasCacheCovering
public boolean hasCacheCovering(TrackWindow newWindow)
getPrefetchWindow
public TrackWindow getPrefetchWindow()
resetPrefetchFactor
public void resetPrefetchFactor()
getPrefetchFactor
public float getPrefetchFactor()
setPrefetchFactor
public void setPrefetchFactor(float factor)
setTrackWindow
public void setTrackWindow(TrackWindow newWindow,
boolean resetPrefetchWindow)
- Parameters:
newWindow
-
setTrackGroup
public void setTrackGroup(TrackGroup trackGroup)
pixelPositionOnWindow
public int pixelPositionOnWindow(int indexOnGenome)
clearWidgets
public void clearWidgets()
clear
public void clear()
width
public static int width(int x1,
int x2)
drawBlock
public <T extends GenomeRange> void drawBlock(ReadCoverage block)
resetData
public void resetData(List<GenomeRange> readSet)
setSequencetxt
public void setSequencetxt(char[] chrSequence)
setSequencetxt
public void setSequencetxt(String strSequence)
setStartSeq
public void setStartSeq(int startSeq)
draw
public void draw()
setPixelSize
public void setPixelSize(int width,
int height)
- Overrides:
setPixelSize
in class com.google.gwt.user.client.ui.UIObject
getColor
public static com.google.gwt.widgetideas.graphics.client.Color getColor(String hex,
float alpha)
getGeneColor
public com.google.gwt.widgetideas.graphics.client.Color getGeneColor(Interval l)
getGeneColor
public com.google.gwt.widgetideas.graphics.client.Color getGeneColor(Interval l,
float alpha)
getExonColor
public com.google.gwt.widgetideas.graphics.client.Color getExonColor(Gene g)
getCDSColor
public com.google.gwt.widgetideas.graphics.client.Color getCDSColor(Interval g,
float alpha)
getCDSColor
public com.google.gwt.widgetideas.graphics.client.Color getCDSColor(Interval g)
draw
public void draw(Gene gene,
List<Exon> exonList,
CDS cds,
int yPosition)
drawPadding
public void drawPadding(int x1,
int x2,
int y,
com.google.gwt.widgetideas.graphics.client.Color c,
boolean drawShadow)
draw
public void draw(Interval gene,
int yPosition)
draw
public void draw(Gene gene,
int yPosition)
drawExon
public void drawExon(Gene gene,
Exon exon,
CDS cds,
int yPosition)
drawGeneRect
public void drawGeneRect(int x1,
int x2,
int y,
com.google.gwt.widgetideas.graphics.client.Color c,
boolean drawShadow)
setReadStyle
public void setReadStyle(ReadDisplayStyle style)
Copyright © 2007-2012 utgenome.org. All Rights Reserved.