ca.nanometrics.gflot.client
Class PlotWithOverview

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 ca.nanometrics.gflot.client.PlotWithOverview
All Implemented Interfaces:
SelectionListener, PlotWidget, com.google.gwt.user.client.EventListener

public class PlotWithOverview
extends com.google.gwt.user.client.ui.Composite
implements PlotWidget, SelectionListener

Author:
Alexander De Leon

Nested Class Summary
 
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
static int DEFAULT_OVERVIEW_HEIGHT
           
static PlotOptions DEFAULT_OVERVIEW_OPTIONS
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
PlotWithOverview(PlotWithOverviewModel model)
           
PlotWithOverview(PlotWithOverviewModel model, int overviewHeight, PlotOptions windowPlotOptions, PlotOptions overviewPlotOptions)
           
PlotWithOverview(PlotWithOverviewModel model, PlotOptions plotOptions)
           
PlotWithOverview(PlotWithOverviewModel model, PlotOptions plotOptions, PlotOptions overviewPlotOptions)
           
 
Method Summary
 void addClickListener(PlotClickListener listener, boolean onlyOnDatapoint)
           
 void addHoverListener(PlotHoverListener listener, boolean onlyOnDatapoint)
           
 void addSelectionListener(SelectionListener listener)
           
 int getHeight()
           
 PlotModel getModel()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 int getWidth()
           
 void redraw()
           
 void selected(double x1, double y1, double x2, double y2)
          The area defined by the points (x1,y1) and (x2,y2) has been selected in the plot.
 void setHeight(int height)
           
 void setLinearSelection(double x1, double x2)
           
 void setOverviewHeight(int height)
           
 void setRectangularSelection(double x1, double y1, double x2, double y2)
           
 void setWidth(int width)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onLoad, 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
 

Field Detail

DEFAULT_OVERVIEW_HEIGHT

public static final int DEFAULT_OVERVIEW_HEIGHT
See Also:
Constant Field Values

DEFAULT_OVERVIEW_OPTIONS

public static final PlotOptions DEFAULT_OVERVIEW_OPTIONS
Constructor Detail

PlotWithOverview

public PlotWithOverview(PlotWithOverviewModel model)

PlotWithOverview

public PlotWithOverview(PlotWithOverviewModel model,
                        PlotOptions plotOptions)

PlotWithOverview

public PlotWithOverview(PlotWithOverviewModel model,
                        PlotOptions plotOptions,
                        PlotOptions overviewPlotOptions)

PlotWithOverview

public PlotWithOverview(PlotWithOverviewModel model,
                        int overviewHeight,
                        PlotOptions windowPlotOptions,
                        PlotOptions overviewPlotOptions)
Method Detail

addClickListener

public void addClickListener(PlotClickListener listener,
                             boolean onlyOnDatapoint)
Specified by:
addClickListener in interface PlotWidget

addHoverListener

public void addHoverListener(PlotHoverListener listener,
                             boolean onlyOnDatapoint)
Specified by:
addHoverListener in interface PlotWidget

addSelectionListener

public void addSelectionListener(SelectionListener listener)
Specified by:
addSelectionListener in interface PlotWidget

getHeight

public int getHeight()
Specified by:
getHeight in interface PlotWidget

getModel

public PlotModel getModel()
Specified by:
getModel in interface PlotWidget

getWidth

public int getWidth()
Specified by:
getWidth in interface PlotWidget

redraw

public void redraw()
Specified by:
redraw in interface PlotWidget

setHeight

public void setHeight(int height)
Specified by:
setHeight in interface PlotWidget

setOverviewHeight

public void setOverviewHeight(int height)

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

setWidth

public void setWidth(int width)
Specified by:
setWidth in interface PlotWidget

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Specified by:
getWidget in interface PlotWidget
Overrides:
getWidget in class com.google.gwt.user.client.ui.Composite

selected

public void selected(double x1,
                     double y1,
                     double x2,
                     double y2)
Description copied from interface: SelectionListener
The area defined by the points (x1,y1) and (x2,y2) has been selected in the plot.

Specified by:
selected in interface SelectionListener


Copyright © 2009. All Rights Reserved.