Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/ChartSettings.java @ 2050:c4e0e433f825
Use axes ranges specified in ChartSettings for zooming in charts.
flys-artifacts/trunk@3540 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Dec 2011 07:17:07 +0000 |
parents | 2ae0627f956e |
children | 76eeb3b4358e |
comparison
equal
deleted
inserted
replaced
2049:2d5f2bc68cc6 | 2050:c4e0e433f825 |
---|---|
92 /** | 92 /** |
93 * Adds a Section for a new axis of the chart. | 93 * Adds a Section for a new axis of the chart. |
94 * | 94 * |
95 * @param axisSection The Section specific for a chart axis. | 95 * @param axisSection The Section specific for a chart axis. |
96 */ | 96 */ |
97 public void addAxisSection(Section axisSection) { | 97 public void addAxisSection(AxisSection axisSection) { |
98 if (axisSection != null) { | 98 if (axisSection != null) { |
99 axesSection.addSubsection(axisSection); | 99 axesSection.addSubsection(axisSection); |
100 } | 100 } |
101 } | |
102 | |
103 | |
104 /** | |
105 * This method returns an AxisSection specified by <i>axisId</i> or null if | |
106 * no AxisSection is existing with identifier <i>axisId</i>. | |
107 * | |
108 * @param axisId The identifier of the wanted AxisSection. | |
109 * | |
110 * @return the AxisSection specified by <i>axisId</i> or null. | |
111 */ | |
112 public AxisSection getAxisSection(String axisId) { | |
113 for (int i = 0, n = axesSection.getSubsectionCount(); i < n; i++) { | |
114 AxisSection as = (AxisSection) axesSection.getSubsection(i); | |
115 String id = as.getIdentifier(); | |
116 | |
117 if (id != null && id.equals(axisId)) { | |
118 return as; | |
119 } | |
120 } | |
121 | |
122 return null; | |
101 } | 123 } |
102 | 124 |
103 | 125 |
104 /** | 126 /** |
105 * Parses the settings from <i>settings</i>. The result is a new | 127 * Parses the settings from <i>settings</i>. The result is a new |