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

org.freehep.graphicsio.exportchooser.ImagePanel Maven / Gradle / Ivy

There is a newer version: 2.4
Show newest version
// Copyright 2003, FreeHEP.
package org.freehep.graphicsio.exportchooser;

import java.util.Properties;

import javax.swing.ButtonGroup;
import javax.swing.JLabel;

import org.freehep.graphicsbase.swing.layout.TableLayout;
import org.freehep.graphicsio.ImageConstants;

/**
 * 
 * @author Mark Donszelmann
 * @version $Id: freehep-graphicsio/src/main/java/org/freehep/graphicsio/exportchooser/ImagePanel.java 5641ca92a537 2005/11/26 00:15:35 duns $
 */
public class ImagePanel extends OptionPanel {
    public ImagePanel(Properties options, String rootKey, String[] formats) {
        super("Images");

        add(TableLayout.FULL, new JLabel("Write Images as"));
        ButtonGroup group = new ButtonGroup();
        OptionRadioButton imageType[] = new OptionRadioButton[formats.length];
        for (int i = 0; i < formats.length; i++) {
            imageType[i] = new OptionRadioButton(options, rootKey + "."
                    + ImageConstants.WRITE_IMAGES_AS, formats[i]);
            add(TableLayout.FULL, imageType[i]);
            group.add(imageType[i]);
            // add(TableLayout.RIGHT, new OptionTextField(options,
            // rootKey+"."+keys[i], 40));
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy