|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.mvc.view.Chart
public class Chart
Spring framework MVC chart view. This has one property - the chart object which is passed into the constructor.
| Field Summary | |
|---|---|
protected Chart |
chart
|
protected java.lang.String |
responseContentType
|
protected java.lang.String |
showChartConfidenceLimitsParameterName
|
| Constructor Summary | |
|---|---|
Chart(Chart chart)
Constructor which sets the required chart property. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Spring View required method. |
void |
render(java.util.Map modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Standard Spring framework MVC View Render method for chart requests. |
void |
setChart(Chart chart)
Sets the chart property. |
void |
setContentType(java.lang.String responseContentType)
Sets the HTTP response content type property. |
void |
setShowChartConfidenceLimitsParameterName(java.lang.String showChartConfidenceLimitsParameterName)
Sets the HTTP Show Chart Confidence Limits Parameter Name chart property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String responseContentType
protected Chart chart
protected java.lang.String showChartConfidenceLimitsParameterName
| Constructor Detail |
|---|
public Chart(Chart chart)
chart - Actual chart object used to create and stream back a chart.| Method Detail |
|---|
public java.lang.String getContentType()
getContentType in interface org.springframework.web.servlet.Viewpublic void setContentType(java.lang.String responseContentType)
responseContentType - HTTP content type. This value defaults to
"image/svg+xml" and is not validated.public void setChart(Chart chart)
chart - Actual chart object used to create and stream back a chart.public void setShowChartConfidenceLimitsParameterName(java.lang.String showChartConfidenceLimitsParameterName)
showChartConfidenceLimitsParameterName - HTTP request parameter name
key to be retrieved. If this parameter is T/t/Y/y/X/x then the
chart will have its CIs displayed. Defaults to "ShowChartCIs".
public void render(java.util.Map modelMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
toOutputStream
method is then called with the chart data and any other
chart related model parameters to create the chart and stream it back
to the user. This method also checks for the presence of the ShowChartCIs
request parameter. If exists and matches this property parameter name
and its value is T/t/Y/y/X/x then the chart will render CIs (if exists).
render in interface org.springframework.web.servlet.ViewmodelMap - Spring framework MVC model map which contains chart data
and any other request parameters.request - HTTP request passed from Spring MVC framework. The main
request parameter that is checked for is the printer friendly flag.response - HTTP response passed from Spring MVC framework. This
is used to get the stream that the chart contents are sent to.
java.io.IOException - Associated stream exceptions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||