Changeset 533
- Timestamp:
- 02/14/11 22:39:26 (2 years ago)
- Location:
- raptor-web/trunk/src/main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/engine/ChartProcessor.java
r531 r533 4 4 package uk.ac.cardiff.raptorweb.engine; 5 5 6 import java.awt.BasicStroke; 6 7 import java.awt.Color; 8 import java.awt.Font; 7 9 import java.awt.GradientPaint; 8 10 import java.awt.Rectangle; … … 66 68 /* options for how the graph is displayed */ 67 69 public enum GraphPresentation { 68 FANCY(true), SIMPLE(false);70 FANCY(true), FRONT(false); 69 71 private boolean legend; 70 72 … … 189 191 if (graphPresentation == GraphPresentation.FANCY) 190 192 fancyGraphOutput(chart); 191 else if (graphPresentation == GraphPresentation. SIMPLE)192 simpleGraphOutput(chart);193 else if (graphPresentation == GraphPresentation.FRONT) 194 frontGraphOutput(chart); 193 195 194 196 // save the graph … … 252 254 } 253 255 254 private void simpleGraphOutput(JFreeChart chart) {256 private void frontGraphOutput(JFreeChart chart) { 255 257 CategoryPlot plot = (CategoryPlot) chart.getPlot(); 256 258 CategoryAxis xAxis = (CategoryAxis) plot.getDomainAxis(); … … 263 265 plot.setRangeGridlinePaint(Color.black); 264 266 plot.setDomainGridlinePaint(Color.black); 265 267 //set the thickness of the first series 268 plot.getRenderer().setSeriesStroke(0, new BasicStroke(2.0f)); 269 plot.setForegroundAlpha(0.7f); 270 plot.setBackgroundPaint(new GradientPaint(0, 0,Color.white , 1f, 1f, new Color(210,210,210))); 271 plot.getRenderer().setSeriesPaint(0, Color.blue); 266 272 // axis 267 CategoryAxis rangeAxis = (CategoryAxis) plot.getDomainAxis(); 268 rangeAxis.setUpperMargin(0.0); 269 rangeAxis.setLowerMargin(0.0); 273 CategoryAxis domainAxis = (CategoryAxis) plot.getDomainAxis(); 274 domainAxis.setUpperMargin(0.0); 275 domainAxis.setLowerMargin(0.0); 276 domainAxis.setLabelFont(new Font("SansSerif",Font.PLAIN,0)); 277 domainAxis.setTickLabelFont(new Font("SansSerif",Font.PLAIN,0)); 270 278 271 279 } -
raptor-web/trunk/src/main/java/uk/ac/cardiff/raptorweb/service/impl/StartServiceImpl.java
r531 r533 225 225 } 226 226 if (numberOfAuthenticationsPerIntervalNumberModel != null) { 227 RaptorJFreeChartModel jfreeChart = getChartProcessor().constructJFreeGraph(GraphPresentation. SIMPLE,GraphType.LINE,numberOfAuthenticationsPerIntervalNumberModel,1270,400,(chosenStartTime.toString("ddMMyyyHH-mm")+"-"+currentDateTime.toString("ddMMyyyHH-mm")));227 RaptorJFreeChartModel jfreeChart = getChartProcessor().constructJFreeGraph(GraphPresentation.FRONT,GraphType.AREA,numberOfAuthenticationsPerIntervalNumberModel,1270,300,(chosenStartTime.toString("ddMMyyyHH-mm")+"-"+currentDateTime.toString("ddMMyyyHH-mm"))); 228 228 startstats.setHeadlineGraph(jfreeChart); 229 229 } -
raptor-web/trunk/src/main/webapp/WEB-INF/flows/reports/startReport.xhtml
r531 r533 22 22 <h:panelGrid columns="7" columnClasses="verticalAlignMiddle"> 23 23 24 <h:outputText style="font-size:150% ; font-weight:bold' color:red"24 <h:outputText style="font-size:150%" 25 25 value="Currently Attached to #{flowScope.websession.startmodel.attachedMUACapabilities.muaMetadata.muaName}, and showing statistics for: " /> 26 26 … … 57 57 58 58 <h:panelGrid width="100%" style="height: 100%; text-align: center;"> 59 <rich:spacer height=" 20px" />59 <rich:spacer height="50px" /> 60 60 61 61 <h:panelGroup layout="horizontal" width="100%"> 62 <rich:spacer width=" 60px" />62 <rich:spacer width="30px" /> 63 63 64 64 … … 80 80 81 81 </h:panelGroup> 82 <!--<h:outputText83 value="aaaaaaaaaaaaaaaaaaaaaaaaa"84 inlineStyle="opacity:0.0;color:#EEE9E8;" />85 -->86 82 87 83 </h:panelGrid> … … 92 88 <rich:layoutPanel position="center" > 93 89 <a4j:form id="startTables"> 94 <rich:spacer height=" 20px" />90 <rich:spacer height="50px" /> 95 91 <h:panelGroup columns = "2"> 96 92 <rich:dataTable id="currentTableGraphTable"
Note: See TracChangeset
for help on using the changeset viewer.
