comparison flys-artifacts/src/main/java/de/intevation/flys/exports/AxisSection.java @ 2053:f9a972d375ba

Use the user defined font size to set Y axes label fonts sizes. flys-artifacts/trunk@3543 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 27 Dec 2011 08:22:07 +0000
parents 4ba5036109d2
children f97cf2e350c9
comparison
equal deleted inserted replaced
2052:c7f18fa0d685 2053:f9a972d375ba
86 attr.setValue(fontSize); 86 attr.setValue(fontSize);
87 } 87 }
88 } 88 }
89 89
90 90
91 public Integer getFontSize() {
92 IntegerAttribute attr = (IntegerAttribute) getAttribute(FONTSIZE_ATTR);
93 return attr != null ? (Integer) attr.getValue() : null;
94 }
95
96
91 public void setFixed(boolean fixed) { 97 public void setFixed(boolean fixed) {
92 Attribute attr = getAttribute(FIXATION_ATTR); 98 Attribute attr = getAttribute(FIXATION_ATTR);
93 if (attr == null) { 99 if (attr == null) {
94 attr = new BooleanAttribute(FIXATION_ATTR, fixed, true); 100 attr = new BooleanAttribute(FIXATION_ATTR, fixed, true);
95 addAttribute(FIXATION_ATTR, attr); 101 addAttribute(FIXATION_ATTR, attr);

http://dive4elements.wald.intevation.org