public class VerticalChart extends Chart
| Modifier and Type | Field and Description |
|---|---|
protected static Color |
DANGER_COLOR |
protected static Color[] |
DEFAULT_COLORS |
protected static Color |
GOOD_COLOR |
protected static Color |
UNKNOWN_COLOR |
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, yTopLegendantiAliased, 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| Modifier | Constructor and Description |
|---|---|
|
VerticalChart() |
protected |
VerticalChart(int charts) |
protected |
VerticalChart(int width,
int height) |
protected |
VerticalChart(int width,
int height,
int charts) |
| Modifier and Type | Method and Description |
|---|---|
protected Point |
adjustBorders(Point pt) |
protected Rectangle |
adjustRectangle(Graphics2D g,
Rectangle rect)
Give the child class an opportunity to change the size of the interior rectangle.
|
protected Rectangle |
draw(ChartGraphics g) |
protected int |
findDataPointIndex(long timestamp,
DataPointCollection coll) |
int |
getCumulativeTrend() |
protected Point |
getDataPoint(Rectangle rect,
int datapoint) |
protected Point |
getDataPoint(Rectangle rect,
int datapoint,
DataPointCollection coll) |
protected Rectangle |
getInteriorRectangle(ChartGraphics g) |
protected String[] |
getXLabels() |
protected int[] |
getXPoints(ChartGraphics g,
Rectangle rect) |
protected int |
getYLabelWidth(Graphics2D g)
Calculates the label width of the vertical axis of the chart.
|
protected void |
init() |
protected Collection<DataPointCollection> |
initData(Collection<DataPointCollection> coll) |
protected void |
paint(ChartGraphics graph,
Rectangle rect) |
void |
setCumulativeTrend(int trend) |
protected void |
setTimeScale(long scale) |
calc, calcRanges, calcVariableHeight, calcVariableWidth, checkHighLow, 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, setValueLegendgetFontMetrics, getImage, getTextCenter, getTextCenter, getTextCenter, isRunnable, setBorder, writeJpegImage, writeJpegImage, writePngImage, writePngImageprotected static final Color[] DEFAULT_COLORS
protected static final Color GOOD_COLOR
protected static final Color DANGER_COLOR
protected static final Color UNKNOWN_COLOR
public VerticalChart()
protected VerticalChart(int width,
int height)
protected VerticalChart(int charts)
protected VerticalChart(int width,
int height,
int charts)
public int getCumulativeTrend()
public void setCumulativeTrend(int trend)
protected void init()
protected Collection<DataPointCollection> initData(Collection<DataPointCollection> coll)
protected Rectangle adjustRectangle(Graphics2D g, Rectangle rect)
ChartadjustRectangle in class Chartprotected Rectangle getInteriorRectangle(ChartGraphics g)
getInteriorRectangle in class Chartprotected String[] getXLabels()
getXLabels in class Chartprotected int[] getXPoints(ChartGraphics g, Rectangle rect)
protected int getYLabelWidth(Graphics2D g)
ChartgetYLabelWidth in class Chartprotected Rectangle draw(ChartGraphics g)
protected void paint(ChartGraphics graph, Rectangle rect)
protected Point getDataPoint(Rectangle rect, int datapoint, DataPointCollection coll)
protected void setTimeScale(long scale)
protected int findDataPointIndex(long timestamp,
DataPointCollection coll)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.