Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/AxisSection.java @ 2051:4ba5036109d2
Make use of user defined axes labels during chart creation.
flys-artifacts/trunk@3541 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Dec 2011 07:52:25 +0000 |
parents | c4e0e433f825 |
children | f9a972d375ba |
comparison
equal
deleted
inserted
replaced
2050:c4e0e433f825 | 2051:4ba5036109d2 |
---|---|
61 addAttribute(LABEL_ATTR, attr); | 61 addAttribute(LABEL_ATTR, attr); |
62 } | 62 } |
63 else { | 63 else { |
64 attr.setValue(label); | 64 attr.setValue(label); |
65 } | 65 } |
66 } | |
67 | |
68 | |
69 public String getLabel() { | |
70 StringAttribute attr = (StringAttribute) getAttribute(LABEL_ATTR); | |
71 return attr != null ? (String) attr.getValue() : null; | |
66 } | 72 } |
67 | 73 |
68 | 74 |
69 public void setFontSize(int fontSize) { | 75 public void setFontSize(int fontSize) { |
70 if (fontSize <= 0) { | 76 if (fontSize <= 0) { |