ca.nanometrics.gflot.client
Class SimplePlot
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
ca.nanometrics.gflot.client.SimplePlot
- All Implemented Interfaces:
- PlotWidget, com.google.gwt.user.client.EventListener
public class SimplePlot
- extends com.google.gwt.user.client.ui.Widget
- implements PlotWidget
- Author:
- AlexanderDeleon
| 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 |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent |
| 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, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimplePlot
public SimplePlot(PlotModel model)
SimplePlot
public SimplePlot(PlotModel model,
PlotOptions options)
SimplePlot
public SimplePlot()
SimplePlot
public SimplePlot(PlotOptions options)
getWidth
public int getWidth()
- Specified by:
getWidth in interface PlotWidget
setWidth
public void setWidth(int width)
- Specified by:
setWidth in interface PlotWidget
getHeight
public int getHeight()
- Specified by:
getHeight in interface PlotWidget
setHeight
public void setHeight(int height)
- Specified by:
setHeight in interface PlotWidget
setupGrid
public void setupGrid()
draw
public void draw()
setLinearSelection
public void setLinearSelection(double x1,
double x2)
- Specified by:
setLinearSelection in interface PlotWidget
setRectangularSelection
public void setRectangularSelection(double x1,
double y1,
double x2,
double y2)
- Specified by:
setRectangularSelection in interface PlotWidget
addSelectionListener
public void addSelectionListener(SelectionListener listener)
- Specified by:
addSelectionListener in interface PlotWidget
addHoverListener
public void addHoverListener(PlotHoverListener listener,
boolean onlyOnDatapoint)
- Specified by:
addHoverListener in interface PlotWidget
addClickListener
public void addClickListener(PlotClickListener listener,
boolean onlyOnDatapoint)
- Specified by:
addClickListener in interface PlotWidget
getModel
public PlotModel getModel()
- Specified by:
getModel in interface PlotWidget
getWidget
public com.google.gwt.user.client.ui.Widget getWidget()
- Specified by:
getWidget in interface PlotWidget
redraw
public void redraw()
- Specified by:
redraw in interface PlotWidget
getOffsetLeft
public int getOffsetLeft()
getOffsetRight
public int getOffsetRight()
getOffsetTop
public int getOffsetTop()
getOffsetBottom
public int getOffsetBottom()
onLoad
protected void onLoad()
- Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget
createPlotContainer
protected com.google.gwt.user.client.Element createPlotContainer()
assertLoaded
protected void assertLoaded()
Copyright © 2009. All Rights Reserved.