public abstract class VerticalChartServlet extends ChartServlet
Abstract base class for vertical charts.
The chart servlet takes the following parameters (any applicable defaults are in bold and required parameters are in italics):
| key | value |
|---|---|
| collectionType | <integer (0)>* |
* Must be a valid value from {@link
org.rhq.enterprise.server.legacy.measurement.MeasurementConstants.
MeasurementConstants,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_TYPE_PARAM
Request parameter for unit scale.
|
BASELINE_PARAM, HIGHRANGE_PARAM, IMAGE_HEIGHT_DEFAULT, IMAGE_WIDTH_DEFAULT, LOWRANGE_PARAM, MEASUREMENT_UNITS_PARAM, SHOW_AVERAGE_PARAM, SHOW_BASELINE_PARAM, SHOW_HIGHRANGE_PARAM, SHOW_LOW_PARAM, SHOW_LOWRANGE_PARAM, SHOW_PEAK_PARAM, SHOW_VALUES_PARAM, unitsIMAGE_FORMAT_JPEG, IMAGE_FORMAT_PARAM, IMAGE_FORMAT_PNG, IMAGE_HEIGHT_PARAM, IMAGE_WIDTH_PARAM| Constructor and Description |
|---|
VerticalChartServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDefaultCollectionType()
Return the default
collectionType. |
protected int |
getTrendForCollectionType(int collectionType)
Get the trend based on the collection type.
|
protected void |
initializeChart(Chart chart)
Initialize the chart.
|
protected void |
parseParameters(javax.servlet.http.HttpServletRequest request)
This method will be called automatically by the ChartServlet.
|
createChart, createImage, getDefaultImageHeight, getDefaultImageWidth, getDefaultShowAverage, getDefaultShowBaseline, getDefaultShowHighRange, getDefaultShowLow, getDefaultShowLowRange, getDefaultShowPeak, getDefaultShowValues, getShowAvg, getShowLow, getShowPeak, plotData, renderJpegImage, renderPngImagedoGet, getDefaultImageFormat, getImageFormat, getImageHeight, getImageWidth, initinvalidParamErr, invalidParamErr, invalidParamWarn, invalidParamWarn, invalidParamWarn, invalidParamWarn, invalidParamWarn, parseBooleanParameter, parseDoubleParameter, parseEnumParameter, parseIntParameter, parseLongParameter, parseRequiredBooleanParameter, parseRequiredDoubleParameter, parseRequiredIntParameter, parseRequiredLongParameter, parseRequiredStringParameter, parseRequiredStringParameter, parseStringParameter, parseStringParameter, requiredParamErrdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String COLLECTION_TYPE_PARAM
protected int getDefaultCollectionType()
collectionType.protected void parseParameters(javax.servlet.http.HttpServletRequest request)
parseParameters in class ChartServletrequest - the HTTP request objectprotected void initializeChart(Chart chart)
initializeChart in class ChartServletchart - the chartprotected int getTrendForCollectionType(int collectionType)
TREND_NONE.collectionType - the collection type from MeasurementConstantsnet.covalent.chart.TrendMeasurementConstants,
net.covalent.chart.TrendCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.