forked from fanruan/demo-show-charts
richie
6 years ago
26 changed files with 228 additions and 173 deletions
@ -1,9 +1,6 @@
|
||||
*.iml |
||||
*.xml |
||||
!plugin.xml |
||||
!build.xml |
||||
.idea/ |
||||
.DS_Store |
||||
*.jar |
||||
*.zip |
||||
plugin-demochart.iml |
||||
/target/ |
||||
/download/ |
||||
/webroot/ |
||||
.DS_Store |
@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
<project basedir="." default="jar" name="plugin"> |
||||
<!-- JDK路径,根据自己机器上实际位置修改--> |
||||
<property name="jdk.home" value="/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home"/> |
||||
|
||||
<property name="libs" value="${basedir}/lib"/> |
||||
<property name="publicLibs" value=""/> |
||||
<property name="reportLibs" value="${basedir}/../webroot/WEB-INF/lib"/> |
||||
<property name="destLoc" value="."/> |
||||
<property name="classes" value="classes"/> |
||||
<xmlproperty file="${basedir}/plugin.xml"/> |
||||
<property name="current-version" value="${plugin.version}"/> |
||||
|
||||
<!-- 插件版本--> |
||||
<property name="plugin-version" value="${current-version}"/> |
||||
<!-- 插件名字--> |
||||
<property name="plugin-name" value="demo-charts"/> |
||||
<property name="plugin-jar" value="fr-plugin-${plugin-name}-${plugin-version}.jar"/> |
||||
|
||||
<target name="prepare"> |
||||
<delete dir="${classes}"/> |
||||
<delete dir="fr-plugin-${plugin-name}-${plugin-version}"/> |
||||
<xmlproperty file="${basedir}/plugin.xml"/> |
||||
<delete dir="${destLoc}/${plugin.name}"/> |
||||
</target> |
||||
<path id="compile.classpath"> |
||||
<fileset dir="${libs}"> |
||||
<include name="**/*.jar"/> |
||||
</fileset> |
||||
<fileset dir="${publicLibs}"> |
||||
<include name="**/*.jar"/> |
||||
</fileset> |
||||
<fileset dir="${reportLibs}"> |
||||
<include name="**/*.jar"/> |
||||
</fileset> |
||||
</path> |
||||
<patternset id="resources4Jar"> |
||||
<exclude name="**/.settings/**"/> |
||||
<exclude name=".classpath"/> |
||||
<exclude name=".project"/> |
||||
|
||||
<exclude name="**/*.java"/> |
||||
<exclude name="**/*.db"/> |
||||
<exclude name="**/*.g"/> |
||||
<exclude name="**/package.html"/> |
||||
</patternset> |
||||
<target name="copy_resources"> |
||||
<echo message="从${resources_from}拷贝图片,JS,CSS等资源文件"/> |
||||
<delete dir="tmp"/> |
||||
<copy todir="tmp"> |
||||
<fileset dir="${resources_from}/src/main/resources"> |
||||
<patternset refid="resources4Jar"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${classes}"> |
||||
<fileset dir="tmp"/> |
||||
</copy> |
||||
<delete dir="tmp"/> |
||||
</target> |
||||
<target name="compile_javas"> |
||||
<echo message="编译${compile_files}下的Java文件"/> |
||||
<javac destdir="${classes}" debug="false" optimize="on" source="${source_jdk_version}" |
||||
target="${target_jdk_version}" |
||||
fork="true" memoryMaximumSize="512m" listfiles="false" srcdir="${basedir}" |
||||
executable="${compile_jdk_version}/bin/javac"> |
||||
<src path="${basedir}/src/main/java"/> |
||||
<exclude name="**/.svn/**"/> |
||||
<compilerarg line="-encoding UTF8 "/> |
||||
<classpath refid="compile.classpath"/> |
||||
</javac> |
||||
<taskdef name="pretreatment" classname="com.fr.plugin.pack.PluginPretreatmentTask"> |
||||
<classpath refid="compile.classpath"/> |
||||
</taskdef> |
||||
<pretreatment baseDir="${basedir}"/> |
||||
</target> |
||||
|
||||
<target name="jar_classes"> |
||||
<echo message="打Jar包:${jar_name}"/> |
||||
<delete file="${basedir}/${jar_name}"/> |
||||
<jar jarfile="${basedir}/${jar_name}"> |
||||
<fileset dir="${classes}"> |
||||
</fileset> |
||||
</jar> |
||||
</target> |
||||
|
||||
<target name="super_jar" depends="prepare"> |
||||
<antcall target="copy_resources"> |
||||
<param name="resources_from" value="${basedir}"/> |
||||
</antcall> |
||||
<antcall target="compile_javas"> |
||||
<param name="source_jdk_version" value="1.6"/> |
||||
<param name="target_jdk_version" value="1.6"/> |
||||
<param name="compile_jdk_version" value="${jdk.home}"/> |
||||
<param name="compile_files" value="${basedir}/src"/> |
||||
</antcall> |
||||
<echo message="compile plugin success!"/> |
||||
|
||||
<antcall target="jar_classes"> |
||||
<param name="jar_name" value="${plugin-jar}"/> |
||||
</antcall> |
||||
<delete dir="${classes}"/> |
||||
|
||||
</target> |
||||
|
||||
<target name="jar" depends="super_jar"> |
||||
<antcall target="zip"/> |
||||
</target> |
||||
|
||||
<target name="zip"> |
||||
<property name="plugin-folder" value="fr-plugin-${plugin-name}-${plugin-version}"/> |
||||
<echo message="----------zip files----------"/> |
||||
<mkdir dir="${plugin-folder}"/> |
||||
<copy todir="${plugin-folder}"> |
||||
<fileset dir="."> |
||||
<include name="${plugin-jar}"/> |
||||
<include name="plugin.xml"/> |
||||
</fileset> |
||||
<fileset dir="${libs}"> |
||||
<include name="*.jar"/> |
||||
<include name="*.dll"/> |
||||
</fileset> |
||||
</copy> |
||||
<zip destfile="${basedir}/${plugin-folder}.zip" basedir="."> |
||||
<include name="${plugin-folder}/*.jar"/> |
||||
<include name="${plugin-folder}/*.dll"/> |
||||
<include name="${plugin-folder}/plugin.xml"/> |
||||
</zip> |
||||
<move file="${plugin-folder}.zip" todir="${destLoc}/install"/> |
||||
</target> |
||||
</project> |
@ -1,109 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<module type="JAVA_MODULE" version="4"> |
||||
<component name="NewModuleRootManager"> |
||||
<output url="file://$MODULE_DIR$/../env/webapps/webroot/WEB-INF/plugins/plugin-com.fr.plugin.demo.DemoChart-1.0.0/classes" /> |
||||
<output-test url="file://$MODULE_DIR$/../env/webroot/WEB-INF/classes/test/plugin-demochart" /> |
||||
<exclude-output /> |
||||
<content url="file://$MODULE_DIR$"> |
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> |
||||
</content> |
||||
<orderEntry type="inheritedJdk" /> |
||||
<orderEntry type="sourceFolder" forTests="false" /> |
||||
<orderEntry type="library" name="Maven: com.fr.activator:fine-activator-sdk:10.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.activator:fine-activator:10.0-RELEASE-SNAPSHOT" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.core:fine-core-sdk:10.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.core:fine-core:10.0-RELEASE-SNAPSHOT" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.datasource:base-datasource-sdk:10.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.datasource:fine-datasource:10.0-RELEASE-SNAPSHOT" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.decision:decision-report-sdk:10.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.decision:fine-decision-sdk:10.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.decision:fine-decision:10.0-RELEASE-SNAPSHOT" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.schedule:fine-schedule-sdk:10.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.schedule:fine-schedule:10.0-RELEASE-SNAPSHOT" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.schedule:schedule-report:10.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.third.build:ant:1.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.third.driver:ojdbc:14" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.third.server:servlet-api:3.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.third:fine-third:10.0-RELEASE-SNAPSHOT" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.fr.webui:fine-webui:10.0-RELEASE-SNAPSHOT" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.squareup.okhttp3:okhttp-ws:3.0.1" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.squareup.okhttp3:okhttp:3.0.1" level="project" /> |
||||
<orderEntry type="library" name="Maven: com.squareup.okio:okio:1.6.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.22" level="project" /> |
||||
<orderEntry type="library" name="Maven: io.socket:engine.io-client:0.7.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: io.socket:socket.io-client:0.7.0" level="project" /> |
||||
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:bootstrap:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:commons-daemon:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-annotations-api:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-api:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-catalina-ant:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-catalina-ha:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-catalina:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-coyote:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-dbcp:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-el-api:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-i18n-es:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-i18n-fr:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-i18n-ja:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-jasper-el:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-jasper:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-jdbc:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-jsp-api:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-juli:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-servlet-api:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-tribes:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-util:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-websocket-api:7.0.86" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.easymock:easymock:3.5.1" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.eclipse.jdt.core.compiler:ecj:4.4.2" level="project" /> |
||||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.json:json:20090211" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.objenesis:objenesis:2.6" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.7" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.swingexplorer:swag:1.0" level="project" /> |
||||
<orderEntry type="library" name="Maven: org.swingexplorer:swexpl:1.0" level="project" /> |
||||
<orderEntry type="module" module-name="base-platform" /> |
||||
<orderEntry type="module" module-name="design" /> |
||||
<orderEntry type="module" module-name="design-i18n" /> |
||||
<orderEntry type="module" module-name="design-i18n-chart" /> |
||||
<orderEntry type="module" module-name="design-i18n-report" /> |
||||
<orderEntry type="module" module-name="designer-base" /> |
||||
<orderEntry type="module" module-name="designer-chart" /> |
||||
<orderEntry type="module" module-name="designer-form" /> |
||||
<orderEntry type="module" module-name="designer-realize" /> |
||||
<orderEntry type="module" module-name="engine" /> |
||||
<orderEntry type="module" module-name="engine-chart" /> |
||||
<orderEntry type="module" module-name="engine-chart-base" /> |
||||
<orderEntry type="module" module-name="engine-chart-chartattr" /> |
||||
<orderEntry type="module" module-name="engine-chart-chartdata" /> |
||||
<orderEntry type="module" module-name="engine-chart-chartglyph" /> |
||||
<orderEntry type="module" module-name="engine-chart-sdk" /> |
||||
<orderEntry type="module" module-name="engine-chart-web" /> |
||||
<orderEntry type="module" module-name="engine-cross" /> |
||||
<orderEntry type="module" module-name="engine-enhancement" /> |
||||
<orderEntry type="module" module-name="engine-file" /> |
||||
<orderEntry type="module" module-name="engine-i18n" /> |
||||
<orderEntry type="module" module-name="engine-page" /> |
||||
<orderEntry type="module" module-name="engine-platform" /> |
||||
<orderEntry type="module" module-name="engine-platform-sdk" /> |
||||
<orderEntry type="module" module-name="engine-report" /> |
||||
<orderEntry type="module" module-name="engine-report-sdk" /> |
||||
<orderEntry type="module" module-name="engine-view" /> |
||||
<orderEntry type="module" module-name="engine-workspace-server" /> |
||||
<orderEntry type="module" module-name="engine-write" /> |
||||
<orderEntry type="module" module-name="fine-report-designer" /> |
||||
<orderEntry type="module" module-name="fine-report-engine" /> |
||||
<orderEntry type="module" module-name="fine-report-engine-sdk" /> |
||||
<orderEntry type="module" module-name="finereport-maven" /> |
||||
<orderEntry type="module" module-name="fmobile" /> |
||||
<orderEntry type="module" module-name="form" /> |
||||
<orderEntry type="module" module-name="fsbakrestore" /> |
||||
<orderEntry type="module" module-name="fschedule" /> |
||||
<orderEntry type="module" module-name="fservice" /> |
||||
<orderEntry type="module" module-name="fsmonitor" /> |
||||
<orderEntry type="module" module-name="fsworkflow" /> |
||||
<orderEntry type="module" module-name="i18n-engine" /> |
||||
<orderEntry type="module" module-name="plugin-chart-bigscreen" /> |
||||
</component> |
||||
</module> |
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
|
||||
<parent> |
||||
<groupId>com.fr.plugin</groupId> |
||||
<artifactId>starter</artifactId> |
||||
<version>10.0</version> |
||||
</parent> |
||||
|
||||
<packaging>jar</packaging> |
||||
<artifactId>demo-show-charts</artifactId> |
||||
<build> |
||||
<!---如果要更改调试插件,改这里的配置就可以了--> |
||||
<outputDirectory>${project.basedir}/../webroot/WEB-INF/plugins/plugin-com.fr.plugin.demo.chart-1.0/classes</outputDirectory> |
||||
<plugins> |
||||
<plugin> |
||||
<groupId>org.apache.maven.plugins</groupId> |
||||
<artifactId>maven-compiler-plugin</artifactId> |
||||
<configuration> |
||||
<source>6</source> |
||||
<target>6</target> |
||||
</configuration> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
</project> |
@ -0,0 +1,6 @@
|
||||
package com.fr.plugin.demo.fun; |
||||
|
||||
public class DemoChartConstants { |
||||
|
||||
public static final String PLUGIN_ID = "com.fr.plugin.demo.chart"; |
||||
} |
@ -1,4 +1,4 @@
|
||||
package com.fr.plugin.demo; |
||||
package com.fr.plugin.demo.fun; |
||||
|
||||
/** |
||||
* Created by shine on 2018/4/19. |
@ -1,6 +1,7 @@
|
||||
package com.fr.plugin.demo; |
||||
package com.fr.plugin.demo.ui; |
||||
|
||||
import com.fr.extended.chart.ExtendedScrollPane; |
||||
import com.fr.plugin.demo.fun.DemoChart; |
||||
|
||||
import javax.swing.JPanel; |
||||
|
@ -1,8 +1,9 @@
|
||||
package com.fr.plugin.demo; |
||||
package com.fr.plugin.demo.ui; |
||||
|
||||
import com.fr.design.formula.TinyFormulaPane; |
||||
import com.fr.design.gui.itextfield.UITextField; |
||||
import com.fr.extended.chart.AbstractExtendedChartReportDataPane; |
||||
import com.fr.plugin.demo.fun.DemoDataConfig; |
||||
|
||||
import java.awt.Component; |
||||
|
@ -1,8 +1,9 @@
|
||||
package com.fr.plugin.demo; |
||||
package com.fr.plugin.demo.ui; |
||||
|
||||
import com.fr.design.gui.frpane.AttributeChangeListener; |
||||
import com.fr.extended.chart.AbstractExtendedStylePane; |
||||
import com.fr.extended.chart.ExtendedScrollPane; |
||||
import com.fr.plugin.demo.fun.DemoChart; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
@ -1,7 +1,8 @@
|
||||
package com.fr.plugin.demo; |
||||
package com.fr.plugin.demo.ui; |
||||
|
||||
import com.fr.design.formula.TinyFormulaPane; |
||||
import com.fr.extended.chart.ExtendedScrollPane; |
||||
import com.fr.plugin.demo.fun.DemoChart; |
||||
|
||||
import javax.swing.JPanel; |
||||
import java.awt.BorderLayout; |
@ -1,7 +1,9 @@
|
||||
package com.fr.plugin.demo; |
||||
package com.fr.plugin.demo.ui; |
||||
|
||||
import com.fr.design.gui.ibutton.UIButtonGroup; |
||||
import com.fr.extended.chart.ExtendedTypePane; |
||||
import com.fr.plugin.demo.fun.DemoChart; |
||||
import com.fr.plugin.demo.fun.ThemeType; |
||||
|
||||
import javax.swing.JPanel; |
||||
import java.awt.Component; |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Loading…
Reference in new issue