Files
HRMS/hrmsEjb/net/sf/jasperreports/charts/fill/JRFillScatterPlot.java
2025-07-28 13:56:49 +05:30

147 lines
4.6 KiB
Java

package net.sf.jasperreports.charts.fill;
import java.awt.Color;
import net.sf.jasperreports.charts.JRScatterPlot;
import net.sf.jasperreports.charts.JRXAxisFormat;
import net.sf.jasperreports.charts.JRYAxisFormat;
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 JRFillScatterPlot extends JRFillChartPlot implements JRScatterPlot {
protected JRFont xAxisLabelFont = null;
protected Color xAxisLabelColor = null;
protected JRFont xAxisTickLabelFont = null;
protected Color xAxisTickLabelColor = null;
protected Color xAxisLineColor = null;
protected JRFont yAxisLabelFont = null;
protected Color yAxisLabelColor = null;
protected JRFont yAxisTickLabelFont = null;
protected Color yAxisTickLabelColor = null;
protected Color yAxisLineColor = null;
public JRFillScatterPlot(JRScatterPlot plot, JRFillObjectFactory factory) {
super((JRChartPlot)plot, factory);
this.xAxisLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getXAxisLabelFont());
this.xAxisLabelColor = plot.getOwnXAxisLabelColor();
this.xAxisTickLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getXAxisTickLabelFont());
this.xAxisTickLabelColor = plot.getOwnXAxisTickLabelColor();
this.xAxisLineColor = plot.getXAxisLineColor();
this.yAxisLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getYAxisLabelFont());
this.yAxisLabelColor = plot.getOwnYAxisLabelColor();
this.yAxisTickLabelFont = (JRFont)new JRBaseFont(null, null, (JRStyleContainer)plot.getChart(), plot.getYAxisTickLabelFont());
this.yAxisTickLabelColor = plot.getOwnYAxisTickLabelColor();
this.yAxisLineColor = plot.getYAxisLineColor();
}
public JRExpression getXAxisLabelExpression() {
return ((JRScatterPlot)this.parent).getXAxisLabelExpression();
}
public JRFont getXAxisLabelFont() {
return this.xAxisLabelFont;
}
public Color getXAxisLabelColor() {
return JRStyleResolver.getXAxisLabelColor((JRXAxisFormat)this, (JRChartPlot)this);
}
public Color getOwnXAxisLabelColor() {
return this.xAxisLabelColor;
}
public JRFont getXAxisTickLabelFont() {
return this.xAxisTickLabelFont;
}
public Color getXAxisTickLabelColor() {
return JRStyleResolver.getXAxisTickLabelColor((JRXAxisFormat)this, (JRChartPlot)this);
}
public Color getOwnXAxisTickLabelColor() {
return this.xAxisTickLabelColor;
}
public String getXAxisTickLabelMask() {
return ((JRScatterPlot)this.parent).getXAxisTickLabelMask();
}
public void setXAxisTickLabelMask(String mask) {}
public Color getXAxisLineColor() {
return JRStyleResolver.getXAxisLineColor((JRXAxisFormat)this, (JRChartPlot)this);
}
public Color getOwnXAxisLineColor() {
return this.xAxisLineColor;
}
public JRExpression getYAxisLabelExpression() {
return ((JRScatterPlot)this.parent).getYAxisLabelExpression();
}
public JRFont getYAxisLabelFont() {
return this.yAxisLabelFont;
}
public Color getYAxisLabelColor() {
return JRStyleResolver.getYAxisLabelColor((JRYAxisFormat)this, (JRChartPlot)this);
}
public Color getOwnYAxisLabelColor() {
return this.yAxisLabelColor;
}
public JRFont getYAxisTickLabelFont() {
return this.yAxisTickLabelFont;
}
public Color getYAxisTickLabelColor() {
return JRStyleResolver.getYAxisTickLabelColor((JRYAxisFormat)this, (JRChartPlot)this);
}
public Color getOwnYAxisTickLabelColor() {
return this.yAxisTickLabelColor;
}
public String getYAxisTickLabelMask() {
return ((JRScatterPlot)this.parent).getYAxisTickLabelMask();
}
public void setYAxisTickLabelMask(String mask) {}
public Color getYAxisLineColor() {
return JRStyleResolver.getYAxisLineColor((JRYAxisFormat)this, (JRChartPlot)this);
}
public Color getOwnYAxisLineColor() {
return this.yAxisLineColor;
}
public boolean isShowShapes() {
return ((JRScatterPlot)this.parent).isShowShapes();
}
public void setShowShapes(boolean value) {}
public boolean isShowLines() {
return ((JRScatterPlot)this.parent).isShowLines();
}
public void setShowLines(boolean value) {}
}