public ChartPanel getPlotCanvas() { final JFreeChart chart = ChartFactory.createPieChart( "JBroFuzz Status Code Pie Chart", dataset, true, // legend? true, // tooltips? false // URLs? ); final Plot plot = chart.getPlot(); plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage()); plot.setBackgroundImageAlignment(Align.TOP_RIGHT); return new ChartPanel(chart); }
chart.getPlot().setBackgroundImage(image);
public ChartPanel getPlotCanvas() { final JFreeChart chart = ChartFactory.createBarChart( "JBroFuzz Jaccard Index Bar Chart", // chart title "File Name", // domain axis label "Jaccard Similarity Coefficient", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation false, // include legend true, // tooltips? true // URLs? ); final Plot plot = chart.getPlot(); plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage()); plot.setBackgroundImageAlignment(Align.TOP_RIGHT); final CategoryItemRenderer renderer = chart.getCategoryPlot().getRenderer(); renderer .setBaseToolTipGenerator(new StandardCategoryToolTipGenerator()); return new ChartPanel(chart); }
Image image = ImageIO.read(rinfo.getInputStream()); rinfo.getInputStream().close(); chart.getPlot().setBackgroundImage(image);
public ChartPanel getPlotCanvas() { final JFreeChart chart = ChartFactory.createBarChart( "JBroFuzz Response Size Bar Chart", // chart title "File Name", // domain axis label "Response Size (bytes)", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation false, // include legend true, // tooltips? true // URLs? ); final Plot plot = chart.getPlot(); plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage()); plot.setBackgroundImageAlignment(Align.TOP_RIGHT); final CategoryItemRenderer renderer = chart.getCategoryPlot().getRenderer(); renderer.setBaseToolTipGenerator( new StandardCategoryToolTipGenerator()); return new ChartPanel(chart); }
chart.getPlot().setBackgroundImage(image);
public ChartPanel getPlotCanvas() { final JFreeChart chart = ChartFactory.createBarChart( "JBroFuzz Response Time Bar Chart", // chart title "File Name", // domain axis label "Response Time (ms)", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation false, // include legend true, // tooltips? true // URLs? ); final Plot plot = chart.getPlot(); plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage()); plot.setBackgroundImageAlignment(Align.TOP_RIGHT); final CategoryItemRenderer renderer = chart.getCategoryPlot().getRenderer(); renderer.setBaseToolTipGenerator( new StandardCategoryToolTipGenerator()); return new ChartPanel(chart); }
chart.getPlot().setBackgroundImage(image);
public ChartPanel getPlotCanvas() { final JFreeChart chart = ChartFactory.createBarChart( "JBroFuzz Response Header Size Bar Chart", // chart title "File Name", // domain axis label "Response Header Size (bytes)", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation false, // include legend true, // tooltips? true // URLs? ); final Plot plot = chart.getPlot(); plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage()); plot.setBackgroundImageAlignment(Align.TOP_RIGHT); final CategoryItemRenderer renderer = chart.getCategoryPlot().getRenderer(); renderer.setBaseToolTipGenerator( new StandardCategoryToolTipGenerator()); return new ChartPanel(chart); }
private static void updatePlot( final Plot plot, final ChartDefinition chartDefinition ) { plot.setBackgroundPaint( chartDefinition.getPlotBackgroundPaint() ); plot.setBackgroundImage( chartDefinition.getPlotBackgroundImage() );
public ChartPanel getPlotCanvas() { final JFreeChart chart = ChartFactory.createBarChart( "JBroFuzz Hamming Distance Bar Chart", // chart title "File Name", // domain axis label "Hamming Distance", // range axis label dataset, // data PlotOrientation.VERTICAL, // orientation false, // include legend true, // tooltips? true // URLs? ); final Plot plot = chart.getPlot(); plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage()); plot.setBackgroundImageAlignment(Align.TOP_RIGHT); final CategoryItemRenderer renderer = chart.getCategoryPlot().getRenderer(); renderer.setBaseToolTipGenerator( new StandardCategoryToolTipGenerator()); return new ChartPanel(chart); }