cct.dialogs
Class AnimationPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by cct.dialogs.AnimationPanel
All Implemented Interfaces:
TrajectoryClientInterface, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class AnimationPanel
extends javax.swing.JPanel
implements TrajectoryClientInterface, java.awt.event.ActionListener

Title: Computational Chemistry Tookit

Description:

Copyright: Copyright (c) 2005-2007 Dr. Vladislav Vassiliev

Company: ANU

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.JComboBox animationComboBox
           
protected  java.awt.BorderLayout borderLayout1
           
protected  java.awt.BorderLayout borderLayout2
           
protected  javax.swing.JTextField currentFrameTextField
           
protected  javax.swing.SpinnerModel fpsModel
           
protected  javax.swing.JSpinner fpsSpinner
           
protected  java.awt.GridBagLayout gridBagLayout1
           
protected  java.awt.GridBagLayout gridBagLayout2
           
protected  javax.swing.JLabel jLabel3
           
protected  javax.swing.JLabel jLabel4
           
protected  javax.swing.JPanel jPanel1
           
protected  javax.swing.JPanel jPanel2
           
protected  javax.swing.JPanel jPanel3
           
protected  javax.swing.JPanel jPanel4
           
protected  javax.swing.JLabel maxLabel
           
protected  javax.swing.JButton mediaEndButton
           
protected  javax.swing.JLabel minLabel
           
protected  javax.swing.JButton pauseButton
           
protected  javax.swing.JButton playBackButton
           
protected  javax.swing.JButton playButton
           
protected  javax.swing.JPanel sliderPanel
           
protected  javax.swing.JButton startMediaButton
           
protected  javax.swing.JButton stepBackButton
           
protected  javax.swing.JButton stepForwardButton
           
protected  javax.swing.SpinnerModel stepModel
           
protected  javax.swing.JSpinner stepSpinner
           
protected  javax.swing.JSlider trajSlider
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AnimationPanel()
           
AnimationPanel(StructureManagerInterface smi)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Called when the Timer fires.
 void animationComboBox_itemStateChanged(java.awt.event.ItemEvent e)
           
 void currentFrameTextField_actionPerformed(java.awt.event.ActionEvent e)
           
 void fpsSpinner_stateChanged(javax.swing.event.ChangeEvent e)
           
 void mediaEndButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void pauseButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void playBackButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void playButton_actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  void selectStructure(int n)
           
 void setMaxSnapshotCount(int new_max)
           
 void setSnapshotsCount(int new_max)
           
 void setSnapshotValue(int new_value)
           
 void setStructureManagerInterface(StructureManagerInterface smi)
           
 void startAnimation()
           
 void startMediaButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void stepBackButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void stepForwardButton_actionPerformed(java.awt.event.ActionEvent e)
           
 void stepSpinner_stateChanged(javax.swing.event.ChangeEvent e)
           
 void stopAnimation()
           
 void trajSlider_stateChanged(javax.swing.event.ChangeEvent e)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stepModel

protected javax.swing.SpinnerModel stepModel

fpsModel

protected javax.swing.SpinnerModel fpsModel

borderLayout1

protected java.awt.BorderLayout borderLayout1

jPanel1

protected javax.swing.JPanel jPanel1

startMediaButton

protected javax.swing.JButton startMediaButton

stepSpinner

protected javax.swing.JSpinner stepSpinner

sliderPanel

protected javax.swing.JPanel sliderPanel

maxLabel

protected javax.swing.JLabel maxLabel

currentFrameTextField

protected javax.swing.JTextField currentFrameTextField

mediaEndButton

protected javax.swing.JButton mediaEndButton

trajSlider

protected javax.swing.JSlider trajSlider

pauseButton

protected javax.swing.JButton pauseButton

playBackButton

protected javax.swing.JButton playBackButton

playButton

protected javax.swing.JButton playButton

minLabel

protected javax.swing.JLabel minLabel

jLabel3

protected javax.swing.JLabel jLabel3

stepBackButton

protected javax.swing.JButton stepBackButton

stepForwardButton

protected javax.swing.JButton stepForwardButton

gridBagLayout1

protected java.awt.GridBagLayout gridBagLayout1

jPanel2

protected javax.swing.JPanel jPanel2

gridBagLayout2

protected java.awt.GridBagLayout gridBagLayout2

jLabel4

protected javax.swing.JLabel jLabel4

fpsSpinner

protected javax.swing.JSpinner fpsSpinner

jPanel3

protected javax.swing.JPanel jPanel3

jPanel4

protected javax.swing.JPanel jPanel4

borderLayout2

protected java.awt.BorderLayout borderLayout2

animationComboBox

protected javax.swing.JComboBox animationComboBox
Constructor Detail

AnimationPanel

public AnimationPanel()

AnimationPanel

public AnimationPanel(StructureManagerInterface smi)
Method Detail

setStructureManagerInterface

public void setStructureManagerInterface(StructureManagerInterface smi)

setMaxSnapshotCount

public void setMaxSnapshotCount(int new_max)

setSnapshotValue

public void setSnapshotValue(int new_value)

trajSlider_stateChanged

public void trajSlider_stateChanged(javax.swing.event.ChangeEvent e)

selectStructure

void selectStructure(int n)
               throws java.lang.Exception
Throws:
java.lang.Exception

setSnapshotsCount

public void setSnapshotsCount(int new_max)
Specified by:
setSnapshotsCount in interface TrajectoryClientInterface

startMediaButton_actionPerformed

public void startMediaButton_actionPerformed(java.awt.event.ActionEvent e)

mediaEndButton_actionPerformed

public void mediaEndButton_actionPerformed(java.awt.event.ActionEvent e)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Called when the Timer fires.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ActionEvent

playButton_actionPerformed

public void playButton_actionPerformed(java.awt.event.ActionEvent e)

startAnimation

public void startAnimation()

stopAnimation

public void stopAnimation()

pauseButton_actionPerformed

public void pauseButton_actionPerformed(java.awt.event.ActionEvent e)

playBackButton_actionPerformed

public void playBackButton_actionPerformed(java.awt.event.ActionEvent e)

stepSpinner_stateChanged

public void stepSpinner_stateChanged(javax.swing.event.ChangeEvent e)

fpsSpinner_stateChanged

public void fpsSpinner_stateChanged(javax.swing.event.ChangeEvent e)

stepForwardButton_actionPerformed

public void stepForwardButton_actionPerformed(java.awt.event.ActionEvent e)

stepBackButton_actionPerformed

public void stepBackButton_actionPerformed(java.awt.event.ActionEvent e)

animationComboBox_itemStateChanged

public void animationComboBox_itemStateChanged(java.awt.event.ItemEvent e)

currentFrameTextField_actionPerformed

public void currentFrameTextField_actionPerformed(java.awt.event.ActionEvent e)