org.openscience.jmol.app

Class PreferencesDialog

public class PreferencesDialog extends JDialog implements ActionListener

Nested Class Summary
classPreferencesDialog.PrefsAction
Field Summary
JRadioButtonabNo
JRadioButtonabYes
JButtonapplyButton
booleanautoBond
booleanaxesOrientationRasmol
JButtonbButton
JSliderbdSlider
floatbondTolerance
JSliderbtSlider
JSliderbwSlider
JButtoncancelButton
JCheckBoxcbAxesOrientationRasmol
JCheckBoxcbClearConsoleButton
JCheckBoxcbOpenFilePreview
JCheckBoxcbPerspectiveDepth
JCheckBoxcbShowAxes
JCheckBoxcbShowBoundingBox
ItemListenercheckBoxListener
JCheckBoxcH
booleanclearConsoleButton
JCheckBoxcM
Hashtablecommands
PropertiescurrentProperties
JButtoneButton
GuiMapguimap
PropertiesjmolDefaultProperties
static String[]jmolDefaults
JButtonjmolDefaultsButton
shortmarBond
floatminBondDistance
JButtonokButton
booleanopenFilePreview
PropertiesoriginalSystemProperties
JButtonpButton
intpercentVdwAtom
booleanperspectiveDepth
PreferencesDialog.PrefsActionprefsAction
JButtonrasmolDefaultsButton
static String[]rasmolOverrides
booleanshowAxes
booleanshowBoundingBox
booleanshowHydrogens
booleanshowMeasurements
JButtontButton
JButtonvButton
JSlidervdwPercentSlider
JmolViewerviewer
Constructor Summary
PreferencesDialog(JFrame f, GuiMap guimap, JmolViewer viewer)
Method Summary
voidactionPerformed(ActionEvent event)
JPanelbuildAtomsPanel()
JPanelbuildBondPanel()
JPanelbuildDispPanel()
voidcancel()
protected voidcenterDialog()
protected ActiongetAction(String cmd)
Action[]getActions()
voidinitializeProperties()
voidinitVariables()
voidok()
voidresetDefaults(String[] overrides)
voidsave()
voidupdateComponents()

Field Detail

abNo

private JRadioButton abNo

abYes

private JRadioButton abYes

applyButton

private JButton applyButton

autoBond

private boolean autoBond

axesOrientationRasmol

boolean axesOrientationRasmol

bButton

JButton bButton

bdSlider

private JSlider bdSlider

bondTolerance

float bondTolerance

btSlider

private JSlider btSlider

bwSlider

private JSlider bwSlider

cancelButton

private JButton cancelButton

cbAxesOrientationRasmol

private JCheckBox cbAxesOrientationRasmol

cbClearConsoleButton

private JCheckBox cbClearConsoleButton

cbOpenFilePreview

private JCheckBox cbOpenFilePreview

cbPerspectiveDepth

private JCheckBox cbPerspectiveDepth

cbShowAxes

private JCheckBox cbShowAxes

cbShowBoundingBox

private JCheckBox cbShowBoundingBox

checkBoxListener

ItemListener checkBoxListener

cH

private JCheckBox cH

clearConsoleButton

boolean clearConsoleButton

cM

private JCheckBox cM

commands

private Hashtable commands

currentProperties

Properties currentProperties

eButton

JButton eButton

guimap

GuiMap guimap

jmolDefaultProperties

private Properties jmolDefaultProperties

jmolDefaults

static final String[] jmolDefaults

jmolDefaultsButton

private JButton jmolDefaultsButton

marBond

short marBond

minBondDistance

float minBondDistance

okButton

private JButton okButton

openFilePreview

boolean openFilePreview

originalSystemProperties

private Properties originalSystemProperties

pButton

JButton pButton

percentVdwAtom

int percentVdwAtom

perspectiveDepth

boolean perspectiveDepth

prefsAction

private PreferencesDialog.PrefsAction prefsAction

rasmolDefaultsButton

private JButton rasmolDefaultsButton

rasmolOverrides

static final String[] rasmolOverrides

showAxes

boolean showAxes

showBoundingBox

boolean showBoundingBox

showHydrogens

boolean showHydrogens

showMeasurements

boolean showMeasurements

tButton

JButton tButton

vButton

JButton vButton

vdwPercentSlider

private JSlider vdwPercentSlider

viewer

JmolViewer viewer

Constructor Detail

PreferencesDialog

public PreferencesDialog(JFrame f, GuiMap guimap, JmolViewer viewer)

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)

buildAtomsPanel

public JPanel buildAtomsPanel()

buildBondPanel

public JPanel buildBondPanel()

buildDispPanel

public JPanel buildDispPanel()

cancel

public void cancel()

centerDialog

protected void centerDialog()

getAction

protected Action getAction(String cmd)

getActions

public Action[] getActions()

initializeProperties

void initializeProperties()

initVariables

void initVariables()

ok

public void ok()

resetDefaults

void resetDefaults(String[] overrides)

save

private void save()

updateComponents

private void updateComponents()