|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.telemetry.datapanel.TelemetryChartDataModel
public class TelemetryChartDataModel
Data model to hold state of the telemetry chart.
Constructor Summary | |
---|---|
TelemetryChartDataModel()
|
Method Summary | |
---|---|
void |
addStreamToChart(SelectableTelemetryStream stream,
double minimum,
double maximum,
GoogleChart googleChart)
Add the given stream to the google chart. |
void |
cancelDataLoading()
Cancel the data loading process. |
void |
changeSelectionForAll(boolean flag)
Change all selected flags of streams to the given flag. |
java.lang.String |
getChartUrl(java.util.List<SelectableTelemetryStream> streams)
Return the google chart url that present all streams within the given list. |
java.util.List<java.lang.String> |
getDateList()
Return the date list inside this model. |
java.util.List<java.lang.String> |
getDateList(java.util.List<org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryPoint> points)
Return the date list within the list of points. |
int |
getHeight()
|
java.lang.String |
getParameterAsString()
Return the comma-separated list of parameters in String. |
java.lang.String |
getProcessingMessage()
|
java.lang.String |
getSelectedChart()
|
java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> |
getSelectedProjects()
|
java.lang.String |
getTelemetryName()
|
java.util.List<SelectableTelemetryStream> |
getTelemetryStream(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
Return the list of TelemetryStream associated with the given project. |
int |
getWidth()
|
boolean |
isChartEmpty()
|
boolean |
isComplete()
|
boolean |
isEmpty()
Returns true if this model does not contain any data. |
boolean |
isInProcess()
|
boolean |
isSizeWithinRange()
Check if the size of the chart is within range. |
void |
loadData()
Load data from Hackystat service. |
void |
setHeight(int height)
|
void |
setModel(java.util.Date startDate,
java.util.Date endDate,
java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> selectedProjects,
java.lang.String telemetryName,
java.lang.String granularity,
java.util.List<org.apache.wicket.model.IModel> parameters,
java.lang.String telemetryHost,
java.lang.String email,
java.lang.String password)
|
void |
setWidth(int width)
|
boolean |
updateSelectedChart()
update the selectedChart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TelemetryChartDataModel()
Method Detail |
---|
public void setModel(java.util.Date startDate, java.util.Date endDate, java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> selectedProjects, java.lang.String telemetryName, java.lang.String granularity, java.util.List<org.apache.wicket.model.IModel> parameters, java.lang.String telemetryHost, java.lang.String email, java.lang.String password)
startDate
- the start date of this model..endDate
- the end date of this model..selectedProjects
- the project ofs this model.telemetryName
- the telemetry name of this model.granularity
- the granularity of this model, Day or Week or Month.parameters
- the list of parameterstelemetryHost
- the telemetry hostemail
- the user's emailpassword
- the user's passowrdpublic void loadData()
public void cancelDataLoading()
public java.lang.String getTelemetryName()
public boolean isEmpty()
public java.util.List<SelectableTelemetryStream> getTelemetryStream(org.hackystat.sensorbase.resource.projects.jaxb.Project project)
project
- the given project.
public boolean updateSelectedChart()
public java.lang.String getChartUrl(java.util.List<SelectableTelemetryStream> streams)
streams
- the given stream list.
public void addStreamToChart(SelectableTelemetryStream stream, double minimum, double maximum, GoogleChart googleChart)
stream
- the given stream.maximum
- the maximum value of the range this stream will be associated to.minimum
- the minimum value of the range this stream will be associated to.googleChart
- the google chart.public java.util.List<java.lang.String> getDateList(java.util.List<org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryPoint> points)
points
- the point list.
public java.util.List<java.lang.String> getDateList()
public java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> getSelectedProjects()
public java.lang.String getParameterAsString()
public int getWidth()
public int getHeight()
public boolean isSizeWithinRange()
public java.lang.String getSelectedChart()
public boolean isChartEmpty()
public void changeSelectionForAll(boolean flag)
flag
- the boolean flag.public boolean isInProcess()
isInProcess
in interface Processable
public boolean isComplete()
isComplete
in interface Processable
public java.lang.String getProcessingMessage()
getProcessingMessage
in interface Processable
public void setWidth(int width)
width
- the width to setpublic void setHeight(int height)
height
- the height to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |