public class SVGPieChart extends AbstractSVGChart
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 |
---|
SVGPieChart()
Creates a new
PieChart object |
SVGPieChart(TDataBox box)
Creates a new
PieChart object initialized with an explicit
data box. |
SVGPieChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor)
Creates a new
SVGPieChart object initialized with an explicit
data box,a title and a background color. |
SVGPieChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor)
Creates a new
SVGPieChart object initialized with an explicit
data box,a title , a background color and a foreground color. |
Modifier and Type | Method and Description |
---|---|
protected void |
calculate() |
protected void |
calculateLabelSize() |
double |
getHollowPercent()
Gets the percent of hollow.
|
protected int |
getLabelTextPosition(double angle)
Gets the position of the text of the label.
|
java.awt.Color |
getShadowColor()
Gets the shadow color of this chart
|
double |
getStartAngle()
Gets the start angle of this chart
|
double |
getValueTextPositionScale() |
boolean |
is3D() |
protected boolean |
isAppearable(Element element) |
boolean |
isHollow()
Determines whether this pie chart is hollow.
|
boolean |
isValueTextPercent()
Determines whether the value text percent of this chart is visible
|
void |
paintChart(SVGContext context,
java.lang.StringBuffer result,
int width,
int height)
Paints the chart graphics.
|
void |
set3D(boolean is3D) |
void |
setHollow(boolean hollow)
Sets whether this pie chart is hollow.
|
void |
setHollowPercent(double hollowPercent)
Sets a new percent of hollow.
|
void |
setShadowColor(java.awt.Color shadowColor)
Sets a shadow color for this chart
|
void |
setStartAngle(double startAngle)
Sets a start angle for this chart
|
void |
setValueTextPercent(boolean valueTextPercent)
Sets whether the value text percent of this chart should be shown on view component.
|
void |
setValueTextPositionScale(double valueTextPositionScale) |
java.lang.StringBuffer |
toSVGContent(SVGContext context,
int width,
int height) |
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 SVGPieChart()
PieChart
objectpublic SVGPieChart(TDataBox box)
PieChart
object initialized with an explicit
data box.box
- an explicit data box object.public SVGPieChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor)
SVGPieChart
object initialized with an explicit
data box,a title and a background color.box
- an explicit data box object.title
- a String
titlebackgroundColor
- a background Color
objectpublic SVGPieChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
SVGPieChart
object initialized with an explicit
data box,a title , a background color and a foreground color.box
- an explicit data box object.title
- a String
titlebackgroundColor
- a background Color
objectforegroundColor
- a foreground Color
objectprotected boolean isAppearable(Element element)
protected void calculate()
calculate
in class AbstractSVGChart
public java.lang.StringBuffer toSVGContent(SVGContext context, int width, int height)
toSVGContent
in class AbstractSVGChart
public void paintChart(SVGContext context, java.lang.StringBuffer result, int width, int height)
g
- the Graphics
context in which to paintwidth
- the width of the chart panelheight
- the height of the chart panelprotected void calculateLabelSize()
protected int getLabelTextPosition(double angle)
public double getStartAngle()
public void setStartAngle(double startAngle)
startAngle
- new start anglepublic boolean isValueTextPercent()
public void setValueTextPercent(boolean valueTextPercent)
valueTextPercent
- if true, shows value text percent, false otherwise.public java.awt.Color getShadowColor()
public void setShadowColor(java.awt.Color shadowColor)
shadowColor
- new shadow colorpublic boolean isHollow()
public void setHollow(boolean hollow)
hollow
- True if this pie chart is hollow, false otherwise.public double getHollowPercent()
public void setHollowPercent(double hollowPercent)
hollowPercent
- a new percent of hollow.public boolean is3D()
public void set3D(boolean is3D)
public double getValueTextPositionScale()
public void setValueTextPositionScale(double valueTextPositionScale)
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.