public class SVGBarChart extends AbstractSVGScaleChart
endIndex, markers, startIndex, valueSpanCount, xAxisFillColor, xAxisOutlineColor, xAxisStroke, xAxisText, xAxisTextColor, xAxisTextFont, xAxisValue, xAxisVisible, xScaleTextColor, xScaleTextFont, xScaleTextList, xScaleTextOrientation, xScaleTextSpanCount, xScaleTextVisible, yAxisFillColor, yAxisOutlineColor, yAxisStroke, yAxisText, yAxisTextColor, yAxisTextFont, yAxisTextGap, yAxisTextOrientation, yAxisVisible, yscaleAutoCaculateFlag, yScaleLineColor, yScaleLineStroke, yScaleLineVisible, yScaleMinTextVisible, yScalePixelGap, yScaleTextColor, yScaleTextFont, yScaleTextFormat, yScaleTextInside, yScaleTextVisible, yScaleValueGap, yScaleValueGapAutoCalculate
backgroundBounds, backgroundColor, backgroundFillColor, backgroundFillOpacity, backgroundGradient, backgroundGradientColor, backgroundGradientFactory, backgroundOutlineColor, backgroundStroke, backgroundVisible, box, enableZoomAndPan, foregroundColor, format, gradient, gradientColor, legendFont, legendPosition, legendSize, legendVisible, lowerLimit, max, min, proportions, proportionsOfRange, proportionsOfSum, publishedElements, range, selectedColor, selectedOffset, selectedStroke, shadowOffset, sortComparator, stroke, sum, svgXMLNS, textGap, unit, upperLimit, valueTextCenter, valueTextColor, valueTextFont, valueTextPosition, valueTextVisible, visibleFilters, xGap, yGap
Constructor and Description |
---|
SVGBarChart()
Creates a new
SVGBarChart object. |
SVGBarChart(TDataBox box)
Creates a
SVGBarChart object initialized with an explicit
data box. |
SVGBarChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor)
Creates a
SVGBarChart object initialized with an explicit
data box,a title text and a background color. |
SVGBarChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor)
Creates a
SVGBarChart object initialized with an explicit
data box,a title text, a background color and a foreground color. |
Modifier and Type | Method and Description |
---|---|
protected void |
calculate() |
protected void |
calculatePercentValuesProportionsOfRange(int categoryCount) |
int |
getBarType()
Gets the type of the bar chart.
|
int |
getBundleSize()
Gets the size of the bundle.
|
protected java.lang.String |
getPercentFormatedText(Element element,
double value,
int index,
double percent) |
protected int |
getXAxisExtraGap()
Gets the gap distance from the x-axis
|
protected void |
init()
Initializes the bar chart.
|
boolean |
isPercentTypeValueVisible()
Gets whether the value in percent type is visible.
|
protected void |
paintContent(SVGContext context,
java.lang.StringBuffer result,
int width,
int height,
int yAxisTextGap,
int xAxisTextGap,
int xAxisWidth,
int yAxisHeight,
int baseLine,
double pixelGap,
double valueGap)
Paints the chart content
|
void |
setBarType(int barType)
Sets a new type for the bar chart.
|
void |
setBundleSize(int bundleSize)
Sets the size of the bundle.
|
void |
setPercentTypeValueVisible(boolean percentTypeValueVisible)
Sets whether the value in percent type should be visible.
|
addMarker, addXScaleText, calculateValuesProportionsOfRange, calculateYScaleValueGap, getAutoScaleValueGap, getEndIndex, getFormatedYScaleText, getStartIndex, getValueSpanCount, getXAxisFillColor, getXAxisOutlineColor, getXAxisStroke, getXAxisText, getXAxisTextColor, getXAxisTextFont, getXAxisValue, getXScaleText, getXScaleTextColor, getXScaleTextFont, getXScaleTextOrientation, getYAxisFillColor, getYAxisOutlineColor, getYAxisStroke, getYAxisText, getYAxisTextColor, getYAxisTextFont, getYAxisTextGap, getYAxisTextOrientation, getYScaleLineColor, getYScaleLineStroke, getYScalePixelGap, getYScaleTextColor, getYScaleTextFont, getYScaleTextFormat, getYScaleValueGap, isXAxisVisible, isXScaleTextVisible, isYAxisVisible, isYScaleLineVisible, isYScaleMinTextVisible, isYScaleTextInside, isYScaleTextVisible, isYScaleValueGapAutoCalculate, paintChart, paintXAxis, removeMarker, setEndIndex, setStartIndex, setValueSpanCount, setXAxisFillColor, setXAxisOutlineColor, setXAxisStroke, setXAxisText, setXAxisTextColor, setXAxisTextFont, setXAxisValue, setXAxisVisible, setXScaleTextColor, setXScaleTextFont, setXScaleTextList, setXScaleTextOrientation, setXScaleTextVisible, setYAxisFillColor, setYAxisOutlineColor, setYAxisStroke, setYAxisText, setYAxisTextColor, setYAxisTextFont, setYAxisTextGap, setYAxisTextOrientation, setYAxisVisible, setYScaleLineColor, setYScaleLineStroke, setYScaleLineVisible, setYScaleMinTextVisible, setYScalePixelGap, setYScaleTextColor, setYScaleTextFont, setYScaleTextFormat, setYScaleTextInside, setYScaleTextVisible, setYScaleValueGap, setYScaleValueGapAutoCalculate, toSVGContent, toValidHeight
addVisibleFilter, appendElementAttributesSVG, appendElementSelectionAttribute, appendSVGBackground, appendSVGPreDefine, getBackgroundBounds, getBackgroundColor, getBackgroundFillColor, getBackgroundFillOpacity, getBackgroundGradientColor, getBackgroundGradientFactory, getBackgroundOutlineColor, getBackgroundStroke, getColor, getDataBox, getForegroundColor, getFormat, getFormat, getFormatedText, getFormatedText, getGradientColor, getGradientColor, getGradientID, getLegendFont, getLegendLabel, getLegendPosition, getLegendSize, getLowerLimit, getMax, getMin, getSelectedColor, getSelectedOffset, getSelectedStroke, getShadowOffset, getSortComparator, getStroke, getStroke, getSVGXMLNS, getTextGap, getType, getUnit, getUpperLimit, getValue, getValues, getValueTextColor, getValueTextFont, getValueTextPosition, getXGap, getYGap, insertSVGHeadBefore, isBackgroundGradient, isBackgroundVisible, isEnableZoomAndPan, isGradient, isLegendVisible, isValueTextCenter, isValueTextVisible, isVisible, paintBackground, paintLegend, publishData, removeVisibleFilter, setBackgroundColor, setBackgroundFillColor, setBackgroundFillOpacity, setBackgroundGradient, setBackgroundGradientColor, setBackgroundGradientFactory, setBackgroundOutlineColor, setBackgroundStroke, setBackgroundVisible, setDataBox, setEnableZoomAndPan, setForegroundColor, setFormat, setGradient, setGradientColor, setLegendFont, setLegendPosition, setLegendSize, setLegendVisible, setLowerLimit, setSelectedOffset, setShadowOffset, setSortComparator, setStroke, setSVGXMLNS, setTextGap, setType, setUnit, setUpperLimit, setValueTextCenter, setValueTextColor, setValueTextFont, setValueTextPosition, setValueTextVisible, setXGap, setYGap, toSVG, updateTViewUI
public SVGBarChart()
SVGBarChart
object.public SVGBarChart(TDataBox box)
SVGBarChart
object initialized with an explicit
data box. The data box could not be null value, which'll cause throw a exception.box
- an explicit data box object.public SVGBarChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor)
SVGBarChart
object initialized with an explicit
data box,a title text and a background color.
The data box could not be null value, which'll cause throw a exception.box
- an explicit data box object.title
- a String
textbackgroundColor
- a background Color
public SVGBarChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
SVGBarChart
object initialized with an explicit
data box,a title text, a background color and a foreground color.
The data box could not be null value, which'll cause throw a exception.box
- an explicit data box object.title
- a String
textbackgroundColor
- a background Color
foregroundColor
- a foreground Color
protected void init()
protected void calculate()
calculate
in class AbstractSVGChart
protected void calculatePercentValuesProportionsOfRange(int categoryCount)
protected int getXAxisExtraGap()
AbstractSVGScaleChart
getXAxisExtraGap
in class AbstractSVGScaleChart
protected void paintContent(SVGContext context, java.lang.StringBuffer result, int width, int height, int yAxisTextGap, int xAxisTextGap, int xAxisWidth, int yAxisHeight, int baseLine, double pixelGap, double valueGap)
paintContent
in class AbstractSVGScaleChart
protected java.lang.String getPercentFormatedText(Element element, double value, int index, double percent)
public int getBarType()
public void setBarType(int barType)
barType
- a new type for the bar chart.public int getBundleSize()
setBundleSize(int)
public void setBundleSize(int bundleSize)
bundleSize
- the size of the bundle.getBundleSize()
public boolean isPercentTypeValueVisible()
setPercentTypeValueVisible(boolean)
public void setPercentTypeValueVisible(boolean percentTypeValueVisible)
percentTypeValueVisible
- if true the value in percent type should be visible, false otherwise.isPercentTypeValueVisible()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.