[PATCH 2 of 2] Configured some real fill patterns
Wald Commits
scm-commit at wald.intevation.org
Mon Feb 26 18:10:10 CET 2018
# HG changeset patch
# User gernotbelger
# Date 1519665003 -3600
# Node ID 924cd99433378d42128cd3a34c265ac679ef881a
# Parent 837c04af69fd97aeff2b5005295508844a08e363
Configured some real fill patterns
diff -r 837c04af69fd -r 924cd9943337 artifacts/doc/conf/themes/default.xml
--- a/artifacts/doc/conf/themes/default.xml Mon Feb 26 18:09:52 2018 +0100
+++ b/artifacts/doc/conf/themes/default.xml Mon Feb 26 18:10:03 2018 +0100
@@ -2905,7 +2905,7 @@
<field name="showarea" type="boolean" display="Flaeche anzeigen" default="true" />
<field name="areabgcolor" type="Color" default="245, 245, 220" display="Füllfarbe" />
- <field name="areabgpattern" type="areapattern" default="pattern1" display="Flächenfarbe" />
+ <field name="areabgpattern" type="areapattern" default="patternFill" display="Flächentyp" />
<field name="areatransparency" type="int" default="10" />
<field name="showarealabel" type="boolean" display="Flächenbeschriftung anzeigen" default="false" hint="hidden"/>
diff -r 837c04af69fd -r 924cd9943337 artifacts/doc/conf/themes/second.xml
--- a/artifacts/doc/conf/themes/second.xml Mon Feb 26 18:09:52 2018 +0100
+++ b/artifacts/doc/conf/themes/second.xml Mon Feb 26 18:10:03 2018 +0100
@@ -2894,7 +2894,7 @@
<field name="showarea" type="boolean" display="Flaeche anzeigen" default="true" />
<field name="areabgcolor" type="Color" default="245, 245, 220" display="Füllfarbe" />
- <field name="areabgpattern" type="areapattern" default="pattern1" display="Flächenfarbe" />
+ <field name="areabgpattern" type="areapattern" default="patternFill" display="Flächentyp" />
<field name="areatransparency" type="int" default="10" />
<field name="showarealabel" type="boolean" display="Flächenbeschriftung anzeigen" default="false" hint="hidden"/>
diff -r 837c04af69fd -r 924cd9943337 artifacts/src/main/java/org/dive4elements/river/jfree/AreaFillPattern.java
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/AreaFillPattern.java Mon Feb 26 18:09:52 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/jfree/AreaFillPattern.java Mon Feb 26 18:10:03 2018 +0100
@@ -27,7 +27,11 @@
*/
public enum AreaFillPattern {
- pattern1("/images/areapatterns/pattern1.png");
+ patternFill("/images/areapatterns/patternFill.png"), //
+ patternPoints("/images/areapatterns/patternPoints.png"), //
+ paternCross("/images/areapatterns/paternCross.png"), //
+ patternDagonalLeft("/images/areapatterns/patternDagonalLeft.png"), //
+ patternDiagonalRight("/images/areapatterns/patternDiagonalRight.png");
private static Logger log = Logger.getLogger(AreaFillPattern.class);
diff -r 837c04af69fd -r 924cd9943337 artifacts/src/main/java/org/dive4elements/river/jfree/StyledAreaSeriesCollection.java
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/StyledAreaSeriesCollection.java Mon Feb 26 18:09:52 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/jfree/StyledAreaSeriesCollection.java Mon Feb 26 18:10:03 2018 +0100
@@ -132,7 +132,7 @@
final AreaFillPattern pattern = this.theme.parseAreaBackgroundPattern();
- if( pattern == null )
+ if( pattern == null || pattern == AreaFillPattern.patternFill )
return alphaPaint;
final BufferedImage image = pattern.getImage(alphaPaint);
diff -r 837c04af69fd -r 924cd9943337 artifacts/src/main/resources/images/areapatterns/paternCross.png
Binary file artifacts/src/main/resources/images/areapatterns/paternCross.png has changed
diff -r 837c04af69fd -r 924cd9943337 artifacts/src/main/resources/images/areapatterns/pattern1.png
Binary file artifacts/src/main/resources/images/areapatterns/pattern1.png has changed
diff -r 837c04af69fd -r 924cd9943337 artifacts/src/main/resources/images/areapatterns/patternDagonalLeft.png
Binary file artifacts/src/main/resources/images/areapatterns/patternDagonalLeft.png has changed
diff -r 837c04af69fd -r 924cd9943337 artifacts/src/main/resources/images/areapatterns/patternDiagonalRight.png
Binary file artifacts/src/main/resources/images/areapatterns/patternDiagonalRight.png has changed
diff -r 837c04af69fd -r 924cd9943337 artifacts/src/main/resources/images/areapatterns/patternPoints.png
Binary file artifacts/src/main/resources/images/areapatterns/patternPoints.png has changed
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/StyleEditorWindow.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/StyleEditorWindow.java Mon Feb 26 18:09:52 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/StyleEditorWindow.java Mon Feb 26 18:10:03 2018 +0100
@@ -605,7 +605,12 @@
// FIXME: ugly, using knowledge of available patterns at this point, creating redundancy with AreaFillPattern enum.
// But the whole code does it like that, so this is 'flys style'
- final String[] patterns = new String[] {"pattern1", "x"};
+ final String[] patterns = new String[] {"patternFill", //
+ "patternPoints", //
+ "paternCross", //
+ "patternDagonalLeft", //
+ "patternDiagonalRight"};
+
for (int i = 0; i < patterns.length; i++) {
final String pattern = patterns[i];
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/webapp/images/areapattern-paternCross.png
Binary file gwt-client/src/main/webapp/images/areapattern-paternCross.png has changed
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/webapp/images/areapattern-pattern1.png
Binary file gwt-client/src/main/webapp/images/areapattern-pattern1.png has changed
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/webapp/images/areapattern-patternDagonalLeft.png
Binary file gwt-client/src/main/webapp/images/areapattern-patternDagonalLeft.png has changed
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/webapp/images/areapattern-patternDiagonalRight.png
Binary file gwt-client/src/main/webapp/images/areapattern-patternDiagonalRight.png has changed
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/webapp/images/areapattern-patternFill.png
Binary file gwt-client/src/main/webapp/images/areapattern-patternFill.png has changed
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/webapp/images/areapattern-patternPoints.png
Binary file gwt-client/src/main/webapp/images/areapattern-patternPoints.png has changed
diff -r 837c04af69fd -r 924cd9943337 gwt-client/src/main/webapp/images/areapattern-x.png
Binary file gwt-client/src/main/webapp/images/areapattern-x.png has changed
More information about the Dive4Elements-commits
mailing list