org.jmol.api
Interface JmolDialogInterface

All Known Implementing Classes:
Dialog

public interface JmolDialogInterface


Method Summary
 String getImageFileNameFromDialog(JmolViewer viewer, String fileName, String type, String[] imageChoices, String[] imageExtensions, int qualityJPG, int qualityPNG)
           
 String getOpenFileNameFromDialog(String appletContext, JmolViewer viewer, String fileName, Object historyFile, String windowName, boolean allowAppend)
           
 int getQuality(String sType)
           
 String getSaveFileNameFromDialog(JmolViewer viewer, String data, String type)
           
 String getType()
           
 void setupUI(boolean forceNewTranslation)
           
 

Method Detail

setupUI

void setupUI(boolean forceNewTranslation)

getType

String getType()
Returns:
The file type which contains the user's choice

getQuality

int getQuality(String sType)
Parameters:
sType - JPG or PNG
Returns:
The quality (on a scale from 0 to 100) of the JPEG. 0 to 9 for PNG image that is to be generated. Returns -1 if choice was not JPEG or PNG.

getOpenFileNameFromDialog

String getOpenFileNameFromDialog(String appletContext,
                                 JmolViewer viewer,
                                 String fileName,
                                 Object historyFile,
                                 String windowName,
                                 boolean allowAppend)

getSaveFileNameFromDialog

String getSaveFileNameFromDialog(JmolViewer viewer,
                                 String data,
                                 String type)

getImageFileNameFromDialog

String getImageFileNameFromDialog(JmolViewer viewer,
                                  String fileName,
                                  String type,
                                  String[] imageChoices,
                                  String[] imageExtensions,
                                  int qualityJPG,
                                  int qualityPNG)