Skip to content

Commit 2f04e5b

Browse files
committed
Venn Diagram supported with latest 4.9.0 amcharts
1 parent d70001f commit 2f04e5b

File tree

46 files changed

+555
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+555
-221
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2018 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amcore.client.base;
21+
22+
import jsinterop.annotations.JsMethod;
23+
import jsinterop.annotations.JsProperty;
24+
import jsinterop.annotations.JsType;
25+
26+
27+
@JsType(isNative = true, namespace = "am4core")
28+
public class CirclePattern extends Pattern {
29+
30+
@JsProperty
31+
public int radius;
32+
33+
@JsMethod
34+
public native CirclePattern constructor();
35+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2018 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amcore.client.base;
21+
22+
import jsinterop.annotations.JsMethod;
23+
import jsinterop.annotations.JsPackage;
24+
import jsinterop.annotations.JsProperty;
25+
import jsinterop.annotations.JsType;
26+
27+
28+
@JsType(isNative = true, namespace = "am4core")
29+
public class LinePattern extends Pattern {
30+
31+
@JsProperty
32+
public int gap;
33+
34+
@JsMethod
35+
public native LinePattern constructor();
36+
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2018 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amcore.client.base;
21+
22+
import gwt.material.design.amcore.client.animation.AnimationOptions;
23+
import gwt.material.design.amcore.client.color.Color;
24+
import gwt.material.design.amcore.client.constants.ShapeRendering;
25+
import gwt.material.design.amcore.client.list.List;
26+
import jsinterop.annotations.JsMethod;
27+
import jsinterop.annotations.JsPackage;
28+
import jsinterop.annotations.JsProperty;
29+
import jsinterop.annotations.JsType;
30+
31+
32+
@JsType(isNative = true, namespace = "am4core")
33+
public class Pattern extends BaseObject {
34+
35+
@JsProperty
36+
public Color backgroundFill;
37+
38+
@JsProperty
39+
public double backgroundOpacity;
40+
41+
@JsProperty
42+
public Group element;
43+
44+
@JsProperty
45+
public List<AMElement> elements;
46+
47+
@JsProperty
48+
public Color fill;
49+
50+
@JsProperty
51+
public double fillOpacity;
52+
53+
@JsProperty
54+
public int height;
55+
56+
/**
57+
* @see PatternUnit
58+
*/
59+
@JsProperty
60+
public String patternUnits;
61+
62+
@JsProperty
63+
public int rotation;
64+
65+
@JsProperty
66+
public String shapeRendering;
67+
68+
@JsProperty
69+
public Color stroke;
70+
71+
@JsProperty
72+
public String strokeDasharray;
73+
74+
@JsProperty
75+
public double strokeOpacity;
76+
77+
@JsProperty
78+
public int strokeWidth;
79+
80+
@JsProperty
81+
public int width;
82+
83+
@JsProperty
84+
public double x;
85+
86+
@JsProperty
87+
public double y;
88+
89+
@JsMethod
90+
public native void addElement(AMElement element);
91+
92+
@JsMethod
93+
public native void animate(AnimationOptions[] animationOptions, int duration, int easing);
94+
95+
@JsMethod
96+
public native Pattern constructor();
97+
98+
@JsMethod
99+
public native void copyFrom(Pattern pattern);
100+
101+
@JsMethod
102+
public native void removeElement(AMElement element);
103+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2020 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amcore.client.base;
21+
22+
public interface PatternUnit {
23+
24+
String USER_SPACE_ON_USE = "userSpaceOnUse";
25+
String OBJECT_BOUNDING_BOX = "objectBoundingBox";
26+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2018 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amcore.client.base;
21+
22+
import jsinterop.annotations.JsMethod;
23+
import jsinterop.annotations.JsPackage;
24+
import jsinterop.annotations.JsProperty;
25+
import jsinterop.annotations.JsType;
26+
27+
28+
@JsType(isNative = true, namespace = "am4core")
29+
public class RectPattern extends Pattern {
30+
31+
@JsProperty
32+
public int rectHeight;
33+
34+
@JsProperty
35+
public int rectWidth;
36+
37+
@JsMethod
38+
public native RectPattern constructor();
39+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2018 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amplugin.venn.client;
21+
22+
import gwt.material.design.amcharts.client.PercentChart;
23+
import jsinterop.annotations.JsType;
24+
25+
@JsType(isNative = true, namespace = "am4plugins_venn")
26+
public class VennDiagram extends PercentChart {
27+
28+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2018 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amplugin.venn.client;
21+
22+
import jsinterop.annotations.JsPackage;
23+
import jsinterop.annotations.JsProperty;
24+
import jsinterop.annotations.JsType;
25+
26+
@JsType(isNative = true, name = "am4plugins_venn", namespace = JsPackage.GLOBAL)
27+
public class VennDiagramCharts {
28+
29+
@JsProperty(name = "VennDiagram")
30+
public static VennDiagram VennDiagram;
31+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2020 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amplugin.venn.client;
21+
22+
import com.google.gwt.core.client.EntryPoint;
23+
import gwt.material.design.amcore.client.GwtMaterialAmCore;
24+
import gwt.material.design.amplugin.venn.client.resources.VennDiagramResources;
25+
26+
public class VennDiagramPlugin implements EntryPoint {
27+
28+
@Override
29+
public void onModuleLoad() {
30+
GwtMaterialAmCore.injectJs(VennDiagramResources.INSTANCE.venn());
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2018 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.amplugin.venn.client.datafield;
21+
22+
import gwt.material.design.amcharts.client.datafield.series.PercentSeriesDataFields;
23+
import jsinterop.annotations.JsPackage;
24+
import jsinterop.annotations.JsProperty;
25+
import jsinterop.annotations.JsType;
26+
27+
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
28+
public class VennSeriesDataFields extends PercentSeriesDataFields {
29+
30+
@JsProperty
31+
public String intersections;
32+
}

0 commit comments

Comments
 (0)