package net.sf.jasperreports.charts.fill; import java.awt.Color; import net.sf.jasperreports.charts.JRCategoryAxisFormat; import net.sf.jasperreports.charts.JRLinePlot; import net.sf.jasperreports.charts.JRValueAxisFormat; import net.sf.jasperreports.engine.JRChartPlot; import net.sf.jasperreports.engine.JRExpression; import net.sf.jasperreports.engine.JRFont; import net.sf.jasperreports.engine.JRStyleContainer; import net.sf.jasperreports.engine.base.JRBaseFont; import net.sf.jasperreports.engine.fill.JRFillChartPlot; import net.sf.jasperreports.engine.fill.JRFillObjectFactory; import net.sf.jasperreports.engine.util.JRStyleResolver; public class JRFillLinePlot extends JRFillChartPlot implements JRLinePlot { protected JRFont categoryAxisLabelFont = null; protected Color categoryAxisLabelColor = null; protected JRFont categoryAxisTickLabelFont = null; protected Color categoryAxisTickLabelColor = null; protected Color categoryAxisLineColor = null; protected JRFont valueAxisLabelFont = null; protected Color valueAxisLabelColor = null; protected JRFont valueAxisTickLabelFont = null; protected Color valueAxisTickLabelColor = null; protected Color valueAxisLineColor = null; public JRFillLinePlot(JRLinePlot plot, JRFillObjectFactory factory) { super((JRChartPlot)plot, factory); this.categoryAxisLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getCategoryAxisLabelFont()); this.categoryAxisLabelColor = plot.getOwnCategoryAxisLabelColor(); this.categoryAxisTickLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getCategoryAxisTickLabelFont()); this.categoryAxisTickLabelColor = plot.getOwnCategoryAxisTickLabelColor(); this.categoryAxisLineColor = plot.getOwnCategoryAxisLineColor(); this.valueAxisLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getValueAxisLabelFont()); this.valueAxisLabelColor = plot.getOwnValueAxisLabelColor(); this.valueAxisTickLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getValueAxisTickLabelFont()); this.valueAxisTickLabelColor = plot.getOwnValueAxisTickLabelColor(); this.valueAxisLineColor = plot.getOwnValueAxisLineColor(); } public JRExpression getCategoryAxisLabelExpression() { return ((JRLinePlot)this.parent).getCategoryAxisLabelExpression(); } public JRFont getCategoryAxisLabelFont() { return this.categoryAxisLabelFont; } public void setCategoryAxisLabelFont(JRFont font) {} public Color getCategoryAxisLabelColor() { return JRStyleResolver.getCategoryAxisLabelColor((JRCategoryAxisFormat)this, (JRChartPlot)this); } public Color getOwnCategoryAxisLabelColor() { return this.categoryAxisLabelColor; } public void setCategoryAxisLabelColor(Color color) {} public JRFont getCategoryAxisTickLabelFont() { return this.categoryAxisTickLabelFont; } public void setCategoryAxisTickLabelFont(JRFont font) {} public Color getCategoryAxisTickLabelColor() { return JRStyleResolver.getCategoryAxisTickLabelColor((JRCategoryAxisFormat)this, (JRChartPlot)this); } public Color getOwnCategoryAxisTickLabelColor() { return this.categoryAxisTickLabelColor; } public void setCategoryAxisTickLabelColor(Color color) {} public String getCategoryAxisTickLabelMask() { return ((JRLinePlot)this.parent).getCategoryAxisTickLabelMask(); } public void setCategoryAxisTickLabelMask(String mask) {} public Color getCategoryAxisLineColor() { return JRStyleResolver.getCategoryAxisLineColor((JRCategoryAxisFormat)this, (JRChartPlot)this); } public Color getOwnCategoryAxisLineColor() { return this.categoryAxisLineColor; } public void setCategoryAxisLineColor(Color color) {} public JRExpression getValueAxisLabelExpression() { return ((JRLinePlot)this.parent).getValueAxisLabelExpression(); } public JRFont getValueAxisLabelFont() { return this.valueAxisLabelFont; } public void setValueAxisLabelFont(JRFont font) {} public Color getValueAxisLabelColor() { return JRStyleResolver.getValueAxisLabelColor((JRValueAxisFormat)this, (JRChartPlot)this); } public Color getOwnValueAxisLabelColor() { return this.valueAxisLabelColor; } public void setValueAxisLabelColor(Color color) {} public JRFont getValueAxisTickLabelFont() { return this.valueAxisTickLabelFont; } public void setValueAxisTickLabelFont(JRFont font) {} public Color getValueAxisTickLabelColor() { return JRStyleResolver.getValueAxisTickLabelColor((JRValueAxisFormat)this, (JRChartPlot)this); } public Color getOwnValueAxisTickLabelColor() { return this.valueAxisTickLabelColor; } public void setValueAxisTickLabelColor(Color color) {} public String getValueAxisTickLabelMask() { return ((JRLinePlot)this.parent).getValueAxisTickLabelMask(); } public void setValueAxisTickLabelMask(String mask) {} public Color getValueAxisLineColor() { return JRStyleResolver.getValueAxisLineColor((JRValueAxisFormat)this, (JRChartPlot)this); } public Color getOwnValueAxisLineColor() { return this.valueAxisLineColor; } public void setValueAxisLineColor(Color color) {} public boolean isShowShapes() { return ((JRLinePlot)this.parent).isShowShapes(); } public void setShowShapes(boolean value) {} public boolean isShowLines() { return ((JRLinePlot)this.parent).isShowLines(); } public void setShowLines(boolean value) {} }