comparison artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java @ 8885:e5f688820951

Some minor changes on chart: allow area-themes to consider range; allow for axis-margins
author gernotbelger
date Wed, 14 Feb 2018 18:10:28 +0100
parents 5e38e2924c07
children d9c89651bd67
comparison
equal deleted inserted replaced
8884:7a8c12706834 8885:e5f688820951
118 118
119 public final static String SHOWEXTRAMARK = "showextramark"; 119 public final static String SHOWEXTRAMARK = "showextramark";
120 120
121 public final static String USE_FILL_PAINT = "usefillpaint"; 121 public final static String USE_FILL_PAINT = "usefillpaint";
122 122
123 /* boolean parameter if the range of this theme should be considered when auto-zooming. Only works for area-series at the moment */
124 private static final String CALCULATE_RANGE = "calculateRange";
125
123 private Map<String, String> values; 126 private Map<String, String> values;
124 127
125 public ThemeDocument() { 128 public ThemeDocument() {
126 } 129 }
127 130
606 : lineColorStr)); 609 : lineColorStr));
607 } 610 }
608 return parseColor(lineColorStr); 611 return parseColor(lineColorStr);
609 } 612 }
610 613
611 614 // FIXME: check, this is defined in default.xml, but never used. Instead the StyledAreaSeriesCollection used lineColor etc
612 public Color parseAreaLineColorField() { 615 public Color parseAreaLineColorField() {
613 String lineColorStr = getAreaLineColorString(); 616 String lineColorStr = getAreaLineColorString();
614 if (log.isDebugEnabled()) { 617 if (log.isDebugEnabled()) {
615 log.debug("parseLineColorField: lineColorStr = " + 618 log.debug("parseLineColorField: lineColorStr = " +
616 (lineColorStr == null 619 (lineColorStr == null
810 813
811 814
812 private String getAreaShowBorderString() { 815 private String getAreaShowBorderString() {
813 return getValue(AREA_SHOW_BORDER); 816 return getValue(AREA_SHOW_BORDER);
814 } 817 }
818
819
820 public boolean parseCalculateRange() {
821 return parseBoolean(getCalculateRangeString(), false);
822 }
823
824
825 private String getCalculateRangeString() {
826 return getValue(CALCULATE_RANGE);
827 }
815 } 828 }
816 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 829 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org