org.jmol.api

Interface JmolDialogInterface

public interface JmolDialogInterface

Method Summary
abstract StringgetImageFileNameFromDialog(JmolViewer viewer, String fileName, String type, String[] imageChoices, String[] imageExtensions, int qualityJPG, int qualityPNG)
abstract StringgetOpenFileNameFromDialog(JmolAdapter modelAdapter, String appletContext, JmolViewer viewer, String fileName, Object historyFile, String windowName, boolean allowAppend)
abstract intgetQuality(String sType)
abstract StringgetSaveFileNameFromDialog(JmolViewer viewer, String data, String type)
abstract StringgetType()
abstract voidsetupUI(boolean forceNewTranslation)

Method Detail

getImageFileNameFromDialog

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

getOpenFileNameFromDialog

public abstract String getOpenFileNameFromDialog(JmolAdapter modelAdapter, String appletContext, JmolViewer viewer, String fileName, Object historyFile, String windowName, boolean allowAppend)

getQuality

public abstract 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.

getSaveFileNameFromDialog

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

getType

public abstract String getType()

Returns: The file type which contains the user's choice

setupUI

public abstract void setupUI(boolean forceNewTranslation)