org.utgenome.gwt.utgb.client.canvas
Class GWTGraphCanvas

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.utgenome.gwt.utgb.client.canvas.GWTGraphCanvas
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

public class GWTGraphCanvas
extends com.google.gwt.user.client.ui.Composite

GWT Canvas for drawing bar graph, heat map, etc.

Author:
yoshimura, leo

Nested Class Summary
static class GWTGraphCanvas.GraphStyle
          Graph Drawing Configurations
static class GWTGraphCanvas.Indent
           
 
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
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
GWTGraphCanvas()
           
 
Method Summary
 void clear()
           
 void clearCanvas()
           
 void clearOutSideOf(TrackWindow globalWindow)
           
 void clearScale()
           
 void drawFrame()
           
 void drawScaleLabel()
           
protected  void drawWigGraph(org.utgenome.gwt.utgb.client.canvas.GWTGraphCanvas.GraphCanvas graphCanvas)
           
 void drawWigGraph(List<CompactWIGData> data, TrackWindow w)
           
static float getLogValue(float value, float logBase)
           
 GWTGraphCanvas.GraphStyle getStyle()
           
 TrackWindow getViewWindow()
           
 float getYPosition(float value)
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void redrawWigGraph()
           
 void setPixelSize(int width, int height)
           
 void setStyle(GWTGraphCanvas.GraphStyle style)
           
 void setViewWindow(TrackWindow view)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GWTGraphCanvas

public GWTGraphCanvas()
Method Detail

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

clear

public void clear()

clearCanvas

public void clearCanvas()

clearScale

public void clearScale()

redrawWigGraph

public void redrawWigGraph()

drawWigGraph

public void drawWigGraph(List<CompactWIGData> data,
                         TrackWindow w)

drawWigGraph

protected void drawWigGraph(org.utgenome.gwt.utgb.client.canvas.GWTGraphCanvas.GraphCanvas graphCanvas)

clearOutSideOf

public void clearOutSideOf(TrackWindow globalWindow)

drawFrame

public void drawFrame()

drawScaleLabel

public void drawScaleLabel()

getYPosition

public float getYPosition(float value)

getLogValue

public static float getLogValue(float value,
                                float logBase)

setViewWindow

public void setViewWindow(TrackWindow view)

getViewWindow

public TrackWindow getViewWindow()

setStyle

public void setStyle(GWTGraphCanvas.GraphStyle style)

getStyle

public GWTGraphCanvas.GraphStyle getStyle()

setPixelSize

public void setPixelSize(int width,
                         int height)
Overrides:
setPixelSize in class com.google.gwt.user.client.ui.UIObject


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