org.cafesip.gwtcomp.client.common
Class ChartInfo
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 paneldisplayLegend - whether the legend must be displayed or notplot - plot informationnumDataRows - 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.
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.