org.cafesip.gwtcomp.client.common
Class ChartInfo

java.lang.Object
  extended by org.cafesip.gwtcomp.client.common.ChartInfo
All Implemented Interfaces:
Serializable

public class ChartInfo
extends Object
implements Serializable

This class contains the property of the chart that is displayed by a LiveDataPanel component. The client-side constructs the chart based on the properties set an object of this type.

Author:
Amit Chatterjee
See Also:
Serialized Form

Constructor Summary
ChartInfo()
          A constructor for this class.
ChartInfo(String title, boolean displayLegend, PlotInfo plot, int numDataRows)
          A constructor for this class.
 
Method Summary
 PlotInfo getPlot()
           
 int getRowsToDisplay()
           
 String getTitle()
           
 boolean isDisplayLegend()
           
 void setDisplayLegend(boolean displayLegend)
           
 void setPlot(PlotInfo plot)
           
 void setRowsToDisplay(int rowsToDisplay)
           
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartInfo

public ChartInfo()
A constructor for this class.


ChartInfo

public ChartInfo(String title,
                 boolean displayLegend,
                 PlotInfo plot,
                 int numDataRows)
A constructor for this class.

Parameters:
title - title of the data panel
displayLegend - whether the legend must be displayed or not
plot - plot information
numDataRows - number of rows to display. Each row contains the data for a given point of time. If the value greater than 0 is specified, a table containing the live data is displayed in addition to the chart. For example, if a value of 5 is specified, the table displays the data for the last five intervals.
Method Detail

getTitle

public String getTitle()
Returns:
Returns the title.

setTitle

public void setTitle(String title)
Parameters:
title - The title to set.

isDisplayLegend

public boolean isDisplayLegend()
Returns:
Returns the displayLegend.

setDisplayLegend

public void setDisplayLegend(boolean displayLegend)
Parameters:
displayLegend - The displayLegend to set.

getPlot

public PlotInfo getPlot()
Returns:
Returns the plot.

setPlot

public void setPlot(PlotInfo plot)
Parameters:
plot - The plot to set.

getRowsToDisplay

public int getRowsToDisplay()
Returns:
Returns the rowsToDisplay.

setRowsToDisplay

public void setRowsToDisplay(int rowsToDisplay)
Parameters:
rowsToDisplay - The rowsToDisplay to set.


Copyright © 2010 Cafesip.org. All Rights Reserved.