org.rhq.enterprise.gui.image.chart
Class HighLowChart
java.lang.Object
org.rhq.enterprise.gui.image.WebImage
org.rhq.enterprise.gui.image.chart.Chart
org.rhq.enterprise.gui.image.chart.VerticalChart
org.rhq.enterprise.gui.image.chart.ColumnChart
org.rhq.enterprise.gui.image.chart.HighLowChart
public class HighLowChart
- extends ColumnChart
HighLowChart draws a horizontal chart with columns that display the high, low and average values for each time unit
on the chart. For a description of how to use LineChart, see net.hyperic.chart.Chart.
- See Also:
net.hyperic.chart.Chart
| Fields inherited from class org.rhq.enterprise.gui.image.chart.Chart |
ARG_MUST_BE_ZERO_OR_GREATER, averageLineColor, AVG, baseline, BASELINE, baselineColor, ceiling, chartColor, DEFAULT_LABEL_FONT, DEFAULT_LEGEND_FONT, DEFAULT_LEGEND_PLAIN, DEFAULT_UNIT_LEGEND, DEFAULT_VALUE_LEGEND, EMPTY_STRING, floor, highRange, highRangeColor, legendFont, legendTextColor, lineWidth, LOW, lowLineColor, lowRange, lowRangeColor, m_adRangeMarks, m_bNoData, m_dAvgValue, m_dLowValue, m_dPeakValue, m_floor, m_fmtUnits, m_metricsLabel, m_metricsLegend, PEAK, peakLineColor, rightLabelWidth, showAverage, showBaseline, showBottomLabels, showBottomLegend, showFullLabels, showHighRange, showLeftLabels, showLeftLegend, showLow, showLowRange, showPeak, showRightLabels, showRightLegend, showTopLabels, showTopLegend, showUnitLines, showValueLines, showValues, textWhitespace, tickMarkHeight, valueIndent, valueLines, VARIABLE_HEIGHT, VARIABLE_WIDTH, x2VertLabels, x2VertMarks, xLabelsSkip, xLineColor, xOffset, xRLabel, xVertLegend, xVertMarks, yBottomLegend, yHorzLabels, yOffset, yTopLegend |
| Fields inherited from class org.rhq.enterprise.gui.image.WebImage |
antiAliased, ARG_CANNOT_BE_NULL, backgroundColor, bottomBorder, DEFAULT_BACKGROUND_COLOR, DEFAULT_BOLD_TYPEFACE, DEFAULT_BORDER_COLOR, DEFAULT_BORDER_SIZE, DEFAULT_FONT, DEFAULT_FONT_METRICS, DEFAULT_HEIGHT, DEFAULT_PLAIN_TYPEFACE, DEFAULT_SHADOW_WIDTH, DEFAULT_WIDTH, font, frameImage, height, indexColors, leftBorder, m_graphics, rightBorder, shadowWidth, SMALL_FONT, textColor, topBorder, width |
| Methods inherited from class org.rhq.enterprise.gui.image.chart.VerticalChart |
adjustBorders, adjustRectangle, draw, findDataPointIndex, getCumulativeTrend, getDataPoint, getDataPoint, getInteriorRectangle, getXLabels, getXPoints, getYLabelWidth, initData, setCumulativeTrend, setTimeScale |
| Methods inherited from class org.rhq.enterprise.gui.image.chart.Chart |
calc, calcVariableHeight, calcVariableWidth, draw, getAverageValue, getDataCollectionClass, getDataPoint, getDataPoints, getDataPoints, getDataSetCount, getDataSetIterator, getDisplayPoint, getExteriorHeight, getExteriorRectangle, getLowValue, getNoDataString, getPeakValue, getTitle, getUnitLabel, getUnitLegend, getValueLegend, getXLabelHeight, getXLabelWidth, getXLegendHeight, hasData, initFonts, postInit, preInit, scale, setFormat, setNoDataString, setNumberDataSets, setTitle, setUnitLegend, setValueLegend |
| Methods inherited from class org.rhq.enterprise.gui.image.WebImage |
getFontMetrics, getImage, getTextCenter, getTextCenter, getTextCenter, isRunnable, setBorder, writeJpegImage, writeJpegImage, writePngImage, writePngImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_HIGHLOW_COLOR
protected static final Color DEFAULT_HIGHLOW_COLOR
DEFAULT_HIGHLOW_HEIGHT
protected static final int DEFAULT_HIGHLOW_HEIGHT
- See Also:
- Constant Field Values
highLowColor
public Color highLowColor
- Color of High-Low bars.
HighLowChart
public HighLowChart()
HighLowChart
public HighLowChart(int width)
HighLowChart
public HighLowChart(int width,
int height)
init
protected void init()
- Overrides:
init in class ColumnChart
getHighLowLineColor
public Color getHighLowLineColor()
- Retrieves the color of the high-low line.
- Returns:
- A java.awt.Color object that contains the color of the columns.
- See Also:
Color
setHighLowLineColor
public void setHighLowLineColor(Color value)
- Sets the color of the columns.
- Parameters:
value - A java.awt.Color object that contains the color of the high-low line.
- Throws:
IllegalArgumentException - If the value parameter is null.- See Also:
Color
paint
protected void paint(ChartGraphics g,
Rectangle rect)
- Overrides:
paint in class ColumnChart
calcRanges
protected void calcRanges()
- Description copied from class:
Chart
- Calculates the high, low and average values of the chart data set.
- Overrides:
calcRanges in class Chart
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.