All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.opensuit.xml.chart.Test Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package org.ow2.opensuit.xml.chart;

import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.imagemap.ImageMapUtilities;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;

public class Test
{
	private static int CATEROGIES = 10;
	private static int SERIES = 10;
	private static int COMPUTATIONS = 10;
	private static int WIDTH = 1000;
	private static int HEIGHT = 500;
	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		ChartRenderingInfo info = computeInfo1(makeChart(makeDataSet()), WIDTH, HEIGHT);
		System.out.println("image map: "+ImageMapUtilities.getImageMap("map", info));
		
		System.out.println("Compute Info method 2 (inoperant Graphics object):");
		for(int i=0; i catKeys = new ArrayList();
		for(int i=0; i serieKeys = new ArrayList();
		for(int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy