diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0b677e7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+*.iml
+*.xml
+!plugin.xml
+!build.xml
+.idea/
+.DS_Store
+*.jar
+*.zip
+plugin-demochart.iml
\ No newline at end of file
diff --git a/plugin-demochart.iml b/plugin-demochart.iml
index a1baaf2..496d61b 100644
--- a/plugin-demochart.iml
+++ b/plugin-demochart.iml
@@ -1,7 +1,7 @@
-
+
@@ -9,27 +9,93 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
@@ -37,5 +103,7 @@
+
+
\ No newline at end of file
diff --git a/src/com/fr/plugin/demo/DemoChart.java b/src/com/fr/plugin/demo/DemoChart.java
index 1ba5bbe..e331181 100644
--- a/src/com/fr/plugin/demo/DemoChart.java
+++ b/src/com/fr/plugin/demo/DemoChart.java
@@ -6,7 +6,6 @@ import com.fr.extended.chart.ExtendedHelper;
import com.fr.extended.chart.HyperLinkPara;
import com.fr.extended.chart.export.ExportProcessor;
import com.fr.extended.chart.export.JSExportProcessor;
-import com.fr.general.ComparatorUtils;
import com.fr.general.GeneralUtils;
import com.fr.json.JSON;
import com.fr.json.JSONArray;
@@ -36,6 +35,16 @@ public class DemoChart extends AbstractChart{
private ThemeType themeType = ThemeType.DARK;
+ private boolean threeDimensional = false;
+
+ public boolean isThreeDimensional() {
+ return threeDimensional;
+ }
+
+ public void setThreeDimensional(boolean threeDimensional) {
+ this.threeDimensional = threeDimensional;
+ }
+
public ThemeType getThemeType() {
return themeType;
}
@@ -56,6 +65,7 @@ public class DemoChart extends AbstractChart{
protected void readAttr(XMLableReader reader) {
super.readAttr(reader);
this.setThemeType(ThemeType.parseInt(reader.getAttrAsInt("theme", 0)));
+ this.setThreeDimensional(reader.getAttrAsBoolean("threeD", false));
this.setTitleFormula(ExtendedHelper.readFormula(reader, "title"));
}
@@ -63,6 +73,7 @@ public class DemoChart extends AbstractChart{
protected void writeAttr(XMLPrintWriter writer) {
super.writeAttr(writer);
writer.attr("theme", getThemeType().ordinal());
+ writer.attr("threeD", isThreeDimensional());
ExtendedHelper.writeFormula(this.getTitleFormula(), writer, "title");
}
@@ -73,12 +84,13 @@ public class DemoChart extends AbstractChart{
result.setTitleFormula(this.getTitleFormula().clone());
}
result.setThemeType(this.getThemeType());
+ result.setThreeDimensional(this.isThreeDimensional());
return result;
}
@Override
public int hashCode() {
- return super.hashCode() + AssistUtils.hashCode(this.getTitleFormula(), this.getThemeType());
+ return super.hashCode() + AssistUtils.hashCode(this.getTitleFormula(), this.getThemeType(), this.isThreeDimensional());
}
@Override
@@ -87,6 +99,7 @@ public class DemoChart extends AbstractChart{
&& ob instanceof DemoChart
&& AssistUtils.equals(this.getTitleFormula(), ((DemoChart) ob).getTitleFormula())
&& AssistUtils.equals(this.getThemeType(), ((DemoChart) ob).getThemeType())
+ && AssistUtils.equals(this.isThreeDimensional(), ((DemoChart) ob).isThreeDimensional())
;
}
@@ -114,15 +127,18 @@ public class DemoChart extends AbstractChart{
JSONArray array = JSONFactory.createJSON(JSON.ARRAY);
- List