public class SVGDialChart 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 |
---|
SVGDialChart() |
SVGDialChart(TDataBox box) |
SVGDialChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor) |
SVGDialChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculate() |
protected double |
getActualBallSize()
Gets the actual size of the ball.
|
double |
getArcRange()
Gets the range of the arc in the arc type dial chart.
|
java.awt.Color |
getBallBorderColor()
Gets the border color of the ball of this chart.
|
java.awt.Color |
getBallColor()
Gets the ball color of this chart.
|
java.awt.Color |
getBallGradientColor()
Gets the gradient color of the ball.
|
int |
getBallGradientFactory()
Gets the gradient factory of the ball.
|
double |
getBallPercentSize()
Gets the percent size of the ball.
|
double |
getBallSize()
Gets the ball size of this chart.
|
int |
getDialType()
Gets the type of the dial chart.
|
double |
getEndAngle()
Gets the value of the end angle of this chart.
|
double |
getHandLegth(Element element)
Gets the length of the element.
|
int |
getHandStyle(Element element)
Gets the hand style of the element.
|
java.util.List |
getMarkers()
Gets the markers of this chart.
|
double |
getMaxValue()
Gets the maximal value of this chart.
|
double |
getMinValue()
Gets the minimal value of this chart.
|
java.awt.Color |
getRingBorderColor()
Gets the ring border color of this chart.
|
java.awt.Rectangle |
getRingBound()
Gets the ring bound.
|
java.awt.Color |
getRingColor()
Gets the color of the ring of this chart.
|
java.awt.Color |
getRingFillColor()
Gets the fill color of this chart panel.
|
java.awt.Color |
getRingGradientColor()
Gets the gradient color of the ring.
|
int |
getRingGradientFactory()
Gets the gradient factory of the ring.
|
java.lang.String |
getRingStroke()
Gets the stroke of the ring of this chart.
|
java.awt.Color |
getScaleColor()
Gets the color of the scale of this chart.
|
double |
getScaleLength()
Gets the length of the scale of the chart.
|
int |
getScaleMajorCount()
Gets the major count of the scale of this chart.
|
int |
getScaleMinorCount()
Gets the minor scale number of this chart.
|
java.lang.String |
getScaleStroke()
Gets the stroke of the scale of this chart.
|
int |
getScaleStyle()
Gets the scale style of this chart.
|
java.awt.Color |
getScaleTextColor()
Gets the color of the scale text.
|
java.awt.Font |
getScaleTextFont()
Gets the font of the scale text of this chart.
|
protected java.lang.String |
getScaleValueText(int index,
double valueRange,
int scaleMajorCount)
Gets the scale value text
|
double |
getStartAngle()
Gets the value of the start angle of this chart.
|
java.lang.String |
getToolTipText(Element element) |
boolean |
isBallGradient()
Gets whether the ball is gradient.
|
boolean |
isRingBorderVisible()
Determines whether the border of the ring of this chart is visible
|
boolean |
isRingGradient()
Determines whether the fill color of the ring is gradient.
|
boolean |
isScaleInside()
Determines whether the scale of this chart is shown inside the ring.
|
boolean |
isScaleMinorVisible()
Determines whether the minor scale of this chart is visible.
|
boolean |
isScaleMinTextVisible()
Gets whether the minimal text scale is visible.
|
boolean |
isScaleTextVisible()
Determines whether the scale text of this chart is visible.
|
void |
paintChart(SVGContext context,
java.lang.StringBuffer result,
int width,
int height)
Paints the dial chart in the g2d context with the width and height.
|
void |
setArcRange(double arcRange)
Sets the range of the arc in the arc type dial chart.
|
void |
setBallBorderColor(java.awt.Color ballBorderColor)
Sets the color for the border of the ball of this chart.
|
void |
setBallColor(java.awt.Color ballColor)
Sets the color for the ball of this chart.
|
void |
setBallGradient(boolean ballGradient)
Sets whether the ball is gradient.
|
void |
setBallGradientColor(java.awt.Color ballGradientColor)
Sets the gradient color for the ball.
|
void |
setBallGradientFactory(int ballGradientFactory)
Sets the gradient factory for the ball.
|
void |
setBallPercentSize(double ballPercentSize)
Sets the percent size of the ball, if ballPercentSize is greater than 0,
the size of the ball will use the ballPercentSize.
|
void |
setBallSize(double ballSize)
Sets the size for the ball of this chart.
|
void |
setDialType(int dialType)
Sets the type of the dial chart.
|
void |
setEndAngle(double endAngle)
Sets the value for the end angle of this chart.
|
void |
setMarkers(java.util.List markers)
Sets the marker for this chart.
|
void |
setMaxValue(double maxValue)
Sets the maximal value for this chart.
|
void |
setMinValue(double minValue)
Sets the value for the minimal value of this chart.
|
void |
setRingBorderColor(java.awt.Color ringBorderColor)
Sets a new ring border color for this chart.
|
void |
setRingBorderVisible(boolean ringBorderVisible)
Sets whether the border of the ring of this chart should be visible.
|
void |
setRingColor(java.awt.Color ringColor)
Sets the color for the ring of this chart.
|
void |
setRingFillColor(java.awt.Color fillColor)
Sets a new fill color for this chart.
|
void |
setRingGradient(boolean ringGradient)
Sets whether the fill color of the ring should be gradient.
|
void |
setRingGradientColor(java.awt.Color ringGradientColor)
Sets the gradient color of the ring.
|
void |
setRingGradientFactory(int ringGradientFactory)
Sets the gradient factory of the ring .
|
void |
setRingStroke(java.lang.String ringStroke)
Sets the stroke for the ring of this chart.
|
void |
setScaleColor(java.awt.Color scaleColor)
Sets the color for the scale of this chart.
|
void |
setScaleInside(boolean scaleInside)
Sets whether the scale of this chart should be shown inside the ring.
|
void |
setScaleLength(double scaleLength)
Sets the length for the scale of the chart.
|
void |
setScaleMajorCount(int scaleMajorCount)
Sets a new major count for the scale of this chart.
|
void |
setScaleMinorCount(int scaleMinorNumber)
Sets the minor scale number of this chart.
|
void |
setScaleMinorVisible(boolean scaleMinorVisible)
Sets whether the minor scale of this chart should be visible.
|
void |
setScaleMinTextVisible(boolean scaleMinTextVisible)
Sets whether the minimal text scale should be visible.
|
void |
setScaleStroke(java.lang.String scaleStroke)
Sets the stroke for the scale of this chart.
|
void |
setScaleStyle(int scaleStyle)
Sets the style for the scale of this chart.
|
void |
setScaleTextColor(java.awt.Color scaleTextColor)
Sets the color for the scale text.
|
void |
setScaleTextFont(java.awt.Font scaleTextFont)
Sets the font for the scale of this chart.
|
void |
setScaleTextVisible(boolean scaleTextVisible)
Sets whether the scale text of this chart should be visible.
|
void |
setStartAngle(double startAngle)
Sets the value for the start angle of this chart.
|
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 SVGDialChart()
public SVGDialChart(TDataBox box)
public SVGDialChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor)
public SVGDialChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
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)
g2d
- the Graphics
context in which to paintwidth
- the width of the chart panel.height
- the height of the chart panel.protected java.lang.String getScaleValueText(int index, double valueRange, int scaleMajorCount)
index
- the index of the scalevalueRange
- the scale value rangescaleMajorCount
- the scale major countprotected double getActualBallSize()
public java.lang.String getToolTipText(Element element)
public double getHandLegth(Element element)
element
- public int getHandStyle(Element element)
element
- public java.util.List getMarkers()
setMarkers(List)
public void setMarkers(java.util.List markers)
markers
- the marker for this chart.getMarkers()
public boolean isScaleInside()
setScaleInside(boolean)
public void setScaleInside(boolean scaleInside)
scaleInside
- if true the scale should be shown inside the ring,false otherwise.isScaleInside()
public double getStartAngle()
setStartAngle(double)
public void setStartAngle(double startAngle)
startAngle
- the value for the start angle of this chart.getStartAngle()
public double getEndAngle()
setEndAngle(double)
public void setEndAngle(double endAngle)
endAngle
- the value for the end angle of this chart.getEndAngle()
public double getMaxValue()
setMaxValue(double)
public void setMaxValue(double maxValue)
maxValue
- the maximal value for this chart.getMaxValue()
public double getMinValue()
setMinValue(double)
public void setMinValue(double minValue)
minValue
- the value for the minimal value of this chart.getMinValue()
public double getScaleLength()
setScaleLength(double)
public void setScaleLength(double scaleLength)
scaleLength
- the length for the scale of the chart.getScaleLength()
public java.lang.String getRingStroke()
setRingStroke(String)
public void setRingStroke(java.lang.String ringStroke)
ringStroke
- the stroke for the ring of this chart.getRingStroke()
public java.awt.Color getRingColor()
setRingColor(Color)
public void setRingColor(java.awt.Color ringColor)
ringColor
- the color for the ring of this chart.getRingColor()
public java.lang.String getScaleStroke()
setScaleStroke(String)
public void setScaleStroke(java.lang.String scaleStroke)
scaleStroke
- the stroke for the scale of this chart.getScaleStroke()
public java.awt.Color getScaleColor()
setScaleColor(Color)
public void setScaleColor(java.awt.Color scaleColor)
scaleColor
- the color for the scale of this chart.getScaleColor()
public java.awt.Color getRingBorderColor()
setRingBorderColor(Color)
public void setRingBorderColor(java.awt.Color ringBorderColor)
ringBorderColor
- A new ring border color for this chart.getRingBorderColor()
public boolean isScaleTextVisible()
setScaleTextVisible(boolean)
public void setScaleTextVisible(boolean scaleTextVisible)
scaleTextVisible
- if true the scale text should be visible,false otherwise.setScaleTextVisible(boolean)
public int getScaleMajorCount()
#setSetScaleMajorCount(int)
public void setScaleMajorCount(int scaleMajorCount)
scaleMajorCount
- a new major count for the scale of this chartgetScaleMajorCount()
public boolean isScaleMinorVisible()
setScaleMinorVisible(boolean)
public void setScaleMinorVisible(boolean scaleMinorVisible)
scaleMinorVisible
- if true the minor scale of this chart should be visible,false otherwise.isScaleMinorVisible()
public java.awt.Color getBallBorderColor()
setBallBorderColor(Color)
public void setBallBorderColor(java.awt.Color ballBorderColor)
ballBorderColor
- the color for the border of the ball of this chart.getBallBorderColor()
public double getBallSize()
setBallSize(double)
public void setBallSize(double ballSize)
ballSize
- The size for the ball of this chart.setBallPercentSize(double)
,
getBallSize()
public int getScaleStyle()
setScaleStyle(int)
public void setScaleStyle(int scaleStyle)
TWaverConst.DIAL_SCALE_STYLE_LINE
TWaverConst.DIAL_SCALE_STYLE_BALL
scaleStyle
- The style for the scale of this chart.getScaleStyle()
public java.awt.Color getBallColor()
setBallColor(Color)
public void setBallColor(java.awt.Color ballColor)
ballColor
- the color for the ball of this chart.getBallColor()
public int getScaleMinorCount()
#setScaleMinorNumber(int)
public void setScaleMinorCount(int scaleMinorNumber)
scaleMinorNumber
- the minor scale number of this chart.#getScaleMinorNumber()
public boolean isRingBorderVisible()
setRingBorderVisible(boolean)
public void setRingBorderVisible(boolean ringBorderVisible)
ringBorderVisible
- if true if border of the ring of this chart should be visible,false otherwise.isRingBorderVisible()
public java.awt.Color getRingFillColor()
setRingFillColor(Color)
public void setRingFillColor(java.awt.Color fillColor)
ringFillColor
- a new Color
object for the fill color of this chartgetRingFillColor()
public boolean isRingGradient()
setRingGradient(boolean)
public void setRingGradient(boolean ringGradient)
gradient
- if true the ring should be filled with gradient color, false otherwise.isRingGradient()
public java.awt.Color getBallGradientColor()
setBallGradientColor(Color)
public void setBallGradientColor(java.awt.Color ballGradientColor)
ballGradientColor
- the gradient color for the ball.getBallGradientColor()
public boolean isBallGradient()
setBallGradient(boolean)
public void setBallGradient(boolean ballGradient)
ballGradient
- if true the ball is gradient, false otherwise.isBallGradient()
public int getRingGradientFactory()
setRingGradientFactory(int)
public void setRingGradientFactory(int ringGradientFactory)
ringGradientFactory
- the gradient factory of the ring.getRingGradientFactory()
public int getBallGradientFactory()
setBallGradientFactory(int)
public void setBallGradientFactory(int ballGradientFactory)
ballGradientFactory
- the gradient factory for the ball.getBallGradientFactory()
public java.awt.Color getRingGradientColor()
setRingGradientColor(Color)
public void setRingGradientColor(java.awt.Color ringGradientColor)
The
- gradient color of the ring.getRingGradientColor()
public boolean isScaleMinTextVisible()
setScaleMinTextVisible(boolean)
public void setScaleMinTextVisible(boolean scaleMinTextVisible)
If
- true the minimal text scale should be visible, false otherwise.isScaleMinTextVisible()
public java.awt.Rectangle getRingBound()
public java.awt.Color getScaleTextColor()
setScaleTextColor(Color)
public void setScaleTextColor(java.awt.Color scaleTextColor)
The
- color for the scale text.getScaleTextColor()
public java.awt.Font getScaleTextFont()
setScaleTextFont(Font)
public void setScaleTextFont(java.awt.Font scaleTextFont)
scaleTextFont
- the font for the scale of this chart.getScaleTextFont()
public void setArcRange(double arcRange)
arcRange
- The range of the arc in the arc type dial chart.getArcRange()
public double getArcRange()
setArcRange(double)
public int getDialType()
setDialType(int)
public void setDialType(int dialType)
TWaverConst.DIAL_TYPE_WHOLE
TWaverConst.DIAL_TYPE_ARC
dialType
- public double getBallPercentSize()
setBallPercentSize(double)
,
setBallSize(double);
,
getBallSize()
public void setBallPercentSize(double ballPercentSize)
ballPercentSize
- the percent size of the ball.setBallSize(double)
,
getBallSize()
,
setBallPercentSize(double)
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.