edu.mayo.bsi.ngsportal.client
Class SGEBarGraph

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.client.SGEBarGraph
Direct Known Subclasses:
SGEBarGraphImpl

public abstract class SGEBarGraph
extends Object

SGEBarGraph is an abstract class definition defining methods needed to fill and update a bargraph with data from grid engine metrics.

Author:
m102772

Nested Class Summary
static class SGEBarGraph.SGEGraphType
          List of types of graphs for the bar graph to display.
 
Constructor Summary
SGEBarGraph()
           
 
Method Summary
abstract  com.google.gwt.visualization.client.visualizations.corechart.BarChart createBarChart()
          Sets options and creates the bar chart with an empty data table (call SGEBarGraph.UpdateTable to fill with real data).
abstract  com.smartgwt.client.widgets.grid.ListGrid createListGrid()
          Returns an empty ListGrid for holding Chart data
abstract  com.google.gwt.visualization.client.DataTable getDataTable()
          Returns the DataTable contained in the bargraph resource.
abstract  com.google.gwt.visualization.client.visualizations.corechart.Options getOptions()
          Returns the Visualization Options for the bar graph.
abstract  void setSGEData(SGEBarGraph.SGEGraphType graphtype)
          Sets the type of data to display from the types contained in SGEBarGraph; See SGEBarGraph Type Constants for possible values.
abstract  void updateTable()
          Updates the DataTable by RPC call to NGSPortal and redraws the bargraph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGEBarGraph

public SGEBarGraph()
Method Detail

getDataTable

public abstract com.google.gwt.visualization.client.DataTable getDataTable()
Returns the DataTable contained in the bargraph resource.

Returns:
DataTable can be null if the graph is empty

getOptions

public abstract com.google.gwt.visualization.client.visualizations.corechart.Options getOptions()
Returns the Visualization Options for the bar graph.

Returns:
Options can be null if the graph has not been created

updateTable

public abstract void updateTable()
Updates the DataTable by RPC call to NGSPortal and redraws the bargraph. This method is responsible for calling the appropriate method in NGSPortalImpl on the server and creating the callback.


createBarChart

public abstract com.google.gwt.visualization.client.visualizations.corechart.BarChart createBarChart()
Sets options and creates the bar chart with an empty data table (call SGEBarGraph.UpdateTable to fill with real data).

Returns:
BarChart not null

setSGEData

public abstract void setSGEData(SGEBarGraph.SGEGraphType graphtype)
Sets the type of data to display from the types contained in SGEBarGraph; See SGEBarGraph Type Constants for possible values.

Parameters:
graphtype - The enumerated type of graph to draw

createListGrid

public abstract com.smartgwt.client.widgets.grid.ListGrid createListGrid()
Returns an empty ListGrid for holding Chart data

Returns:
ListGrid not null