org.jmol.export.dialog
Class Dialog
public
class
Dialog
extends JPanel
implements JmolDialogInterface
Method Summary |
String | closePreview() |
void | createExportPanel(String[] choices, String[] extensions, String type) |
static boolean | doOverWrite(JFileChooser chooser, File file) |
String | getImageFileNameFromDialog(JmolViewer viewer, String fileName, String type, String[] imageChoices, String[] imageExtensions, int qualityJPG0, int qualityPNG0) |
static String | getLocalUrl(File file) |
String | getOpenFileNameFromDialog(JmolAdapter modelAdapter, String appletContext, JmolViewer viewer, String fileName, Object historyFileObject, String windowName, boolean allowAppend) |
int | getQuality(String sType) |
String | getSaveFileNameFromDialog(JmolViewer viewer, String fileName, String type) |
String | getType() |
static void | getXPlatformLook(JFileChooser fc) |
void | setupUI(boolean forceNewTranslation) |
static void | setupUIManager()
Setup the UIManager (for i18n) |
File | showSaveDialog(Dialog sd, Component c, JFileChooser chooser, File file) |
private JComboBox cb
String choice
private static int defaultChoice
String extension
String[] extensions
static boolean haveTranslations
static JFileChooser imageChooser
File initialFile
private static boolean isMac
JPanel qPanelJPEG
JPanel qPanelPNG
private JSlider qSliderJPEG
private JSlider qSliderPNG
static int qualityJPG
static int qualityPNG
static JFileChooser saveChooser
private static final String[] urlPrefixes
public Dialog()
String closePreview()
private void createExportPanel(String[] choices, String[] extensions, String type)
private static boolean doOverWrite(JFileChooser chooser, File file)
public String getImageFileNameFromDialog(
JmolViewer viewer, String fileName, String type, String[] imageChoices, String[] imageExtensions, int qualityJPG0, int qualityPNG0)
static String getLocalUrl(File file)
public String getOpenFileNameFromDialog(
JmolAdapter modelAdapter, String appletContext,
JmolViewer viewer, String fileName, Object historyFileObject, String windowName, boolean allowAppend)
public int getQuality(String sType)
public String getSaveFileNameFromDialog(
JmolViewer viewer, String fileName, String type)
public String getType()
private static void getXPlatformLook(JFileChooser fc)
public void setupUI(boolean forceNewTranslation)
public static void setupUIManager()
Setup the UIManager (for i18n)
private File showSaveDialog(
Dialog sd, Component c, JFileChooser chooser, File file)