// Path: src/edu/uic/ncdm/venn/VennDiagram.java
// public class VennDiagram {
//     public double[][] centers;
//     public double[] diameters;
//     public double[] areas;
//     public double[] residuals;
//     public double[] colors;
//     public String[] circleLabels;
//     public String[] residualLabels;
//     public double stress;
//     public double stress01;
//     public double stress05;
// 
//     public VennDiagram(double[][] centers, double[] diameters, double[] areas, double[] residuals,
//                        String[] circleLabels, String[] residualLabels, double[] colors,
//                        double stress, double stress01, double stress05) {
//         this.centers = centers;
//         this.diameters = diameters;
//         this.areas = areas;
//         this.residuals = residuals;
//         this.colors = colors;
//         this.circleLabels = circleLabels;
//         this.residualLabels = residualLabels;
//         this.stress = stress;
//         this.stress01 = stress01;
//         this.stress05 = stress05;
//     }
// }


import edu.uic.ncdm.venn.VennDiagram;
import javax.swing.*;
import java.awt.*;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
/*
 * VennEuler -- A Venn and Euler Diagram program.
 *
 * Copyright 2009 by Leland Wilkinson.
 *
 * The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License")
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the License.
 */

package edu.uic.ncdm.venn.display;



public class VennCanvas extends JPanel {
    private BufferedImage bi;
    public double[][] centers;
    public double[] diameters;
    public double[] colors;
    public String[] labels;
    private int size;
    private double mins, maxs;
    private FontRenderContext frc;

// Path: src/edu/uic/ncdm/venn/VennDiagram.java
// public class VennDiagram {
//     public double[][] centers;
//     public double[] diameters;
//     public double[] areas;
//     public double[] residuals;
//     public double[] colors;
//     public String[] circleLabels;
//     public String[] residualLabels;
//     public double stress;
//     public double stress01;
//     public double stress05;
// 
//     public VennDiagram(double[][] centers, double[] diameters, double[] areas, double[] residuals,
//                        String[] circleLabels, String[] residualLabels, double[] colors,
//                        double stress, double stress01, double stress05) {
//         this.centers = centers;
//         this.diameters = diameters;
//         this.areas = areas;
//         this.residuals = residuals;
//         this.colors = colors;
//         this.circleLabels = circleLabels;
//         this.residualLabels = residualLabels;
//         this.stress = stress;
//         this.stress01 = stress01;
//         this.stress05 = stress05;
//     }
// }


// Path: src/edu/uic/ncdm/venn/display/VennCanvas.java
import edu.uic.ncdm.venn.VennDiagram;
import javax.swing.*;
import java.awt.*;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;

/*
 * VennEuler -- A Venn and Euler Diagram program.
 *
 * Copyright 2009 by Leland Wilkinson.
 *
 * The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License")
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the License.
 */

package edu.uic.ncdm.venn.display;



public class VennCanvas extends JPanel {
    private BufferedImage bi;
    public double[][] centers;
    public double[] diameters;
    public double[] colors;
    public String[] labels;
    private int size;
    private double mins, maxs;
    private FontRenderContext frc;

    public VennCanvas(VennDiagram venn) {