comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeCurveGenerator.java @ 2590:d75b427da50a

#522 Modified axes creation: label and tick label fonts will now always be the same. flys-artifacts/trunk@4146 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 15 Mar 2012 12:28:11 +0000
parents bece6f604899
children 26cd4dfafdf1
comparison
equal deleted inserted replaced
2589:95ddff4acb95 2590:d75b427da50a
122 if (!zoomin) { 122 if (!zoomin) {
123 axis.setLowerBound(0d); 123 axis.setLowerBound(0d);
124 } 124 }
125 125
126 return zoomin; 126 return zoomin;
127 }
128
129
130 /**
131 * Create Y-Axis.
132 * First Axis: W.
133 * @return Y-Axis with label.
134 */
135 @Override
136 protected NumberAxis createYAxis(int index) {
137 Font labelFont = new Font("Tahoma", Font.BOLD, 14);
138 String label = "default";
139 if (index == YAXIS.W.idx) {
140 label = getYAxisLabel(0);
141 }
142 NumberAxis axis = createNumberAxis(index, label);
143 axis.setLabelFont(labelFont);
144 axis.setAutoRangeIncludesZero(false);
145 return axis;
146 } 127 }
147 128
148 129
149 public void doOut( 130 public void doOut(
150 ArtifactAndFacet artifactFacet, 131 ArtifactAndFacet artifactFacet,

http://dive4elements.wald.intevation.org