package jyplot;


public class Temp
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
//		try
//		{
//			double scale = 1.0;
//			File f = new File("/global/home/dion/storage/projects/plantMicroarrayProject/results/timeClusteredPlots/2006-07-19-TimeClusterPlot-Osmotic-Salt-base.svg");
//			URL url = f.toURL();
//			
//			SVGUniverse svguniverse = new com.kitfox.svg.SVGUniverse();
//			
//			URI uri = svguniverse.loadSVG(url);
//			
//			SVGDiagram svg = svguniverse.getDiagram(uri);
//			svg.setIgnoringClipHeuristic(false);
//			
//			
//			
////		# Create an image
//			int width = (int)(svg.getWidth() * scale);
//			int height = (int)(svg.getHeight() * scale);
//			
//			height = (int)svg.getHeight();
//			width = (int)svg.getWidth();
//			
//			BufferedImage b = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
//			Graphics2D g = b.createGraphics();
//
//			if( svg == null)
//				System.out.println("svg is null");
//			svg.render(g);
//			g.dispose();
//			
//			ImageIO.write(b, "png", new java.io.File("/global/home/dion/storage/projects/plantMicroarrayProject/results/timeClusteredPlots/2006-07-19-TimeClusterPlot-Osmotic-Salt-base.png"));
//		}
//		catch (MalformedURLException e)
//		{
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		catch (SVGException e)
//		{
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		catch (IOException e)
//		{
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}

	}

}

 

Ads help maintain this website.