Package net.sf.jasperreports.charts.base
Class JRBaseLinePlot
- java.lang.Object
-
- net.sf.jasperreports.charts.base.JRBaseChartPlot
-
- net.sf.jasperreports.charts.base.JRBaseLinePlot
-
- All Implemented Interfaces:
Serializable,Cloneable,JRCategoryAxisFormat,JRCategoryPlot,JRChartPlot,JRCommonLinePlot,JRLinePlot,JRValueAxisFormat,JRChangeEventsSupport,JRCloneable
- Direct Known Subclasses:
JRDesignLinePlot
public class JRBaseLinePlot extends JRBaseChartPlot implements JRLinePlot
- Author:
- Flavius Sana (flavius_sana@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
JRBaseChartPlot.JRBaseSeriesColor
-
Nested classes/interfaces inherited from interface net.sf.jasperreports.charts.JRChartPlot
JRChartPlot.JRSeriesColor
-
-
Field Summary
Fields Modifier and Type Field Description protected ColorcategoryAxisLabelColorprotected JRExpressioncategoryAxisLabelExpressionprotected JRFontcategoryAxisLabelFontprotected ColorcategoryAxisLineColorprotected ColorcategoryAxisTickLabelColorprotected JRFontcategoryAxisTickLabelFontprotected StringcategoryAxisTickLabelMaskprotected BooleancategoryAxisVerticalTickLabelsprotected JRExpressiondomainAxisMaxValueExpressionprotected JRExpressiondomainAxisMinValueExpressionstatic StringPROPERTY_SHOW_LINESstatic StringPROPERTY_SHOW_SHAPESprotected JRExpressionrangeAxisMaxValueExpressionprotected JRExpressionrangeAxisMinValueExpressionprotected ColorvalueAxisLabelColorprotected JRExpressionvalueAxisLabelExpressionprotected JRFontvalueAxisLabelFontprotected ColorvalueAxisLineColorprotected ColorvalueAxisTickLabelColorprotected JRFontvalueAxisTickLabelFontprotected StringvalueAxisTickLabelMaskprotected BooleanvalueAxisVerticalTickLabels-
Fields inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
backcolor, backgroundAlpha, chart, foregroundAlpha, labelRotation, orientation, PROPERTY_BACKCOLOR, PROPERTY_BACKGROUND_ALPHA, PROPERTY_FOREGROUND_ALPHA, PROPERTY_LABEL_ROTATION, PROPERTY_ORIENTATION, PROPERTY_SERIES_COLORS, seriesColors
-
Fields inherited from interface net.sf.jasperreports.charts.JRCategoryAxisFormat
PROPERTY_CATEGORY_AXIS_TICK_LABEL_ROTATION
-
-
Constructor Summary
Constructors Constructor Description JRBaseLinePlot(JRChartPlot plot, JRChart chart)JRBaseLinePlot(JRLinePlot linePlot, ChartsBaseObjectFactory factory)
-
Method Summary
-
Methods inherited from class net.sf.jasperreports.charts.base.JRBaseChartPlot
addSeriesColor, clearSeriesColors, clone, getBackcolor, getBackgroundAlpha, getChart, getEventSupport, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, getStyleResolver, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.charts.JRChartPlot
addSeriesColor, clearSeriesColors, getBackcolor, getBackgroundAlpha, getChart, getForegroundAlpha, getLabelRotation, getOrientation, getOwnBackcolor, getSeriesColors, setBackcolor, setBackgroundAlpha, setForegroundAlpha, setLabelRotation, setOrientation, setSeriesColors
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
-
-
-
Field Detail
-
PROPERTY_SHOW_LINES
public static final String PROPERTY_SHOW_LINES
- See Also:
- Constant Field Values
-
PROPERTY_SHOW_SHAPES
public static final String PROPERTY_SHOW_SHAPES
- See Also:
- Constant Field Values
-
categoryAxisLabelExpression
protected JRExpression categoryAxisLabelExpression
-
categoryAxisLabelFont
protected JRFont categoryAxisLabelFont
-
categoryAxisLabelColor
protected Color categoryAxisLabelColor
-
categoryAxisTickLabelFont
protected JRFont categoryAxisTickLabelFont
-
categoryAxisTickLabelColor
protected Color categoryAxisTickLabelColor
-
categoryAxisTickLabelMask
protected String categoryAxisTickLabelMask
-
categoryAxisVerticalTickLabels
protected Boolean categoryAxisVerticalTickLabels
-
categoryAxisLineColor
protected Color categoryAxisLineColor
-
valueAxisLabelExpression
protected JRExpression valueAxisLabelExpression
-
rangeAxisMinValueExpression
protected JRExpression rangeAxisMinValueExpression
-
rangeAxisMaxValueExpression
protected JRExpression rangeAxisMaxValueExpression
-
domainAxisMinValueExpression
protected JRExpression domainAxisMinValueExpression
-
domainAxisMaxValueExpression
protected JRExpression domainAxisMaxValueExpression
-
valueAxisLabelFont
protected JRFont valueAxisLabelFont
-
valueAxisLabelColor
protected Color valueAxisLabelColor
-
valueAxisTickLabelFont
protected JRFont valueAxisTickLabelFont
-
valueAxisTickLabelColor
protected Color valueAxisTickLabelColor
-
valueAxisTickLabelMask
protected String valueAxisTickLabelMask
-
valueAxisVerticalTickLabels
protected Boolean valueAxisVerticalTickLabels
-
valueAxisLineColor
protected Color valueAxisLineColor
-
-
Constructor Detail
-
JRBaseLinePlot
public JRBaseLinePlot(JRChartPlot plot, JRChart chart)
-
JRBaseLinePlot
public JRBaseLinePlot(JRLinePlot linePlot, ChartsBaseObjectFactory factory)
-
-
Method Detail
-
getCategoryAxisLabelExpression
public JRExpression getCategoryAxisLabelExpression()
- Specified by:
getCategoryAxisLabelExpressionin interfaceJRCategoryPlot- Returns:
- the category axis label expression
-
getCategoryAxisLabelFont
public JRFont getCategoryAxisLabelFont()
- Specified by:
getCategoryAxisLabelFontin interfaceJRCategoryAxisFormat
-
getCategoryAxisLabelColor
public Color getCategoryAxisLabelColor()
- Specified by:
getCategoryAxisLabelColorin interfaceJRCategoryAxisFormat
-
getOwnCategoryAxisLabelColor
public Color getOwnCategoryAxisLabelColor()
- Specified by:
getOwnCategoryAxisLabelColorin interfaceJRCategoryAxisFormat
-
getCategoryAxisTickLabelFont
public JRFont getCategoryAxisTickLabelFont()
- Specified by:
getCategoryAxisTickLabelFontin interfaceJRCategoryAxisFormat
-
getCategoryAxisTickLabelColor
public Color getCategoryAxisTickLabelColor()
- Specified by:
getCategoryAxisTickLabelColorin interfaceJRCategoryAxisFormat
-
getOwnCategoryAxisTickLabelColor
public Color getOwnCategoryAxisTickLabelColor()
- Specified by:
getOwnCategoryAxisTickLabelColorin interfaceJRCategoryAxisFormat
-
getCategoryAxisTickLabelMask
public String getCategoryAxisTickLabelMask()
- Specified by:
getCategoryAxisTickLabelMaskin interfaceJRCategoryAxisFormat
-
getCategoryAxisVerticalTickLabels
public Boolean getCategoryAxisVerticalTickLabels()
- Specified by:
getCategoryAxisVerticalTickLabelsin interfaceJRCategoryAxisFormat
-
getCategoryAxisTickLabelRotation
public Double getCategoryAxisTickLabelRotation()
Description copied from interface:JRCategoryAxisFormatGets the angle in degrees to rotate the data axis labels. The range is -360 to 360. A positive value angles the label so it reads downwards wile a negative value angles the label so it reads upwards. Only charts that use a category based axis (such as line or bar charts) support label rotation.- Specified by:
getCategoryAxisTickLabelRotationin interfaceJRCategoryAxisFormat
-
setCategoryAxisTickLabelRotation
public void setCategoryAxisTickLabelRotation(Double labelRotation)
Description copied from interface:JRCategoryAxisFormatSets the angle in degrees to rotate the data axis labels. The range is -360 to 360. A positive value angles the label so it reads downwards wile a negative value angles the label so it reads upwards. Only charts that use a category based axis (such as line or bar charts) support label rotation.- Specified by:
setCategoryAxisTickLabelRotationin interfaceJRCategoryAxisFormat
-
getCategoryAxisLineColor
public Color getCategoryAxisLineColor()
- Specified by:
getCategoryAxisLineColorin interfaceJRCategoryAxisFormat
-
getOwnCategoryAxisLineColor
public Color getOwnCategoryAxisLineColor()
- Specified by:
getOwnCategoryAxisLineColorin interfaceJRCategoryAxisFormat
-
getValueAxisLabelExpression
public JRExpression getValueAxisLabelExpression()
- Specified by:
getValueAxisLabelExpressionin interfaceJRCategoryPlot- Returns:
- the value axis label expression
-
getRangeAxisMinValueExpression
public JRExpression getRangeAxisMinValueExpression()
- Specified by:
getRangeAxisMinValueExpressionin interfaceJRCategoryPlot- Returns:
- the minimum value expression for the range axis
-
getRangeAxisMaxValueExpression
public JRExpression getRangeAxisMaxValueExpression()
- Specified by:
getRangeAxisMaxValueExpressionin interfaceJRCategoryPlot- Returns:
- the maximum value expression for the range axis
-
getDomainAxisMinValueExpression
public JRExpression getDomainAxisMinValueExpression()
- Specified by:
getDomainAxisMinValueExpressionin interfaceJRCategoryPlot- Returns:
- the minimum value expression for the domain axis
-
getDomainAxisMaxValueExpression
public JRExpression getDomainAxisMaxValueExpression()
- Specified by:
getDomainAxisMaxValueExpressionin interfaceJRCategoryPlot- Returns:
- the maximum value expression for the domain axis
-
getValueAxisLabelFont
public JRFont getValueAxisLabelFont()
- Specified by:
getValueAxisLabelFontin interfaceJRValueAxisFormat
-
getValueAxisLabelColor
public Color getValueAxisLabelColor()
- Specified by:
getValueAxisLabelColorin interfaceJRValueAxisFormat
-
getOwnValueAxisLabelColor
public Color getOwnValueAxisLabelColor()
- Specified by:
getOwnValueAxisLabelColorin interfaceJRValueAxisFormat
-
getValueAxisTickLabelFont
public JRFont getValueAxisTickLabelFont()
- Specified by:
getValueAxisTickLabelFontin interfaceJRValueAxisFormat
-
getValueAxisTickLabelColor
public Color getValueAxisTickLabelColor()
- Specified by:
getValueAxisTickLabelColorin interfaceJRValueAxisFormat
-
getOwnValueAxisTickLabelColor
public Color getOwnValueAxisTickLabelColor()
- Specified by:
getOwnValueAxisTickLabelColorin interfaceJRValueAxisFormat
-
getValueAxisTickLabelMask
public String getValueAxisTickLabelMask()
- Specified by:
getValueAxisTickLabelMaskin interfaceJRValueAxisFormat
-
getValueAxisVerticalTickLabels
public Boolean getValueAxisVerticalTickLabels()
- Specified by:
getValueAxisVerticalTickLabelsin interfaceJRValueAxisFormat
-
getValueAxisLineColor
public Color getValueAxisLineColor()
- Specified by:
getValueAxisLineColorin interfaceJRValueAxisFormat
-
getOwnValueAxisLineColor
public Color getOwnValueAxisLineColor()
- Specified by:
getOwnValueAxisLineColorin interfaceJRValueAxisFormat
-
getShowShapes
public Boolean getShowShapes()
- Specified by:
getShowShapesin interfaceJRCommonLinePlot- Returns:
- the show shapes flag
-
getShowLines
public Boolean getShowLines()
- Specified by:
getShowLinesin interfaceJRCommonLinePlot- Returns:
- the show lines flag
-
setShowShapes
public void setShowShapes(Boolean value)
Description copied from interface:JRCommonLinePlotSets the show shapes flag- Specified by:
setShowShapesin interfaceJRCommonLinePlot- Parameters:
value- the show shapes flag
-
setShowLines
public void setShowLines(Boolean value)
Description copied from interface:JRCommonLinePlotSets the show lines flag- Specified by:
setShowLinesin interfaceJRCommonLinePlot- Parameters:
value- the show lines flag
-
collectExpressions
public void collectExpressions(ChartsExpressionCollector collector)
- Specified by:
collectExpressionsin interfaceJRChartPlot
-
clone
public Object clone(JRChart parentChart)
- Specified by:
clonein interfaceJRChartPlot- Overrides:
clonein classJRBaseChartPlot
-
-