Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_export_inc.jsp @ 569:9a5e50e7afaa
Added action and jsp for rendering histograms.
gnv/trunk@687 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 15 Feb 2010 11:42:29 +0000 |
parents | 49898531c0b6 |
children | cbd397712ecf |
comparison
equal
deleted
inserted
replaced
568:f21ad239c748 | 569:9a5e50e7afaa |
---|---|
17 String targetPDF = "pdf"; | 17 String targetPDF = "pdf"; |
18 String targetSVG = "svg"; | 18 String targetSVG = "svg"; |
19 String targetZIP = "zip"; | 19 String targetZIP = "zip"; |
20 String targetWMS = "wms"; | 20 String targetWMS = "wms"; |
21 String targetSta = "statistics"; | 21 String targetSta = "statistics"; |
22 String targetHis = "histogram"; | |
22 | 23 |
23 boolean supportChart = sm.getOutputMode(target) != null; | 24 boolean supportChart = sm.getOutputMode(target) != null; |
24 boolean supportCSV = sm.getOutputMode(targetCSV) != null; | 25 boolean supportCSV = sm.getOutputMode(targetCSV) != null; |
25 boolean supportODV = sm.getOutputMode(targetODV) != null; | 26 boolean supportODV = sm.getOutputMode(targetODV) != null; |
26 boolean supportPDF = sm.getOutputMode(targetPDF) != null; | 27 boolean supportPDF = sm.getOutputMode(targetPDF) != null; |
27 boolean supportSVG = sm.getOutputMode(targetSVG) != null; | 28 boolean supportSVG = sm.getOutputMode(targetSVG) != null; |
28 boolean supportZIP = sm.getOutputMode(targetZIP) != null; | 29 boolean supportZIP = sm.getOutputMode(targetZIP) != null; |
29 boolean supportWMS = sm.getOutputMode(targetWMS) != null; | 30 boolean supportWMS = sm.getOutputMode(targetWMS) != null; |
30 boolean supportSta = sm.getOutputMode(targetSta) != null; | 31 boolean supportSta = sm.getOutputMode(targetSta) != null; |
32 boolean supportHis = sm.getOutputMode(targetHis) != null; | |
31 | 33 |
32 if (supportChart){ | 34 if (supportChart){ |
33 mimeType = sm.getOutputMode(target).getMimeType(); | 35 mimeType = sm.getOutputMode(target).getMimeType(); |
34 DiagrammOptions diagrammOptions = sm.getDiagrammOptions(); | 36 DiagrammOptions diagrammOptions = sm.getDiagrammOptions(); |
35 Collection<OutputParameter> op = sm.getOutputMode(target).getOutputParameters(); | 37 Collection<OutputParameter> op = sm.getOutputMode(target).getOutputParameters(); |
117 <%if (supportSta) { %> | 119 <%if (supportSta) { %> |
118 <a href="<%=response.encodeURL("statistic.do")%>" title="<bean:message key="gnviewer.statistic.button"/>"> | 120 <a href="<%=response.encodeURL("statistic.do")%>" title="<bean:message key="gnviewer.statistic.button"/>"> |
119 <img src="images/statistics.png" border="0"/> | 121 <img src="images/statistics.png" border="0"/> |
120 </a> | 122 </a> |
121 <%}%> | 123 <%}%> |
124 | |
125 <%if (supportHis) { %> | |
126 <a href="<%=response.encodeURL("histogram.do")%>" title="<bean:message key="gnviewer.histogram.button"/>"> | |
127 <img src="images/chart_bar.png" border="0"/> | |
128 </a> | |
129 <%}%> | |
122 </fieldset> | 130 </fieldset> |
123 </div> | 131 </div> |
124 <%}%> | 132 <%}%> |