public class SVGLineChart 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 |
---|
SVGLineChart()
Creates a
LineChart object |
SVGLineChart(TDataBox box)
Creates a
LineChart object initialed with an explicit data
box The data box could not be null value, which'll cause throw a
exception. |
SVGLineChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor)
Creates a
LineChart object initialized with an explicit
data box,a title text and a background color. |
SVGLineChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor)
Creates a
LineChart 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() |
java.awt.Color |
getAreaColor(Element element)
Gets the area color of a specified
Element object. |
double |
getEndX() |
protected java.awt.Rectangle |
getInflexionBounds(Element element,
java.awt.Point point) |
int |
getInflexionStyle() |
int |
getInflexionStyle(Element element)
Gets the inflexion style of a specified
Element , if the
element has inflexion style in it's client property, the client property
will be return, else the inflexion style of this chart will be return. |
int |
getLineType()
Gets the type of the line.
|
double |
getStartX() |
protected int |
getXAxisExtraGap()
Gets the gap distance from the x-axis
|
java.awt.Color |
getXScaleLineColor()
Gets the color of the scale line along the x-axis.
|
java.lang.String |
getXScaleLineStroke()
Gets the stroke of the scale line which is along x-axis.
|
int |
getXScaleTextSpanCount()
Gets the span count of the scale text along the x-axis.
|
protected void |
init()
Initializes the line chart.
|
boolean |
isInflexionVisible()
Determines whether the inflexion is visible.
|
boolean |
isInterruptedWhenNullValue()
Determines whether the line is interrupted when some value is null.
|
boolean |
isXScaleLineVisible() |
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) |
protected void |
paintInflexion(SVGContext context,
java.lang.StringBuffer result,
Element element,
java.awt.Point point) |
void |
setEndX(double endX) |
void |
setInflexionStyle(int inflexionStyle) |
void |
setInflexionVisible(boolean inflexionVisible)
Sets whether the inflexion should be visible.
|
void |
setInterruptedWhenNullValue(boolean interruptedWhenNullValue)
Sets whether the line should be interrupted when some value is null
|
void |
setLineType(int lineType)
Sets a new type for the line.
|
void |
setStartX(double startX) |
void |
setXScaleLineColor(java.awt.Color scaleLineColor)
Sets a new color for the scale line along the x-axis.
|
void |
setXScaleLineStroke(java.lang.String xScaleLineStroke)
Sets a new stroke for the scale line which is along the x-axis.
|
void |
setXScaleLineVisible(boolean scaleLineVisible)
Sets whether the scale line along the x-axis should be visible.
|
void |
setXScaleTextSpanCount(int scaleTextSpanCount)
Sets a new span count for the scale text along the x-axis.
|
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 SVGLineChart()
LineChart
objectpublic SVGLineChart(TDataBox box)
LineChart
object initialed 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 SVGLineChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor)
LineChart
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 SVGLineChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
LineChart
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()
public void setXScaleLineVisible(boolean scaleLineVisible)
scaleLineVisible
- if true the scale line along the x-axis should be
visible,false otherwisepublic boolean isInflexionVisible()
public void setInflexionVisible(boolean inflexionVisible)
inflexionVisible
- if true the inflexion should be fisible,false otherwise.protected void calculate()
calculate
in class AbstractSVGChart
public java.lang.String getXScaleLineStroke()
public void setXScaleLineStroke(java.lang.String xScaleLineStroke)
xScaleLineStroke
- a new stroke for the scale line which is along x-axispublic java.awt.Color getXScaleLineColor()
public void setXScaleLineColor(java.awt.Color scaleLineColor)
scaleLineColor
- a new Color
object for the scale line along the
x-axispublic int getLineType()
public void setLineType(int lineType)
lineType
- a new type for the line.public int getInflexionStyle(Element element)
Element
, if the
element has inflexion style in it's client property, the client property
will be return, else the inflexion style of this chart will be return.element
- a specified Element
objectElement
protected java.awt.Rectangle getInflexionBounds(Element element, java.awt.Point point)
public boolean isInterruptedWhenNullValue()
public void setInterruptedWhenNullValue(boolean interruptedWhenNullValue)
interruptedWhenNullValue
- if true the line should be interrupted when some value is
null,false otherwise.public int getXScaleTextSpanCount()
public void setXScaleTextSpanCount(int scaleTextSpanCount)
scaleTextSpanCount
- a new span count of the scale text along the x-axisprotected int getXAxisExtraGap()
getXAxisExtraGap
in class AbstractSVGScaleChart
g2d
- the Graphics
context in which to paintprotected 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
public java.awt.Color getAreaColor(Element element)
Element
object.element
- a specified Element
objectprotected void paintInflexion(SVGContext context, java.lang.StringBuffer result, Element element, java.awt.Point point)
public double getEndX()
public void setEndX(double endX)
public double getStartX()
public void setStartX(double startX)
public int getInflexionStyle()
public void setInflexionStyle(int inflexionStyle)
public boolean isXScaleLineVisible()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.