// Copyright 2003, FreeHEP. package org.freehep.graphicsio.exportchooser; import java.util.Properties; import javax.swing.JLabel; import org.freehep.graphicsio.PageConstants; import org.freehep.swing.layout.TableLayout; /** * * @author Mark Donszelmann * @version $Id: PageLayoutPanel.java 8584 2006-08-10 23:06:37Z duns $ */ public class PageLayoutPanel extends OptionPanel { public PageLayoutPanel(Properties options, String rootKey) { super("Page Layout"); add(TableLayout.LEFT, new JLabel("Size:")); add(TableLayout.RIGHT, new OptionComboBox(options, rootKey + "." + PageConstants.PAGE_SIZE, PageConstants.getSizeList())); // FIXME: re-add FREEHEP-277, Margins are now Insets // add(TableLayout.LEFT , new JLabel("Margins:")); // add(TableLayout.RIGHT, new OptionComboBox(options, // rootKey+"."+PageConstants.PAGE_MARGINS, // PageConstants.getMarginsList())); add(TableLayout.LEFT, new JLabel("Orientation:")); add(TableLayout.RIGHT, new OptionComboBox(options, rootKey + "." + PageConstants.ORIENTATION, PageConstants .getOrientationList())); add(TableLayout.FULL, new OptionCheckBox(options, rootKey + "." + PageConstants.FIT_TO_PAGE, "Fit to Page")); } }