org.openscience.jmol.app
public class PovrayDialog extends JDialog
Borrows code from org.openscience.jmol.Vibrate (Thanks!).
Nested Class Summary | |
---|---|
class | PovrayDialog.PovrayWindowListener
Listener for responding to dialog window events. |
Field Summary | |
---|---|
protected JCheckBox | allFramesCheck |
protected JCheckBox | antiAliasCheck |
protected JCheckBox | displayWhileRenderingCheck |
protected JButton | goButton |
JLabel | imageSizeHeight |
JCheckBox | imageSizeRatioBox |
JComboBox | imageSizeRatioCombo |
JFormattedTextField | imageSizeTextHeight |
JFormattedTextField | imageSizeTextWidth |
JLabel | imageSizeWidth |
JCheckBox | mosaicPreviewCheck |
JComboBox | mosaicPreviewComboEnd |
JComboBox | mosaicPreviewComboStart |
JLabel | mosaicPreviewEnd |
JLabel | mosaicPreviewStart |
JCheckBox | outputAlphaCheck |
String | outputExtension |
String | outputFileType |
JCheckBox | outputFormatCheck |
JComboBox | outputFormatCombo |
int | outputHeight |
int | outputWidth |
protected JButton | povrayPathButton |
protected JTextField | povrayPathLabel |
protected JCheckBox | runPovCheck |
protected JTextField | saveField |
protected JTextField | savePathLabel |
JmolViewer | viewer |
Constructor Summary | |
---|---|
PovrayDialog(JFrame f, JmolViewer viewer)
Creates a dialog for getting info related to output frames in
povray format. |
Method Summary | |
---|---|
void | cancelPressed()
Responds to cancel being press- or equivalent eg window closed. |
protected void | centerDialog()
Centers the dialog on the screen. |
String | doubleQuoteIfContainsSpace(String str) |
protected String | getCommandLine()
Generates a commandline from the options set for povray path
etc and sets in the textField. |
String | getINI()
Save INI file
|
void | getPathHistory()
Just recovers the path settings from last session. |
void | goPressed()
Save or else launch povray- ie do our thang! |
void | imageSizeChanged()
Called when the ImageSize check box is modified |
void | mosaicPreviewChanged()
Called when the MosaicPreview check box is modified |
void | outputFormatChanged()
Called when the OutputFormat check box is modified |
void | saveHistory()
Just saves the path settings from this session. |
void | setImageDimensions(int imageWidth, int imageHeight)
Sets the output image dimensions. |
void | showPovrayPathDialog()
Show a file selector when the savePath button is pressed. |
void | showSavePathDialog()
Show a file selector when the savePath button is pressed. |
String | simpleQuoteIfContainsSpace(String str) |
protected void | updateCommandLine() |
protected void | updateScreen()
Update screen informations |
Parameters: f The frame assosiated with the dialog viewer The interacting display we are reproducing (source of view angle info etc)
Returns: command line
Returns: INI data
Parameters: imageWidth The width of the image. imageHeight The height of the image.