ca.nanometrics.gflot.client
Class PlotWithInteractiveLegend

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.PlotWithInteractiveLegend
All Implemented Interfaces:
PlotModel.PlotModelListener, PlotWidget, com.google.gwt.user.client.EventListener

public class PlotWithInteractiveLegend
extends com.google.gwt.user.client.ui.Composite
implements PlotWidget, PlotModel.PlotModelListener

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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
PlotWithInteractiveLegend(PlotWidget plot)
           
 
Method Summary
 void addClickListener(PlotClickListener listener, boolean onlyOnDatapoint)
           
 void addHoverListener(PlotHoverListener listener, boolean onlyOnDatapoint)
           
 void addLegendWidget(SeriesHandler handler, com.google.gwt.user.client.ui.Widget widget)
           
 void addSelectionListener(SelectionListener listener)
           
 int getHeight()
           
 PlotModel getModel()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 int getWidth()
           
 void onAddSeries(PlotModel model, java.lang.String label, java.lang.String color, SeriesHandler handler)
           
 void onRemoveSeries(PlotModel model, SeriesHandler handler)
           
 void redraw()
           
 void setHeight(int height)
           
 void setLinearSelection(double x1, double x2)
           
 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
 

Constructor Detail

PlotWithInteractiveLegend

public PlotWithInteractiveLegend(PlotWidget plot)
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

getWidth

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

setHeight

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

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

redraw

public void redraw()
Specified by:
redraw 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

getModel

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

addLegendWidget

public void addLegendWidget(SeriesHandler handler,
                            com.google.gwt.user.client.ui.Widget widget)

onAddSeries

public void onAddSeries(PlotModel model,
                        java.lang.String label,
                        java.lang.String color,
                        SeriesHandler handler)
Specified by:
onAddSeries in interface PlotModel.PlotModelListener

onRemoveSeries

public void onRemoveSeries(PlotModel model,
                           SeriesHandler handler)
Specified by:
onRemoveSeries in interface PlotModel.PlotModelListener


Copyright © 2009. All Rights Reserved.