org.openscience.jmol.app
public class AtomSetChooser extends JFrame implements TreeSelectionListener, PropertyChangeListener, ActionListener, ChangeListener, Runnable
| Nested Class Summary | |
|---|---|
| static class | AtomSetChooser.AtomSet
Objects in the AtomSetChooser tree |
| Field Summary | |
|---|---|
| static float | AMPLITUDE_MAX
Maximum value for vibration scale. |
| static float | AMPLITUDE_PRECISION
Precision of the vibration scale slider |
| static float | AMPLITUDE_VALUE
Initial value of vibration scale. |
| JSlider | amplitudeSlider |
| Thread | animThread |
| int | currentIndex |
| static String | COLLECTION
String for prefix/resource identifier for the collection area.
|
| JSlider | fpsSlider |
| static String | FF |
| static int | FPS_MAX
Maximum value for the fps slider. |
| int[] | indexes
Sequence of atom set indexes in current tree selection for a branch,
or siblings for a leaf. |
| JLabel | infoLabel |
| static String | NEXT |
| JSlider | periodSlider |
| JTextArea | propertiesTextArea |
| static String | PAUSE |
| static float | PERIOD_MAX
Maximum value for the vibration period in seconds. |
| static float | PERIOD_PRECISION
Precision of the vibration period slider in seconds. |
| static float | PERIOD_VALUE
Initial value for the vibration period in seconds. |
| static String | PLAY |
| static String | PREVIOUS |
| JSlider | radiusSlider |
| JCheckBox | repeatCheckBox |
| static int | RADIUS_MAX
Maximum value for vector radius. |
| static int | RADIUS_VALUE
Initial value of vector radius. |
| static String | REWIND |
| JFileChooser | saveChooser |
| JSlider | scaleSlider |
| JSlider | selectSlider |
| static String | SAVE |
| static float | SCALE_MAX
Maximum value for vector scale. |
| static float | SCALE_PRECISION
Precision of the vector scale slider |
| static float | SCALE_VALUE
Initial value of vector scale. |
| JTree | tree |
| DefaultTreeModel | treeModel |
| JmolViewer | viewer |
| static String | VECTOR
String for prefix/resource identifier for the vector area.
|
| Constructor Summary | |
|---|---|
| AtomSetChooser(JmolViewer viewer, JFrame frame) | |
| Method Summary | |
|---|---|
| void | actionPerformed(ActionEvent e) |
| void | createTreeModel()
Creates the treeModel of the AtomSets available in the JmolViewer |
| JPanel | createVCRController(String section)
Creates a VCR type set of controller inside a JPanel.
|
| void | findFrequency(int index, int increment)
Have the viewer show a particular frame with frequencies
if it can be found. |
| void | layoutWindow(Container container) |
| void | propertyChange(PropertyChangeEvent propertyChangeEvent) |
| void | run() |
| void | saveXYZCollection()
Saves the currently active collection as a multistep XYZ file. |
| protected void | setIndexes(DefaultMutableTreeNode node)
Sets the indexes to the atomSetIndex values of each leaf of the node. |
| protected void | showAtomSetIndex(int index, boolean bSetSelectSlider)
Show an atom set from the indexes array |
| protected void | showAuxiliaryInfo(Hashtable auxiliaryInfo)
Shows the auxiliary information in the propertiesPane of the
AtomSetChooser window |
| protected void | showProperties(Properties properties)
Shows the properties in the propertiesPane of the
AtomSetChooser window |
| void | stateChanged(ChangeEvent e) |
| void | valueChanged(TreeSelectionEvent e) |
Uses the JmolResourceHandler to get the label for the panel,
the images for the buttons, and the tooltips. The button names are
rewind, prev, play, pause,
next, and ff.
The handler for the buttons should determine from the getActionCommand
which button in which section triggered the actionEvent, which is identified
by {section}.{name}.
Parameters: section String of the section that the controller belongs to.
Returns: The JPanel
Parameters: index Starting index where to start looking for frequencies increment Increment value for how to go through the list
Parameters: node The node whose leaf's atomSetIndex values should be used
Parameters: index The index in the index array bSetSelectSlider If true, updates the selectSlider
Parameters: auxiliaryInfo Hashtable to be shown.
Parameters: properties Properties to be shown.