first commit
This commit is contained in:
147
hrmsEjb/net/sf/jasperreports/charts/design/JRDesignAreaPlot.java
Normal file
147
hrmsEjb/net/sf/jasperreports/charts/design/JRDesignAreaPlot.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseAreaPlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignAreaPlot extends JRBaseAreaPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_COLOR = "categoryAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_EXPRESSION = "categoryAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_FONT = "categoryAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LINE_COLOR = "categoryAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_COLOR = "categoryAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_FONT = "categoryAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_MASK = "categoryAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_COLOR = "valueAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_EXPRESSION = "valueAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_FONT = "valueAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LINE_COLOR = "valueAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_COLOR = "valueAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_FONT = "valueAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_MASK = "valueAxisTickLabelMask";
|
||||
|
||||
public JRDesignAreaPlot(JRChartPlot areaPlot, JRChart chart) {
|
||||
super(areaPlot, chart);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelExpression(JRExpression categoryAxisLabelExpression) {
|
||||
Object old = this.categoryAxisLabelExpression;
|
||||
this.categoryAxisLabelExpression = categoryAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelExpression", old, this.categoryAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelFont(JRFont categoryAxisLabelFont) {
|
||||
Object old = this.categoryAxisLabelFont;
|
||||
this.categoryAxisLabelFont = categoryAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelFont", old, this.categoryAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelColor(Color categoryAxisLabelColor) {
|
||||
Object old = this.categoryAxisLabelColor;
|
||||
this.categoryAxisLabelColor = categoryAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelColor", old, this.categoryAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelFont(JRFont categoryAxisTickLabelFont) {
|
||||
Object old = this.categoryAxisTickLabelFont;
|
||||
this.categoryAxisTickLabelFont = categoryAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelFont", old, this.categoryAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelColor(Color categoryAxisTickLabelColor) {
|
||||
Object old = this.categoryAxisTickLabelColor;
|
||||
this.categoryAxisTickLabelColor = categoryAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelColor", old, this.categoryAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelMask(String categoryAxisTickLabelMask) {
|
||||
Object old = this.categoryAxisTickLabelMask;
|
||||
this.categoryAxisTickLabelMask = categoryAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelMask", old, this.categoryAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLineColor(Color categoryAxisLineColor) {
|
||||
Object old = this.categoryAxisLineColor;
|
||||
this.categoryAxisLineColor = categoryAxisLineColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLineColor", old, this.categoryAxisLineColor);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) {
|
||||
Object old = this.valueAxisLabelExpression;
|
||||
this.valueAxisLabelExpression = valueAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelExpression", old, this.valueAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
|
||||
Object old = this.valueAxisLabelFont;
|
||||
this.valueAxisLabelFont = valueAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelFont", old, this.valueAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelColor(Color valueAxisLabelColor) {
|
||||
Object old = this.valueAxisLabelColor;
|
||||
this.valueAxisLabelColor = valueAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelColor", old, this.valueAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
|
||||
Object old = this.valueAxisTickLabelFont;
|
||||
this.valueAxisTickLabelFont = valueAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelFont", old, this.valueAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
|
||||
Object old = this.valueAxisTickLabelColor;
|
||||
this.valueAxisTickLabelColor = valueAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelColor", old, this.valueAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
|
||||
Object old = this.valueAxisTickLabelMask;
|
||||
this.valueAxisTickLabelMask = valueAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelMask", old, this.valueAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setValueAxisLineColor(Color valueAxisLineColor) {
|
||||
Object old = this.valueAxisLineColor;
|
||||
this.valueAxisLineColor = valueAxisLineColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLineColor", old, this.valueAxisLineColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisFormat(JRAxisFormat axisFormat) {
|
||||
setCategoryAxisLabelFont(axisFormat.getLabelFont());
|
||||
setCategoryAxisLabelColor(axisFormat.getLabelColor());
|
||||
setCategoryAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setCategoryAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setCategoryAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setCategoryAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setValueAxisFormat(JRAxisFormat axisFormat) {
|
||||
setValueAxisLabelFont(axisFormat.getLabelFont());
|
||||
setValueAxisLabelColor(axisFormat.getLabelColor());
|
||||
setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setValueAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseBar3DPlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignBar3DPlot extends JRBaseBar3DPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_COLOR = "categoryAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_EXPRESSION = "categoryAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_FONT = "categoryAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LINE_COLOR = "categoryAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_COLOR = "categoryAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_FONT = "categoryAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_MASK = "categoryAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_COLOR = "valueAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_EXPRESSION = "valueAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_FONT = "valueAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LINE_COLOR = "valueAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_COLOR = "valueAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_FONT = "valueAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_MASK = "valueAxisTickLabelMask";
|
||||
|
||||
public JRDesignBar3DPlot(JRChartPlot barPlot, JRChart chart) {
|
||||
super(barPlot, chart);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelExpression(JRExpression categoryAxisLabelExpression) {
|
||||
Object old = this.categoryAxisLabelExpression;
|
||||
this.categoryAxisLabelExpression = categoryAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelExpression", old, this.categoryAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelFont(JRFont categoryAxisLabelFont) {
|
||||
Object old = this.categoryAxisLabelFont;
|
||||
this.categoryAxisLabelFont = categoryAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelFont", old, this.categoryAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelColor(Color categoryAxisLabelColor) {
|
||||
Object old = this.categoryAxisLabelColor;
|
||||
this.categoryAxisLabelColor = categoryAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelColor", old, this.categoryAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelFont(JRFont categoryAxisTickLabelFont) {
|
||||
Object old = this.categoryAxisTickLabelFont;
|
||||
this.categoryAxisTickLabelFont = categoryAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelFont", old, this.categoryAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelColor(Color categoryAxisTickLabelColor) {
|
||||
Object old = this.categoryAxisTickLabelColor;
|
||||
this.categoryAxisTickLabelColor = categoryAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelColor", old, this.categoryAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelMask(String categoryAxisTickLabelMask) {
|
||||
Object old = this.categoryAxisTickLabelMask;
|
||||
this.categoryAxisTickLabelMask = categoryAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelMask", old, this.categoryAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLineColor(Color categoryAxisLineColor) {
|
||||
Object old = this.categoryAxisLineColor;
|
||||
this.categoryAxisLineColor = categoryAxisLineColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLineColor", old, this.categoryAxisLineColor);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) {
|
||||
Object old = this.valueAxisLabelExpression;
|
||||
this.valueAxisLabelExpression = valueAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelExpression", old, this.valueAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
|
||||
Object old = this.valueAxisLabelFont;
|
||||
this.valueAxisLabelFont = valueAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelFont", old, this.valueAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelColor(Color valueAxisLabelColor) {
|
||||
Object old = this.valueAxisLabelColor;
|
||||
this.valueAxisLabelColor = valueAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelColor", old, this.valueAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
|
||||
Object old = this.valueAxisTickLabelFont;
|
||||
this.valueAxisTickLabelFont = valueAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelFont", old, this.valueAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
|
||||
Object old = this.valueAxisTickLabelColor;
|
||||
this.valueAxisTickLabelColor = valueAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelColor", old, this.valueAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
|
||||
Object old = this.valueAxisTickLabelMask;
|
||||
this.valueAxisTickLabelMask = valueAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelMask", old, this.valueAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setValueAxisLineColor(Color valueAxisLineColor) {
|
||||
Object old = this.valueAxisLineColor;
|
||||
this.valueAxisLineColor = valueAxisLineColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLineColor", old, this.valueAxisLineColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisFormat(JRAxisFormat axisFormat) {
|
||||
setCategoryAxisLabelFont(axisFormat.getLabelFont());
|
||||
setCategoryAxisLabelColor(axisFormat.getLabelColor());
|
||||
setCategoryAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setCategoryAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setCategoryAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setCategoryAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setValueAxisFormat(JRAxisFormat axisFormat) {
|
||||
setValueAxisLabelFont(axisFormat.getLabelFont());
|
||||
setValueAxisLabelColor(axisFormat.getLabelColor());
|
||||
setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setValueAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
147
hrmsEjb/net/sf/jasperreports/charts/design/JRDesignBarPlot.java
Normal file
147
hrmsEjb/net/sf/jasperreports/charts/design/JRDesignBarPlot.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseBarPlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignBarPlot extends JRBaseBarPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_COLOR = "categoryAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_EXPRESSION = "categoryAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_FONT = "categoryAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LINE_COLOR = "categoryAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_COLOR = "categoryAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_FONT = "categoryAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_MASK = "categoryAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_COLOR = "valueAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_EXPRESSION = "valueAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_FONT = "valueAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LINE_COLOR = "valueAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_COLOR = "valueAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_FONT = "valueAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_MASK = "valueAxisTickLabelMask";
|
||||
|
||||
public JRDesignBarPlot(JRChartPlot barPlot, JRChart chart) {
|
||||
super(barPlot, chart);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelExpression(JRExpression categoryAxisLabelExpression) {
|
||||
Object old = this.categoryAxisLabelExpression;
|
||||
this.categoryAxisLabelExpression = categoryAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelExpression", old, this.categoryAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelFont(JRFont categoryAxisLabelFont) {
|
||||
Object old = this.categoryAxisLabelFont;
|
||||
this.categoryAxisLabelFont = categoryAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelFont", old, this.categoryAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelColor(Color categoryAxisLabelColor) {
|
||||
Object old = this.categoryAxisLabelColor;
|
||||
this.categoryAxisLabelColor = categoryAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelColor", old, this.categoryAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelFont(JRFont categoryAxisTickLabelFont) {
|
||||
Object old = this.categoryAxisTickLabelFont;
|
||||
this.categoryAxisTickLabelFont = categoryAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelFont", old, this.categoryAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelColor(Color categoryAxisTickLabelColor) {
|
||||
Object old = this.categoryAxisTickLabelColor;
|
||||
this.categoryAxisTickLabelColor = categoryAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelColor", old, this.categoryAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelMask(String categoryAxisTickLabelMask) {
|
||||
Object old = this.categoryAxisTickLabelMask;
|
||||
this.categoryAxisTickLabelMask = categoryAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelMask", old, this.categoryAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLineColor(Color categoryAxisLineColor) {
|
||||
Object old = this.categoryAxisLineColor;
|
||||
this.categoryAxisLineColor = categoryAxisLineColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLineColor", old, this.categoryAxisLineColor);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) {
|
||||
Object old = this.valueAxisLabelExpression;
|
||||
this.valueAxisLabelExpression = valueAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelExpression", old, this.valueAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
|
||||
Object old = this.valueAxisLabelFont;
|
||||
this.valueAxisLabelFont = valueAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelFont", old, this.valueAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelColor(Color valueAxisLabelColor) {
|
||||
Object old = this.valueAxisLabelColor;
|
||||
this.valueAxisLabelColor = valueAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelColor", old, this.valueAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
|
||||
Object old = this.valueAxisTickLabelFont;
|
||||
this.valueAxisTickLabelFont = valueAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelFont", old, this.valueAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
|
||||
Object old = this.valueAxisTickLabelColor;
|
||||
this.valueAxisTickLabelColor = valueAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelColor", old, this.valueAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
|
||||
Object old = this.valueAxisTickLabelMask;
|
||||
this.valueAxisTickLabelMask = valueAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelMask", old, this.valueAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setValueAxisLineColor(Color valueAxisLineColor) {
|
||||
Object old = this.valueAxisLineColor;
|
||||
this.valueAxisLineColor = valueAxisLineColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLineColor", old, this.valueAxisLineColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisFormat(JRAxisFormat axisFormat) {
|
||||
setCategoryAxisLabelFont(axisFormat.getLabelFont());
|
||||
setCategoryAxisLabelColor(axisFormat.getLabelColor());
|
||||
setCategoryAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setCategoryAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setCategoryAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setCategoryAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setValueAxisFormat(JRAxisFormat axisFormat) {
|
||||
setValueAxisLabelFont(axisFormat.getLabelFont());
|
||||
setValueAxisLabelColor(axisFormat.getLabelColor());
|
||||
setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setValueAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseBubblePlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignBubblePlot extends JRBaseBubblePlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LABEL_COLOR = "xAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LABEL_EXPRESSION = "xAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LABEL_FONT = "xAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LINE_COLOR = "xAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_TICK_LABEL_COLOR = "xAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_TICK_LABEL_FONT = "xAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_TICK_LABEL_MASK = "xAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LABEL_COLOR = "yAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LABEL_EXPRESSION = "yAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LABEL_FONT = "yAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LINE_COLOR = "yAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_TICK_LABEL_COLOR = "yAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_TICK_LABEL_FONT = "yAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_TICK_LABEL_MASK = "yAxisTickLabelMask";
|
||||
|
||||
public JRDesignBubblePlot(JRChartPlot bubblePlot, JRChart chart) {
|
||||
super(bubblePlot, chart);
|
||||
}
|
||||
|
||||
public void setXAxisLabelExpression(JRExpression xAxisLabelExpression) {
|
||||
Object old = this.xAxisLabelExpression;
|
||||
this.xAxisLabelExpression = xAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("xAxisLabelExpression", old, this.xAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setXAxisLabelFont(JRFont xAxisLabelFont) {
|
||||
Object old = this.xAxisLabelFont;
|
||||
this.xAxisLabelFont = xAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("xAxisLabelFont", old, this.xAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setXAxisLabelColor(Color xAxisLabelColor) {
|
||||
Object old = this.xAxisLabelColor;
|
||||
this.xAxisLabelColor = xAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("xAxisLabelColor", old, this.xAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setXAxisTickLabelFont(JRFont xAxisTickLabelFont) {
|
||||
Object old = this.xAxisTickLabelFont;
|
||||
this.xAxisTickLabelFont = xAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("xAxisTickLabelFont", old, this.xAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setXAxisTickLabelColor(Color xAxisTickLabelColor) {
|
||||
Object old = this.xAxisTickLabelColor;
|
||||
this.xAxisTickLabelColor = xAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("xAxisTickLabelColor", old, this.xAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setXAxisTickLabelMask(String xAxisTickLabelMask) {
|
||||
Object old = this.xAxisTickLabelMask;
|
||||
this.xAxisTickLabelMask = xAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("xAxisTickLabelMask", old, this.xAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setXAxisLineColor(Color xAxisLineColor) {
|
||||
Object old = this.xAxisLineColor;
|
||||
this.xAxisLineColor = xAxisLineColor;
|
||||
getEventSupport().firePropertyChange("xAxisLineColor", old, this.xAxisLineColor);
|
||||
}
|
||||
|
||||
public void setYAxisLabelExpression(JRExpression yAxisLabelExpression) {
|
||||
Object old = this.yAxisLabelExpression;
|
||||
this.yAxisLabelExpression = yAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("yAxisLabelExpression", old, this.yAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setYAxisLabelFont(JRFont yAxisLabelFont) {
|
||||
Object old = this.yAxisLabelFont;
|
||||
this.yAxisLabelFont = yAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("yAxisLabelFont", old, this.yAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setYAxisLabelColor(Color yAxisLabelColor) {
|
||||
Object old = this.yAxisLabelColor;
|
||||
this.yAxisLabelColor = yAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("yAxisLabelColor", old, this.yAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setYAxisTickLabelFont(JRFont yAxisTickLabelFont) {
|
||||
Object old = this.yAxisTickLabelFont;
|
||||
this.yAxisTickLabelFont = yAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("yAxisTickLabelFont", old, this.yAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setYAxisTickLabelColor(Color yAxisTickLabelColor) {
|
||||
Object old = this.yAxisTickLabelColor;
|
||||
this.yAxisTickLabelColor = yAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("yAxisTickLabelColor", old, this.yAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setYAxisTickLabelMask(String yAxisTickLabelMask) {
|
||||
Object old = this.yAxisTickLabelMask;
|
||||
this.yAxisTickLabelMask = yAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("yAxisTickLabelMask", old, this.yAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setYAxisLineColor(Color yAxisLineColor) {
|
||||
Object old = this.yAxisLineColor;
|
||||
this.yAxisLineColor = yAxisLineColor;
|
||||
getEventSupport().firePropertyChange("yAxisLineColor", old, this.yAxisLineColor);
|
||||
}
|
||||
|
||||
public void setXAxisFormat(JRAxisFormat axisFormat) {
|
||||
setXAxisLabelColor(axisFormat.getLabelColor());
|
||||
setXAxisLabelFont(axisFormat.getLabelFont());
|
||||
setXAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setXAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setXAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setXAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setYAxisFormat(JRAxisFormat axisFormat) {
|
||||
setYAxisLabelColor(axisFormat.getLabelColor());
|
||||
setYAxisLabelFont(axisFormat.getLabelFont());
|
||||
setYAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setYAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setYAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setYAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseCandlestickPlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignCandlestickPlot extends JRBaseCandlestickPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_COLOR = "timeAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_EXPRESSION = "timeAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_FONT = "timeAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LINE_COLOR = "timeAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_COLOR = "timeAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_FONT = "timeAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_MASK = "timeAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_COLOR = "valueAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_EXPRESSION = "valueAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_FONT = "valueAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LINE_COLOR = "valueAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_COLOR = "valueAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_FONT = "valueAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_MASK = "valueAxisTickLabelMask";
|
||||
|
||||
public JRDesignCandlestickPlot(JRChartPlot candlestickPlot, JRChart chart) {
|
||||
super(candlestickPlot, chart);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelExpression(JRExpression timeAxisLabelExpression) {
|
||||
Object old = this.timeAxisLabelExpression;
|
||||
this.timeAxisLabelExpression = timeAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelExpression", old, this.timeAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelFont(JRFont timeAxisLabelFont) {
|
||||
Object old = this.timeAxisLabelFont;
|
||||
this.timeAxisLabelFont = timeAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelFont", old, this.timeAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelColor(Color timeAxisLabelColor) {
|
||||
Object old = this.timeAxisLabelColor;
|
||||
this.timeAxisLabelColor = timeAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelColor", old, this.timeAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont) {
|
||||
Object old = this.timeAxisTickLabelFont;
|
||||
this.timeAxisTickLabelFont = timeAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelFont", old, this.timeAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelColor(Color timeAxisTickLabelColor) {
|
||||
Object old = this.timeAxisTickLabelColor;
|
||||
this.timeAxisTickLabelColor = timeAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelColor", old, this.timeAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelMask(String timeAxisTickLabelMask) {
|
||||
Object old = this.timeAxisTickLabelMask;
|
||||
this.timeAxisTickLabelMask = timeAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelMask", old, this.timeAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setTimeAxisLineColor(Color timeAxisLineColor) {
|
||||
Object old = this.timeAxisLineColor;
|
||||
this.timeAxisLineColor = timeAxisLineColor;
|
||||
getEventSupport().firePropertyChange("timeAxisLineColor", old, this.timeAxisLineColor);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) {
|
||||
Object old = this.valueAxisLabelExpression;
|
||||
this.valueAxisLabelExpression = valueAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelExpression", old, this.valueAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
|
||||
Object old = this.valueAxisLabelFont;
|
||||
this.valueAxisLabelFont = valueAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelFont", old, this.valueAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelColor(Color valueAxisLabelColor) {
|
||||
Object old = this.valueAxisLabelColor;
|
||||
this.valueAxisLabelColor = valueAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelColor", old, this.valueAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
|
||||
Object old = this.valueAxisTickLabelFont;
|
||||
this.valueAxisTickLabelFont = valueAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelFont", old, this.valueAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
|
||||
Object old = this.valueAxisTickLabelColor;
|
||||
this.valueAxisTickLabelColor = valueAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelColor", old, this.valueAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
|
||||
Object old = this.valueAxisTickLabelMask;
|
||||
this.valueAxisTickLabelMask = valueAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelMask", old, this.valueAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setValueAxisLineColor(Color valueAxisLineColor) {
|
||||
Object old = this.valueAxisLineColor;
|
||||
this.valueAxisLineColor = valueAxisLineColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLineColor", old, this.valueAxisLineColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisFormat(JRAxisFormat axisFormat) {
|
||||
setTimeAxisLabelFont(axisFormat.getLabelFont());
|
||||
setTimeAxisLabelColor(axisFormat.getLabelColor());
|
||||
setTimeAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setTimeAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setTimeAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setTimeAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setValueAxisFormat(JRAxisFormat axisFormat) {
|
||||
setValueAxisLabelFont(axisFormat.getLabelFont());
|
||||
setValueAxisLabelColor(axisFormat.getLabelColor());
|
||||
setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setValueAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
@@ -0,0 +1,70 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.sf.jasperreports.charts.JRCategoryDataset;
|
||||
import net.sf.jasperreports.charts.JRCategorySeries;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignCategoryDataset extends JRDesignChartDataset implements JRCategoryDataset {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_CATEGORY_SERIES = "categorySeries";
|
||||
|
||||
private List categorySeriesList = new ArrayList();
|
||||
|
||||
public JRDesignCategoryDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRCategorySeries[] getSeries() {
|
||||
JRCategorySeries[] categorySeriesArray = new JRCategorySeries[this.categorySeriesList.size()];
|
||||
this.categorySeriesList.toArray((Object[])categorySeriesArray);
|
||||
return categorySeriesArray;
|
||||
}
|
||||
|
||||
public List getSeriesList() {
|
||||
return this.categorySeriesList;
|
||||
}
|
||||
|
||||
public void addCategorySeries(JRCategorySeries categorySeries) {
|
||||
this.categorySeriesList.add(categorySeries);
|
||||
getEventSupport().fireCollectionElementAddedEvent("categorySeries", categorySeries, this.categorySeriesList.size() - 1);
|
||||
}
|
||||
|
||||
public JRCategorySeries removeCategorySeries(JRCategorySeries categorySeries) {
|
||||
if (categorySeries != null) {
|
||||
int idx = this.categorySeriesList.indexOf(categorySeries);
|
||||
if (idx >= 0) {
|
||||
this.categorySeriesList.remove(idx);
|
||||
getEventSupport().fireCollectionElementRemovedEvent("categorySeries", categorySeries, idx);
|
||||
}
|
||||
}
|
||||
return categorySeries;
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignCategoryDataset clone = (JRDesignCategoryDataset)super.clone();
|
||||
if (this.categorySeriesList != null) {
|
||||
clone.categorySeriesList = new ArrayList(this.categorySeriesList.size());
|
||||
for (int i = 0; i < this.categorySeriesList.size(); i++)
|
||||
clone.categorySeriesList.add(((JRCategorySeries)this.categorySeriesList.get(i)).clone());
|
||||
}
|
||||
return clone;
|
||||
}
|
||||
}
|
@@ -0,0 +1,162 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import net.sf.jasperreports.charts.JRHighLowDataset;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.JRHyperlink;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignHighLowDataset extends JRDesignChartDataset implements JRHighLowDataset {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_CLOSE_EXPRESSION = "closeExpression";
|
||||
|
||||
public static final String PROPERTY_DATE_EXPRESSION = "dateExpression";
|
||||
|
||||
public static final String PROPERTY_HIGH_EXPRESSION = "highExpression";
|
||||
|
||||
public static final String PROPERTY_ITEM_HYPERLINK = "itemHyperlink";
|
||||
|
||||
public static final String PROPERTY_LOW_EXPRESSION = "lowExpression";
|
||||
|
||||
public static final String PROPERTY_OPEN_EXPRESSION = "openExpression";
|
||||
|
||||
public static final String PROPERTY_SERIES_EXPRESSION = "seriesExpression";
|
||||
|
||||
public static final String PROPERTY_VOLUME_EXPRESSION = "volumeExpression";
|
||||
|
||||
protected JRExpression seriesExpression;
|
||||
|
||||
protected JRExpression dateExpression;
|
||||
|
||||
protected JRExpression highExpression;
|
||||
|
||||
protected JRExpression lowExpression;
|
||||
|
||||
protected JRExpression openExpression;
|
||||
|
||||
protected JRExpression closeExpression;
|
||||
|
||||
protected JRExpression volumeExpression;
|
||||
|
||||
private JRHyperlink itemHyperlink;
|
||||
|
||||
public JRDesignHighLowDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRExpression getSeriesExpression() {
|
||||
return this.seriesExpression;
|
||||
}
|
||||
|
||||
public void setSeriesExpression(JRExpression seriesExpression) {
|
||||
Object old = this.seriesExpression;
|
||||
this.seriesExpression = seriesExpression;
|
||||
getEventSupport().firePropertyChange("seriesExpression", old, this.seriesExpression);
|
||||
}
|
||||
|
||||
public JRExpression getDateExpression() {
|
||||
return this.dateExpression;
|
||||
}
|
||||
|
||||
public void setDateExpression(JRExpression dateExpression) {
|
||||
Object old = this.dateExpression;
|
||||
this.dateExpression = dateExpression;
|
||||
getEventSupport().firePropertyChange("dateExpression", old, this.dateExpression);
|
||||
}
|
||||
|
||||
public JRExpression getHighExpression() {
|
||||
return this.highExpression;
|
||||
}
|
||||
|
||||
public void setHighExpression(JRExpression highExpression) {
|
||||
Object old = this.highExpression;
|
||||
this.highExpression = highExpression;
|
||||
getEventSupport().firePropertyChange("highExpression", old, this.highExpression);
|
||||
}
|
||||
|
||||
public JRExpression getLowExpression() {
|
||||
return this.lowExpression;
|
||||
}
|
||||
|
||||
public void setLowExpression(JRExpression lowExpression) {
|
||||
Object old = this.lowExpression;
|
||||
this.lowExpression = lowExpression;
|
||||
getEventSupport().firePropertyChange("lowExpression", old, this.lowExpression);
|
||||
}
|
||||
|
||||
public JRExpression getOpenExpression() {
|
||||
return this.openExpression;
|
||||
}
|
||||
|
||||
public void setOpenExpression(JRExpression openExpression) {
|
||||
Object old = this.openExpression;
|
||||
this.openExpression = openExpression;
|
||||
getEventSupport().firePropertyChange("openExpression", old, this.openExpression);
|
||||
}
|
||||
|
||||
public JRExpression getCloseExpression() {
|
||||
return this.closeExpression;
|
||||
}
|
||||
|
||||
public void setCloseExpression(JRExpression closeExpression) {
|
||||
Object old = this.closeExpression;
|
||||
this.closeExpression = closeExpression;
|
||||
getEventSupport().firePropertyChange("closeExpression", old, this.closeExpression);
|
||||
}
|
||||
|
||||
public JRExpression getVolumeExpression() {
|
||||
return this.volumeExpression;
|
||||
}
|
||||
|
||||
public void setVolumeExpression(JRExpression volumeExpression) {
|
||||
Object old = this.volumeExpression;
|
||||
this.volumeExpression = volumeExpression;
|
||||
getEventSupport().firePropertyChange("volumeExpression", old, this.volumeExpression);
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 7;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public JRHyperlink getItemHyperlink() {
|
||||
return this.itemHyperlink;
|
||||
}
|
||||
|
||||
public void setItemHyperlink(JRHyperlink itemHyperlink) {
|
||||
Object old = this.itemHyperlink;
|
||||
this.itemHyperlink = itemHyperlink;
|
||||
getEventSupport().firePropertyChange("itemHyperlink", old, this.itemHyperlink);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignHighLowDataset clone = (JRDesignHighLowDataset)super.clone();
|
||||
if (this.seriesExpression != null)
|
||||
clone.seriesExpression = (JRExpression)this.seriesExpression.clone();
|
||||
if (this.dateExpression != null)
|
||||
clone.dateExpression = (JRExpression)this.dateExpression.clone();
|
||||
if (this.highExpression != null)
|
||||
clone.highExpression = (JRExpression)this.highExpression.clone();
|
||||
if (this.lowExpression != null)
|
||||
clone.lowExpression = (JRExpression)this.lowExpression.clone();
|
||||
if (this.openExpression != null)
|
||||
clone.openExpression = (JRExpression)this.openExpression.clone();
|
||||
if (this.closeExpression != null)
|
||||
clone.closeExpression = (JRExpression)this.closeExpression.clone();
|
||||
if (this.volumeExpression != null)
|
||||
clone.volumeExpression = (JRExpression)this.volumeExpression.clone();
|
||||
if (this.itemHyperlink != null)
|
||||
clone.itemHyperlink = (JRHyperlink)this.itemHyperlink.clone();
|
||||
return clone;
|
||||
}
|
||||
}
|
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseHighLowPlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignHighLowPlot extends JRBaseHighLowPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_COLOR = "timeAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_EXPRESSION = "timeAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_FONT = "timeAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LINE_COLOR = "timeAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_COLOR = "timeAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_FONT = "timeAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_MASK = "timeAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_COLOR = "valueAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_EXPRESSION = "valueAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_FONT = "valueAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LINE_COLOR = "valueAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_COLOR = "valueAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_FONT = "valueAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_MASK = "valueAxisTickLabelMask";
|
||||
|
||||
public JRDesignHighLowPlot(JRChartPlot highLowPlot, JRChart chart) {
|
||||
super(highLowPlot, chart);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelExpression(JRExpression timeAxisLabelExpression) {
|
||||
Object old = this.timeAxisLabelExpression;
|
||||
this.timeAxisLabelExpression = timeAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelExpression", old, this.timeAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelFont(JRFont timeAxisLabelFont) {
|
||||
Object old = this.timeAxisLabelFont;
|
||||
this.timeAxisLabelFont = timeAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelFont", old, this.timeAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelColor(Color timeAxisLabelColor) {
|
||||
Object old = this.timeAxisLabelColor;
|
||||
this.timeAxisLabelColor = timeAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelColor", old, this.timeAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont) {
|
||||
Object old = this.timeAxisTickLabelFont;
|
||||
this.timeAxisTickLabelFont = timeAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelFont", old, this.timeAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelColor(Color timeAxisTickLabelColor) {
|
||||
Object old = this.timeAxisTickLabelColor;
|
||||
this.timeAxisTickLabelColor = timeAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelColor", old, this.timeAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelMask(String timeAxisTickLabelMask) {
|
||||
Object old = this.timeAxisTickLabelMask;
|
||||
this.timeAxisTickLabelMask = timeAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelMask", old, this.timeAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setTimeAxisLineColor(Color timeAxisLineColor) {
|
||||
Object old = this.timeAxisLineColor;
|
||||
this.timeAxisLineColor = timeAxisLineColor;
|
||||
getEventSupport().firePropertyChange("timeAxisLineColor", old, this.timeAxisLineColor);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) {
|
||||
Object old = this.valueAxisLabelExpression;
|
||||
this.valueAxisLabelExpression = valueAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelExpression", old, this.valueAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
|
||||
Object old = this.valueAxisLabelFont;
|
||||
this.valueAxisLabelFont = valueAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelFont", old, this.valueAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelColor(Color valueAxisLabelColor) {
|
||||
Object old = this.valueAxisLabelColor;
|
||||
this.valueAxisLabelColor = valueAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelColor", old, this.valueAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
|
||||
Object old = this.valueAxisTickLabelFont;
|
||||
this.valueAxisTickLabelFont = valueAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelFont", old, this.valueAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
|
||||
Object old = this.valueAxisTickLabelColor;
|
||||
this.valueAxisTickLabelColor = valueAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelColor", old, this.valueAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
|
||||
Object old = this.valueAxisTickLabelMask;
|
||||
this.valueAxisTickLabelMask = valueAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelMask", old, this.valueAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setValueAxisLineColor(Color valueAxisLineColor) {
|
||||
Object old = this.valueAxisLineColor;
|
||||
this.valueAxisLineColor = valueAxisLineColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLineColor", old, this.valueAxisLineColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisFormat(JRAxisFormat axisFormat) {
|
||||
setTimeAxisLabelFont(axisFormat.getLabelFont());
|
||||
setTimeAxisLabelColor(axisFormat.getLabelColor());
|
||||
setTimeAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setTimeAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setTimeAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setTimeAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setValueAxisFormat(JRAxisFormat axisFormat) {
|
||||
setValueAxisLabelFont(axisFormat.getLabelFont());
|
||||
setValueAxisLabelColor(axisFormat.getLabelColor());
|
||||
setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setValueAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
147
hrmsEjb/net/sf/jasperreports/charts/design/JRDesignLinePlot.java
Normal file
147
hrmsEjb/net/sf/jasperreports/charts/design/JRDesignLinePlot.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseLinePlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignLinePlot extends JRBaseLinePlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_COLOR = "categoryAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_EXPRESSION = "categoryAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LABEL_FONT = "categoryAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_LINE_COLOR = "categoryAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_COLOR = "categoryAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_FONT = "categoryAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_CATEGORY_AXIS_TICK_LABEL_MASK = "categoryAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_COLOR = "valueAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_EXPRESSION = "valueAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_FONT = "valueAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LINE_COLOR = "valueAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_COLOR = "valueAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_FONT = "valueAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_MASK = "valueAxisTickLabelMask";
|
||||
|
||||
public JRDesignLinePlot(JRChartPlot linePlot, JRChart chart) {
|
||||
super(linePlot, chart);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelExpression(JRExpression categoryAxisLabelExpression) {
|
||||
Object old = this.categoryAxisLabelExpression;
|
||||
this.categoryAxisLabelExpression = categoryAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelExpression", old, this.categoryAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelFont(JRFont categoryAxisLabelFont) {
|
||||
Object old = this.categoryAxisLabelFont;
|
||||
this.categoryAxisLabelFont = categoryAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelFont", old, this.categoryAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLabelColor(Color categoryAxisLabelColor) {
|
||||
Object old = this.categoryAxisLabelColor;
|
||||
this.categoryAxisLabelColor = categoryAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLabelColor", old, this.categoryAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelFont(JRFont categoryAxisTickLabelFont) {
|
||||
Object old = this.categoryAxisTickLabelFont;
|
||||
this.categoryAxisTickLabelFont = categoryAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelFont", old, this.categoryAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelColor(Color categoryAxisTickLabelColor) {
|
||||
Object old = this.categoryAxisTickLabelColor;
|
||||
this.categoryAxisTickLabelColor = categoryAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelColor", old, this.categoryAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisTickLabelMask(String categoryAxisTickLabelMask) {
|
||||
Object old = this.categoryAxisTickLabelMask;
|
||||
this.categoryAxisTickLabelMask = categoryAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("categoryAxisTickLabelMask", old, this.categoryAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setCategoryAxisLineColor(Color categoryAxisLineColor) {
|
||||
Object old = this.categoryAxisLineColor;
|
||||
this.categoryAxisLineColor = categoryAxisLineColor;
|
||||
getEventSupport().firePropertyChange("categoryAxisLineColor", old, this.categoryAxisLineColor);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) {
|
||||
Object old = this.valueAxisLabelExpression;
|
||||
this.valueAxisLabelExpression = valueAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelExpression", old, this.valueAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
|
||||
Object old = this.valueAxisLabelFont;
|
||||
this.valueAxisLabelFont = valueAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelFont", old, this.valueAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelColor(Color valueAxisLabelColor) {
|
||||
Object old = this.valueAxisLabelColor;
|
||||
this.valueAxisLabelColor = valueAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelColor", old, this.valueAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
|
||||
Object old = this.valueAxisTickLabelFont;
|
||||
this.valueAxisTickLabelFont = valueAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelFont", old, this.valueAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
|
||||
Object old = this.valueAxisTickLabelColor;
|
||||
this.valueAxisTickLabelColor = valueAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelColor", old, this.valueAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
|
||||
Object old = this.valueAxisTickLabelMask;
|
||||
this.valueAxisTickLabelMask = valueAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelMask", old, this.valueAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setValueAxisLineColor(Color valueAxisLineColor) {
|
||||
Object old = this.valueAxisLineColor;
|
||||
this.valueAxisLineColor = valueAxisLineColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLineColor", old, this.valueAxisLineColor);
|
||||
}
|
||||
|
||||
public void setCategoryAxisFormat(JRAxisFormat axisFormat) {
|
||||
setCategoryAxisLabelFont(axisFormat.getLabelFont());
|
||||
setCategoryAxisLabelColor(axisFormat.getLabelColor());
|
||||
setCategoryAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setCategoryAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setCategoryAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setCategoryAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setValueAxisFormat(JRAxisFormat axisFormat) {
|
||||
setValueAxisLabelFont(axisFormat.getLabelFont());
|
||||
setValueAxisLabelColor(axisFormat.getLabelColor());
|
||||
setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setValueAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
@@ -0,0 +1,113 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import net.sf.jasperreports.charts.JRDataRange;
|
||||
import net.sf.jasperreports.charts.JRValueDisplay;
|
||||
import net.sf.jasperreports.charts.base.JRBaseMeterPlot;
|
||||
import net.sf.jasperreports.charts.util.JRMeterInterval;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRException;
|
||||
|
||||
public class JRDesignMeterPlot extends JRBaseMeterPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_DATA_RANGE = "dataRange";
|
||||
|
||||
public static final String PROPERTY_METER_ANGLE = "meterAngle";
|
||||
|
||||
public static final String PROPERTY_METER_BACKGROUND_COLOR = "meterBackgroundColor";
|
||||
|
||||
public static final String PROPERTY_NEEDLE_COLOR = "needleColor";
|
||||
|
||||
public static final String PROPERTY_SHAPE = "shape";
|
||||
|
||||
public static final String PROPERTY_TICK_COLOR = "tickColor";
|
||||
|
||||
public static final String PROPERTY_TICK_INTERVAL = "tickInterval";
|
||||
|
||||
public static final String PROPERTY_UNITS = "units";
|
||||
|
||||
public static final String PROPERTY_VALUE_DISPLAY = "valueDisplay";
|
||||
|
||||
public static final String PROPERTY_INTERVALS = "intervals";
|
||||
|
||||
public JRDesignMeterPlot(JRChartPlot meterPlot, JRChart chart) {
|
||||
super(meterPlot, chart);
|
||||
}
|
||||
|
||||
public void setDataRange(JRDataRange dataRange) throws JRException {
|
||||
Object old = this.dataRange;
|
||||
this.dataRange = dataRange;
|
||||
getEventSupport().firePropertyChange("dataRange", old, this.dataRange);
|
||||
}
|
||||
|
||||
public void setValueDisplay(JRValueDisplay valueDisplay) {
|
||||
Object old = this.valueDisplay;
|
||||
this.valueDisplay = valueDisplay;
|
||||
getEventSupport().firePropertyChange("valueDisplay", old, this.valueDisplay);
|
||||
}
|
||||
|
||||
public void setShape(byte shape) throws JRException {
|
||||
if (shape < 0 || shape > 2)
|
||||
throw new JRException("Unknown shape for MeterPlot");
|
||||
byte old = this.shape;
|
||||
this.shape = shape;
|
||||
getEventSupport().firePropertyChange("shape", old, this.shape);
|
||||
}
|
||||
|
||||
public void addInterval(JRMeterInterval interval) {
|
||||
this.intervals.add(interval);
|
||||
getEventSupport().fireCollectionElementAddedEvent("intervals", interval, this.intervals.size() - 1);
|
||||
}
|
||||
|
||||
public void clearIntervals() {
|
||||
setIntervals((Collection)null);
|
||||
}
|
||||
|
||||
public void setIntervals(Collection intervals) {
|
||||
Object old = new ArrayList(this.intervals);
|
||||
this.intervals.clear();
|
||||
if (intervals != null)
|
||||
this.intervals.addAll(intervals);
|
||||
getEventSupport().firePropertyChange("intervals", old, this.intervals);
|
||||
}
|
||||
|
||||
public void setMeterAngle(int meterAngle) {
|
||||
int old = this.meterAngle;
|
||||
this.meterAngle = meterAngle;
|
||||
getEventSupport().firePropertyChange("meterAngle", old, this.meterAngle);
|
||||
}
|
||||
|
||||
public void setUnits(String units) {
|
||||
Object old = this.units;
|
||||
this.units = units;
|
||||
getEventSupport().firePropertyChange("units", old, this.units);
|
||||
}
|
||||
|
||||
public void setTickInterval(double tickInterval) {
|
||||
double old = this.tickInterval;
|
||||
this.tickInterval = tickInterval;
|
||||
getEventSupport().firePropertyChange("tickInterval", old, this.tickInterval);
|
||||
}
|
||||
|
||||
public void setMeterBackgroundColor(Color meterBackgroundColor) {
|
||||
Object old = this.meterBackgroundColor;
|
||||
this.meterBackgroundColor = meterBackgroundColor;
|
||||
getEventSupport().firePropertyChange("meterBackgroundColor", old, this.meterBackgroundColor);
|
||||
}
|
||||
|
||||
public void setNeedleColor(Color needleColor) {
|
||||
Object old = this.needleColor;
|
||||
this.needleColor = needleColor;
|
||||
getEventSupport().firePropertyChange("needleColor", old, this.needleColor);
|
||||
}
|
||||
|
||||
public void setTickColor(Color tickColor) {
|
||||
Object old = this.tickColor;
|
||||
this.tickColor = tickColor;
|
||||
getEventSupport().firePropertyChange("tickColor", old, this.tickColor);
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import net.sf.jasperreports.charts.JRChartAxis;
|
||||
import net.sf.jasperreports.charts.base.JRBaseMultiAxisPlot;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChart;
|
||||
|
||||
public class JRDesignMultiAxisPlot extends JRBaseMultiAxisPlot {
|
||||
public static final String PROPERTY_CHART = "chart";
|
||||
|
||||
public static final String PROPERTY_AXES = "axes";
|
||||
|
||||
private JRDesignChart chart = null;
|
||||
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public JRDesignMultiAxisPlot(JRChartPlot multiAxisPlot, JRChart chart) {
|
||||
super(multiAxisPlot, chart);
|
||||
}
|
||||
|
||||
public void addAxis(JRChartAxis axis) {
|
||||
this.axes.add(axis);
|
||||
if (this.axes.size() == 1)
|
||||
this.chart.setDataset(axis.getChart().getDataset());
|
||||
getEventSupport().fireCollectionElementAddedEvent("axes", axis, this.axes.size() - 1);
|
||||
}
|
||||
|
||||
public void clearAxes() {
|
||||
this.axes.clear();
|
||||
this.chart.setDataset(null);
|
||||
}
|
||||
|
||||
public JRChart getChart() {
|
||||
return (JRChart)this.chart;
|
||||
}
|
||||
|
||||
public void setChart(JRDesignChart chart) {
|
||||
Object old = this.chart;
|
||||
this.chart = chart;
|
||||
getEventSupport().firePropertyChange("chart", old, this.chart);
|
||||
}
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import net.sf.jasperreports.charts.base.JRBasePie3DPlot;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
|
||||
public class JRDesignPie3DPlot extends JRBasePie3DPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public JRDesignPie3DPlot(JRChartPlot pie3DPlot, JRChart chart) {
|
||||
super(pie3DPlot, chart);
|
||||
}
|
||||
}
|
@@ -0,0 +1,98 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import net.sf.jasperreports.charts.JRPieDataset;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.JRHyperlink;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignPieDataset extends JRDesignChartDataset implements JRPieDataset {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_KEY_EXPRESSION = "keyExpression";
|
||||
|
||||
public static final String PROPERTY_LABEL_EXPRESSION = "labelExpression";
|
||||
|
||||
public static final String PROPERTY_SECTION_HYPERLINK = "sectionHyperlink";
|
||||
|
||||
public static final String PROPERTY_VALUE_EXPRESSION = "valueExpression";
|
||||
|
||||
protected JRExpression keyExpression = null;
|
||||
|
||||
protected JRExpression valueExpression = null;
|
||||
|
||||
protected JRExpression labelExpression = null;
|
||||
|
||||
private JRHyperlink sectionHyperlink;
|
||||
|
||||
public JRDesignPieDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRExpression getKeyExpression() {
|
||||
return this.keyExpression;
|
||||
}
|
||||
|
||||
public void setKeyExpression(JRExpression keyExpression) {
|
||||
Object old = this.keyExpression;
|
||||
this.keyExpression = keyExpression;
|
||||
getEventSupport().firePropertyChange("keyExpression", old, this.keyExpression);
|
||||
}
|
||||
|
||||
public JRExpression getValueExpression() {
|
||||
return this.valueExpression;
|
||||
}
|
||||
|
||||
public void setValueExpression(JRExpression valueExpression) {
|
||||
Object old = this.valueExpression;
|
||||
this.valueExpression = valueExpression;
|
||||
getEventSupport().firePropertyChange("valueExpression", old, this.valueExpression);
|
||||
}
|
||||
|
||||
public JRExpression getLabelExpression() {
|
||||
return this.labelExpression;
|
||||
}
|
||||
|
||||
public void setLabelExpression(JRExpression labelExpression) {
|
||||
Object old = this.labelExpression;
|
||||
this.labelExpression = labelExpression;
|
||||
getEventSupport().firePropertyChange("labelExpression", old, this.labelExpression);
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public JRHyperlink getSectionHyperlink() {
|
||||
return this.sectionHyperlink;
|
||||
}
|
||||
|
||||
public void setSectionHyperlink(JRHyperlink sectionHyperlink) {
|
||||
Object old = this.sectionHyperlink;
|
||||
this.sectionHyperlink = sectionHyperlink;
|
||||
getEventSupport().firePropertyChange("sectionHyperlink", old, this.sectionHyperlink);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignPieDataset clone = (JRDesignPieDataset)super.clone();
|
||||
if (this.keyExpression != null)
|
||||
clone.keyExpression = (JRExpression)this.keyExpression.clone();
|
||||
if (this.valueExpression != null)
|
||||
clone.valueExpression = (JRExpression)this.valueExpression.clone();
|
||||
if (this.labelExpression != null)
|
||||
clone.labelExpression = (JRExpression)this.labelExpression.clone();
|
||||
if (this.sectionHyperlink != null)
|
||||
clone.sectionHyperlink = (JRHyperlink)this.sectionHyperlink.clone();
|
||||
return clone;
|
||||
}
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import net.sf.jasperreports.charts.base.JRBasePiePlot;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
|
||||
public class JRDesignPiePlot extends JRBasePiePlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public JRDesignPiePlot(JRChartPlot piePlot, JRChart chart) {
|
||||
super(piePlot, chart);
|
||||
}
|
||||
}
|
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseScatterPlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignScatterPlot extends JRBaseScatterPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LABEL_COLOR = "xAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LABEL_EXPRESSION = "xAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LABEL_FONT = "xAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_LINE_COLOR = "xAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_TICK_LABEL_COLOR = "xAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_TICK_LABEL_FONT = "xAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_X_AXIS_TICK_LABEL_MASK = "xAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LABEL_COLOR = "yAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LABEL_EXPRESSION = "yAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LABEL_FONT = "yAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_LINE_COLOR = "yAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_TICK_LABEL_COLOR = "yAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_TICK_LABEL_FONT = "yAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_Y_AXIS_TICK_LABEL_MASK = "yAxisTickLabelMask";
|
||||
|
||||
public JRDesignScatterPlot(JRChartPlot scattedPlot, JRChart chart) {
|
||||
super(scattedPlot, chart);
|
||||
}
|
||||
|
||||
public void setXAxisLabelExpression(JRExpression xAxisLabelExpression) {
|
||||
Object old = this.xAxisLabelExpression;
|
||||
this.xAxisLabelExpression = xAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("xAxisLabelExpression", old, this.xAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setXAxisLabelFont(JRFont xAxisLabelFont) {
|
||||
Object old = this.xAxisLabelFont;
|
||||
this.xAxisLabelFont = xAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("xAxisLabelFont", old, this.xAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setXAxisLabelColor(Color xAxisLabelColor) {
|
||||
Object old = this.xAxisLabelColor;
|
||||
this.xAxisLabelColor = xAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("xAxisLabelColor", old, this.xAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setXAxisTickLabelFont(JRFont xAxisTickLabelFont) {
|
||||
Object old = this.xAxisTickLabelFont;
|
||||
this.xAxisTickLabelFont = xAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("xAxisTickLabelFont", old, this.xAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setXAxisTickLabelColor(Color xAxisTickLabelColor) {
|
||||
Object old = this.xAxisTickLabelColor;
|
||||
this.xAxisTickLabelColor = xAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("xAxisTickLabelColor", old, this.xAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setXAxisTickLabelMask(String xAxisTickLabelMask) {
|
||||
Object old = this.xAxisTickLabelMask;
|
||||
this.xAxisTickLabelMask = xAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("xAxisTickLabelMask", old, this.xAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setXAxisLineColor(Color xAxisLineColor) {
|
||||
Object old = this.xAxisLineColor;
|
||||
this.xAxisLineColor = xAxisLineColor;
|
||||
getEventSupport().firePropertyChange("xAxisLineColor", old, this.xAxisLineColor);
|
||||
}
|
||||
|
||||
public void setYAxisLabelExpression(JRExpression yAxisLabelExpression) {
|
||||
Object old = this.yAxisLabelExpression;
|
||||
this.yAxisLabelExpression = yAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("yAxisLabelExpression", old, this.yAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setYAxisLabelFont(JRFont yAxisLabelFont) {
|
||||
Object old = this.yAxisLabelFont;
|
||||
this.yAxisLabelFont = yAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("yAxisLabelFont", old, this.yAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setYAxisLabelColor(Color yAxisLabelColor) {
|
||||
Object old = this.yAxisLabelColor;
|
||||
this.yAxisLabelColor = yAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("yAxisLabelColor", old, this.yAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setYAxisTickLabelFont(JRFont yAxisTickLabelFont) {
|
||||
Object old = this.yAxisTickLabelFont;
|
||||
this.yAxisTickLabelFont = yAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("yAxisTickLabelFont", old, this.yAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setYAxisTickLabelColor(Color yAxisTickLabelColor) {
|
||||
Object old = this.yAxisTickLabelColor;
|
||||
this.yAxisTickLabelColor = yAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("yAxisTickLabelColor", old, this.yAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setYAxisTickLabelMask(String yAxisTickLabelMask) {
|
||||
Object old = this.yAxisTickLabelMask;
|
||||
this.yAxisTickLabelMask = yAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("yAxisTickLabelMask", old, this.yAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setYAxisLineColor(Color yAxisLineColor) {
|
||||
Object old = this.yAxisLineColor;
|
||||
this.yAxisLineColor = yAxisLineColor;
|
||||
getEventSupport().firePropertyChange("yAxisLineColor", old, this.yAxisLineColor);
|
||||
}
|
||||
|
||||
public void setXAxisFormat(JRAxisFormat axisFormat) {
|
||||
setXAxisLabelColor(axisFormat.getLabelColor());
|
||||
setXAxisLabelFont(axisFormat.getLabelFont());
|
||||
setXAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setXAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setXAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setXAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setYAxisFormat(JRAxisFormat axisFormat) {
|
||||
setYAxisLabelColor(axisFormat.getLabelColor());
|
||||
setYAxisLabelFont(axisFormat.getLabelFont());
|
||||
setYAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setYAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setYAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setYAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
@@ -0,0 +1,80 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.JRDataRange;
|
||||
import net.sf.jasperreports.charts.JRValueDisplay;
|
||||
import net.sf.jasperreports.charts.base.JRBaseThermometerPlot;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
|
||||
public class JRDesignThermometerPlot extends JRBaseThermometerPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_DATA_RANGE = "dataRange";
|
||||
|
||||
public static final String PROPERTY_HIGH_RANGE = "highRange";
|
||||
|
||||
public static final String PROPERTY_LOW_RANGE = "lowRange";
|
||||
|
||||
public static final String PROPERTY_MEDIUM_RANGE = "mediumRange";
|
||||
|
||||
public static final String PROPERTY_MERCURY_COLOR = "mercuryColor";
|
||||
|
||||
public static final String PROPERTY_SHOW_VALUE_LINES = "showValueLines";
|
||||
|
||||
public static final String PROPERTY_VALUE_DISPLAY = "valueDisplay";
|
||||
|
||||
public static final String PROPERTY_VALUE_LOCATION = "valueLocation";
|
||||
|
||||
public JRDesignThermometerPlot(JRChartPlot thermoPlot, JRChart chart) {
|
||||
super(thermoPlot, chart);
|
||||
}
|
||||
|
||||
public void setDataRange(JRDataRange dataRange) {
|
||||
Object old = this.dataRange;
|
||||
this.dataRange = dataRange;
|
||||
getEventSupport().firePropertyChange("dataRange", old, this.dataRange);
|
||||
}
|
||||
|
||||
public void setValueDisplay(JRValueDisplay valueDisplay) {
|
||||
Object old = this.valueDisplay;
|
||||
this.valueDisplay = valueDisplay;
|
||||
getEventSupport().firePropertyChange("valueDisplay", old, this.valueDisplay);
|
||||
}
|
||||
|
||||
public void setShowValueLines(boolean showValueLines) {
|
||||
boolean old = this.showValueLines;
|
||||
this.showValueLines = showValueLines;
|
||||
getEventSupport().firePropertyChange("showValueLines", old, this.showValueLines);
|
||||
}
|
||||
|
||||
public void setValueLocation(byte valueLocation) {
|
||||
byte old = this.valueLocation;
|
||||
this.valueLocation = valueLocation;
|
||||
getEventSupport().firePropertyChange("valueLocation", old, this.valueLocation);
|
||||
}
|
||||
|
||||
public void setMercuryColor(Color mercuryColor) {
|
||||
Object old = this.mercuryColor;
|
||||
this.mercuryColor = mercuryColor;
|
||||
getEventSupport().firePropertyChange("mercuryColor", old, this.mercuryColor);
|
||||
}
|
||||
|
||||
public void setLowRange(JRDataRange lowRange) {
|
||||
Object old = this.lowRange;
|
||||
this.lowRange = lowRange;
|
||||
getEventSupport().firePropertyChange("lowRange", old, this.lowRange);
|
||||
}
|
||||
|
||||
public void setMediumRange(JRDataRange mediumRange) {
|
||||
Object old = this.mediumRange;
|
||||
this.mediumRange = mediumRange;
|
||||
getEventSupport().firePropertyChange("mediumRange", old, this.mediumRange);
|
||||
}
|
||||
|
||||
public void setHighRange(JRDataRange highRange) {
|
||||
Object old = this.highRange;
|
||||
this.highRange = highRange;
|
||||
getEventSupport().firePropertyChange("highRange", old, this.highRange);
|
||||
}
|
||||
}
|
@@ -0,0 +1,70 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.sf.jasperreports.charts.JRTimePeriodDataset;
|
||||
import net.sf.jasperreports.charts.JRTimePeriodSeries;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignTimePeriodDataset extends JRDesignChartDataset implements JRTimePeriodDataset {
|
||||
public static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_TIME_PERIODS_SERIES = "timePeriodSeries";
|
||||
|
||||
private List timePeriodSeriesList = new ArrayList();
|
||||
|
||||
public JRDesignTimePeriodDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRTimePeriodSeries[] getSeries() {
|
||||
JRTimePeriodSeries[] timePeriodSeriesArray = new JRTimePeriodSeries[this.timePeriodSeriesList.size()];
|
||||
this.timePeriodSeriesList.toArray((Object[])timePeriodSeriesArray);
|
||||
return timePeriodSeriesArray;
|
||||
}
|
||||
|
||||
public List getSeriesList() {
|
||||
return this.timePeriodSeriesList;
|
||||
}
|
||||
|
||||
public void addTimePeriodSeries(JRTimePeriodSeries timePeriodSeries) {
|
||||
this.timePeriodSeriesList.add(timePeriodSeries);
|
||||
getEventSupport().fireCollectionElementAddedEvent("timePeriodSeries", timePeriodSeries, this.timePeriodSeriesList.size() - 1);
|
||||
}
|
||||
|
||||
public JRTimePeriodSeries removeTimePeriodSeries(JRTimePeriodSeries timePeriodSeries) {
|
||||
if (timePeriodSeries != null) {
|
||||
int idx = this.timePeriodSeriesList.indexOf(timePeriodSeries);
|
||||
if (idx >= 0) {
|
||||
this.timePeriodSeriesList.remove(idx);
|
||||
getEventSupport().fireCollectionElementRemovedEvent("timePeriodSeries", timePeriodSeries, idx);
|
||||
}
|
||||
}
|
||||
return timePeriodSeries;
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignTimePeriodDataset clone = (JRDesignTimePeriodDataset)super.clone();
|
||||
if (this.timePeriodSeriesList != null) {
|
||||
clone.timePeriodSeriesList = new ArrayList(this.timePeriodSeriesList.size());
|
||||
for (int i = 0; i < this.timePeriodSeriesList.size(); i++)
|
||||
clone.timePeriodSeriesList.add(((JRTimePeriodSeries)this.timePeriodSeriesList.get(i)).clone());
|
||||
}
|
||||
return clone;
|
||||
}
|
||||
}
|
@@ -0,0 +1,84 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.sf.jasperreports.charts.JRTimeSeries;
|
||||
import net.sf.jasperreports.charts.JRTimeSeriesDataset;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignTimeSeriesDataset extends JRDesignChartDataset implements JRTimeSeriesDataset {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_TIME_PERIOD = "timePeriod";
|
||||
|
||||
public static final String PROPERTY_TIME_SERIES = "timeSeries";
|
||||
|
||||
private List timeSeriesList = new ArrayList();
|
||||
|
||||
private Class timePeriod = null;
|
||||
|
||||
public JRDesignTimeSeriesDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRTimeSeries[] getSeries() {
|
||||
JRTimeSeries[] timeSeriesArray = new JRTimeSeries[this.timeSeriesList.size()];
|
||||
this.timeSeriesList.toArray((Object[])timeSeriesArray);
|
||||
return timeSeriesArray;
|
||||
}
|
||||
|
||||
public List getSeriesList() {
|
||||
return this.timeSeriesList;
|
||||
}
|
||||
|
||||
public void addTimeSeries(JRTimeSeries timeSeries) {
|
||||
this.timeSeriesList.add(timeSeries);
|
||||
getEventSupport().fireCollectionElementAddedEvent("timeSeries", timeSeries, this.timeSeriesList.size() - 1);
|
||||
}
|
||||
|
||||
public JRTimeSeries removeTimeSeries(JRTimeSeries timeSeries) {
|
||||
if (timeSeries != null) {
|
||||
int idx = this.timeSeriesList.indexOf(timeSeries);
|
||||
if (idx >= 0) {
|
||||
this.timeSeriesList.remove(idx);
|
||||
getEventSupport().fireCollectionElementRemovedEvent("timeSeries", timeSeries, idx);
|
||||
}
|
||||
}
|
||||
return timeSeries;
|
||||
}
|
||||
|
||||
public Class getTimePeriod() {
|
||||
return this.timePeriod;
|
||||
}
|
||||
|
||||
public void setTimePeriod(Class timePeriod) {
|
||||
Object old = this.timePeriod;
|
||||
this.timePeriod = timePeriod;
|
||||
getEventSupport().firePropertyChange("timePeriod", old, this.timePeriod);
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignTimeSeriesDataset clone = (JRDesignTimeSeriesDataset)super.clone();
|
||||
if (this.timeSeriesList != null) {
|
||||
clone.timeSeriesList = new ArrayList(this.timeSeriesList.size());
|
||||
for (int i = 0; i < this.timeSeriesList.size(); i++)
|
||||
clone.timeSeriesList.add(((JRTimeSeries)this.timeSeriesList.get(i)).clone());
|
||||
}
|
||||
return clone;
|
||||
}
|
||||
}
|
@@ -0,0 +1,147 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.sf.jasperreports.charts.base.JRBaseTimeSeriesPlot;
|
||||
import net.sf.jasperreports.charts.util.JRAxisFormat;
|
||||
import net.sf.jasperreports.engine.JRChart;
|
||||
import net.sf.jasperreports.engine.JRChartPlot;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRFont;
|
||||
|
||||
public class JRDesignTimeSeriesPlot extends JRBaseTimeSeriesPlot {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_COLOR = "timeAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_EXPRESSION = "timeAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LABEL_FONT = "timeAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_LINE_COLOR = "timeAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_COLOR = "timeAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_FONT = "timeAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_TIME_AXIS_TICK_LABEL_MASK = "timeAxisTickLabelMask";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_COLOR = "valueAxisLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_EXPRESSION = "valueAxisLabelExpression";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LABEL_FONT = "valueAxisLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_LINE_COLOR = "valueAxisLineColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_COLOR = "valueAxisTickLabelColor";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_FONT = "valueAxisTickLabelFont";
|
||||
|
||||
public static final String PROPERTY_VALUE_AXIS_TICK_LABEL_MASK = "valueAxisTickLabelMask";
|
||||
|
||||
public JRDesignTimeSeriesPlot(JRChartPlot plot, JRChart chart) {
|
||||
super(plot, chart);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelExpression(JRExpression timeAxisLabelExpression) {
|
||||
Object old = this.timeAxisLabelExpression;
|
||||
this.timeAxisLabelExpression = timeAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelExpression", old, this.timeAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelFont(JRFont timeAxisLabelFont) {
|
||||
Object old = this.timeAxisLabelFont;
|
||||
this.timeAxisLabelFont = timeAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelFont", old, this.timeAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setTimeAxisLabelColor(Color timeAxisLabelColor) {
|
||||
Object old = this.timeAxisLabelColor;
|
||||
this.timeAxisLabelColor = timeAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("timeAxisLabelColor", old, this.timeAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont) {
|
||||
Object old = this.timeAxisTickLabelFont;
|
||||
this.timeAxisTickLabelFont = timeAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelFont", old, this.timeAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelColor(Color timeAxisTickLabelColor) {
|
||||
Object old = this.timeAxisTickLabelColor;
|
||||
this.timeAxisTickLabelColor = timeAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelColor", old, this.timeAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisTickLabelMask(String timeAxisTickLabelMask) {
|
||||
Object old = this.timeAxisTickLabelMask;
|
||||
this.timeAxisTickLabelMask = timeAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("timeAxisTickLabelMask", old, this.timeAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setTimeAxisLineColor(Color timeAxisLineColor) {
|
||||
Object old = this.timeAxisLineColor;
|
||||
this.timeAxisLineColor = timeAxisLineColor;
|
||||
getEventSupport().firePropertyChange("timeAxisLineColor", old, this.timeAxisLineColor);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) {
|
||||
Object old = this.valueAxisLabelExpression;
|
||||
this.valueAxisLabelExpression = valueAxisLabelExpression;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelExpression", old, this.valueAxisLabelExpression);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelFont(JRFont valueAxisLabelFont) {
|
||||
Object old = this.valueAxisLabelFont;
|
||||
this.valueAxisLabelFont = valueAxisLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelFont", old, this.valueAxisLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisLabelColor(Color valueAxisLabelColor) {
|
||||
Object old = this.valueAxisLabelColor;
|
||||
this.valueAxisLabelColor = valueAxisLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLabelColor", old, this.valueAxisLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) {
|
||||
Object old = this.valueAxisTickLabelFont;
|
||||
this.valueAxisTickLabelFont = valueAxisTickLabelFont;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelFont", old, this.valueAxisTickLabelFont);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) {
|
||||
Object old = this.valueAxisTickLabelColor;
|
||||
this.valueAxisTickLabelColor = valueAxisTickLabelColor;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelColor", old, this.valueAxisTickLabelColor);
|
||||
}
|
||||
|
||||
public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) {
|
||||
Object old = this.valueAxisTickLabelMask;
|
||||
this.valueAxisTickLabelMask = valueAxisTickLabelMask;
|
||||
getEventSupport().firePropertyChange("valueAxisTickLabelMask", old, this.valueAxisTickLabelMask);
|
||||
}
|
||||
|
||||
public void setValueAxisLineColor(Color valueAxisLineColor) {
|
||||
Object old = this.valueAxisLineColor;
|
||||
this.valueAxisLineColor = valueAxisLineColor;
|
||||
getEventSupport().firePropertyChange("valueAxisLineColor", old, this.valueAxisLineColor);
|
||||
}
|
||||
|
||||
public void setTimeAxisFormat(JRAxisFormat axisFormat) {
|
||||
setTimeAxisLabelFont(axisFormat.getLabelFont());
|
||||
setTimeAxisLabelColor(axisFormat.getLabelColor());
|
||||
setTimeAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setTimeAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setTimeAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setTimeAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
|
||||
public void setValueAxisFormat(JRAxisFormat axisFormat) {
|
||||
setValueAxisLabelFont(axisFormat.getLabelFont());
|
||||
setValueAxisLabelColor(axisFormat.getLabelColor());
|
||||
setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
|
||||
setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
|
||||
setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
|
||||
setValueAxisLineColor(axisFormat.getLineColor());
|
||||
}
|
||||
}
|
@@ -0,0 +1,49 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import net.sf.jasperreports.charts.JRValueDataset;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpression;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignValueDataset extends JRDesignChartDataset implements JRValueDataset {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_VALUE_EXPRESSION = "valueExpression";
|
||||
|
||||
protected JRExpression valueExpression = null;
|
||||
|
||||
public JRDesignValueDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRExpression getValueExpression() {
|
||||
return this.valueExpression;
|
||||
}
|
||||
|
||||
public void setValueExpression(JRExpression valueExpression) {
|
||||
Object old = this.valueExpression;
|
||||
this.valueExpression = valueExpression;
|
||||
getEventSupport().firePropertyChange("valueExpression", old, this.valueExpression);
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 8;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignValueDataset clone = (JRDesignValueDataset)super.clone();
|
||||
if (this.valueExpression != null)
|
||||
clone.valueExpression = (JRExpression)this.valueExpression.clone();
|
||||
return clone;
|
||||
}
|
||||
}
|
@@ -0,0 +1,70 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.sf.jasperreports.charts.JRXyDataset;
|
||||
import net.sf.jasperreports.charts.JRXySeries;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignXyDataset extends JRDesignChartDataset implements JRXyDataset {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_XY_SERIES = "xySeries";
|
||||
|
||||
private List xySeriesList = new ArrayList();
|
||||
|
||||
public JRDesignXyDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRXySeries[] getSeries() {
|
||||
JRXySeries[] xySeriesArray = new JRXySeries[this.xySeriesList.size()];
|
||||
this.xySeriesList.toArray((Object[])xySeriesArray);
|
||||
return xySeriesArray;
|
||||
}
|
||||
|
||||
public List getSeriesList() {
|
||||
return this.xySeriesList;
|
||||
}
|
||||
|
||||
public void addXySeries(JRXySeries xySeries) {
|
||||
this.xySeriesList.add(xySeries);
|
||||
getEventSupport().fireCollectionElementAddedEvent("xySeries", xySeries, this.xySeriesList.size() - 1);
|
||||
}
|
||||
|
||||
public JRXySeries removeXySeries(JRXySeries xySeries) {
|
||||
if (xySeries != null) {
|
||||
int idx = this.xySeriesList.indexOf(xySeries);
|
||||
if (idx >= 0) {
|
||||
this.xySeriesList.remove(idx);
|
||||
getEventSupport().fireCollectionElementRemovedEvent("xySeries", xySeries, idx);
|
||||
}
|
||||
}
|
||||
return xySeries;
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignXyDataset clone = (JRDesignXyDataset)super.clone();
|
||||
if (this.xySeriesList != null) {
|
||||
clone.xySeriesList = new ArrayList(this.xySeriesList.size());
|
||||
for (int i = 0; i < this.xySeriesList.size(); i++)
|
||||
clone.xySeriesList.add(((JRXySeries)this.xySeriesList.get(i)).clone());
|
||||
}
|
||||
return clone;
|
||||
}
|
||||
}
|
@@ -0,0 +1,71 @@
|
||||
package net.sf.jasperreports.charts.design;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.sf.jasperreports.charts.JRXySeries;
|
||||
import net.sf.jasperreports.charts.JRXyzDataset;
|
||||
import net.sf.jasperreports.charts.JRXyzSeries;
|
||||
import net.sf.jasperreports.engine.JRChartDataset;
|
||||
import net.sf.jasperreports.engine.JRExpressionCollector;
|
||||
import net.sf.jasperreports.engine.design.JRDesignChartDataset;
|
||||
import net.sf.jasperreports.engine.design.JRVerifier;
|
||||
|
||||
public class JRDesignXyzDataset extends JRDesignChartDataset implements JRXyzDataset {
|
||||
private static final long serialVersionUID = 10200L;
|
||||
|
||||
public static final String PROPERTY_XYZ_SERIES = "xyzSeries";
|
||||
|
||||
private List xyzSeriesList = new ArrayList();
|
||||
|
||||
public JRDesignXyzDataset(JRChartDataset dataset) {
|
||||
super(dataset);
|
||||
}
|
||||
|
||||
public JRXyzSeries[] getSeries() {
|
||||
JRXyzSeries[] xyzSeriesArray = new JRXyzSeries[this.xyzSeriesList.size()];
|
||||
this.xyzSeriesList.toArray((Object[])xyzSeriesArray);
|
||||
return xyzSeriesArray;
|
||||
}
|
||||
|
||||
public List getSeriesList() {
|
||||
return this.xyzSeriesList;
|
||||
}
|
||||
|
||||
public void addXyzSeries(JRXyzSeries xyzSeries) {
|
||||
this.xyzSeriesList.add(xyzSeries);
|
||||
getEventSupport().fireCollectionElementAddedEvent("xyzSeries", xyzSeries, this.xyzSeriesList.size() - 1);
|
||||
}
|
||||
|
||||
public JRXyzSeries removeXyzSeries(JRXyzSeries xyzSeries) {
|
||||
if (xyzSeries != null) {
|
||||
int idx = this.xyzSeriesList.indexOf(xyzSeries);
|
||||
if (idx >= 0) {
|
||||
this.xyzSeriesList.remove(idx);
|
||||
getEventSupport().fireCollectionElementRemovedEvent("xyzSeries", xyzSeries, idx);
|
||||
}
|
||||
}
|
||||
return xyzSeries;
|
||||
}
|
||||
|
||||
public byte getDatasetType() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
public void collectExpressions(JRExpressionCollector collector) {
|
||||
collector.collect(this);
|
||||
}
|
||||
|
||||
public void validate(JRVerifier verifier) {
|
||||
verifier.verify(this);
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
JRDesignXyzDataset clone = (JRDesignXyzDataset)super.clone();
|
||||
if (this.xyzSeriesList != null) {
|
||||
clone.xyzSeriesList = new ArrayList(this.xyzSeriesList.size());
|
||||
for (int i = 0; i < this.xyzSeriesList.size(); i++)
|
||||
clone.xyzSeriesList.add(((JRXySeries)this.xyzSeriesList.get(i)).clone());
|
||||
}
|
||||
return clone;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user