Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2054:a653295c9ac0
Make use of user defined axes font sizes.
flys-artifacts/trunk@3544 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Dec 2011 08:50:28 +0000 |
parents | f9a972d375ba |
children | 3cec0575d655 |
comparison
equal
deleted
inserted
replaced
2053:f9a972d375ba | 2054:a653295c9ac0 |
---|---|
950 plot.setFixedLegendItems(old); | 950 plot.setFixedLegendItems(old); |
951 } | 951 } |
952 | 952 |
953 | 953 |
954 /** | 954 /** |
955 * Adjusts the axes of a plot (the first axis does not include zero). | 955 * Adjusts the axes of a plot. This method sets the <i>labelFont</i> of the |
956 * To be overridden by children. | 956 * X axis. |
957 * | |
957 * @param plot The XYPlot of the chart. | 958 * @param plot The XYPlot of the chart. |
958 */ | 959 */ |
959 protected void adjustAxes(XYPlot plot) { | 960 protected void adjustAxes(XYPlot plot) { |
960 /* | 961 ValueAxis xaxis = plot.getDomainAxis(); |
961 NumberAxis yAxis = (NumberAxis) plot.getRangeAxis(); | 962 |
962 if (yAxis == null) { | 963 ChartSettings chartSettings = getChartSettings(); |
963 logger.warn("No Axis to setAutoRangeIncludeZero."); | 964 if (chartSettings == null) { |
964 } | 965 return; |
965 else { | 966 } |
966 yAxis.setAutoRangeIncludesZero(false); | 967 |
967 } | 968 Font labelFont = new Font( |
968 */ | 969 DEFAULT_FONT_NAME, |
970 Font.BOLD, | |
971 getXAxisLabelFontSize()); | |
972 | |
973 xaxis.setLabelFont(labelFont); | |
969 } | 974 } |
970 | 975 |
971 | 976 |
972 /** | 977 /** |
973 * Set some Stroke/Grid defaults. | 978 * Set some Stroke/Grid defaults. |