as.clynx
Class CLynx

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 as.clynx.CLynx
All Implemented Interfaces:
IPlayerListener, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class CLynx
extends javax.swing.JPanel
implements IPlayerListener, java.awt.event.ActionListener

The class cLynx either can be implemented in any Swing application due it extends JPanel, or can be executed in console mode or grafical mode. in the implemented mode a SOMToolBoxConnector instance is passed, which passes all needed values. in the stand-alone console mode a properties file must be passed. the java execution looks like: java eval.cLynx -s constants.properties

Version:
cLynx v.1.2, JDK 6.0: 20.09.2007
Author:
Andreas Senfter - andreas@senfters.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static int CONSOLEWIDTH
           
static int GUIHEIGHT
           
static int GUIWIDTH
           
static boolean PLUG_IN
           
static java.lang.String START_PARAMS_DIR
           
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
CLynx()
          Constructor
CLynx(java.util.Properties props)
          Constructor with defined properties: Propertieskeys are: CLynx.START_PARAMS_DIR
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
 void closePrompt()
          stops all running threadsthe running playback thread
static void main(java.lang.String[] args)
          executeable mode. starts the cLynx in stand-alone mode. if a propertyfile was specified, the application runs in consolemode otherwise the GUI mode is started.
 void pausePressed()
          pauses the evaluation
 void playPressed()
          starts the evaluation
 void setCLynxConnector(CLynxConnector connector)
          sets the connector to an external tool in which the CLynx is implemented in the implemented mode.
 void stopPressed()
          stops the evaluation
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUG_IN

public static boolean PLUG_IN

START_PARAMS_DIR

public static java.lang.String START_PARAMS_DIR

GUIWIDTH

public static int GUIWIDTH

CONSOLEWIDTH

public static int CONSOLEWIDTH

GUIHEIGHT

public static int GUIHEIGHT
Constructor Detail

CLynx

public CLynx()
Constructor


CLynx

public CLynx(java.util.Properties props)
Constructor with defined properties: Propertieskeys are: CLynx.START_PARAMS_DIR

Method Detail

playPressed

public void playPressed()
Description copied from interface: IPlayerListener
starts the evaluation

Specified by:
playPressed in interface IPlayerListener

stopPressed

public void stopPressed()
Description copied from interface: IPlayerListener
stops the evaluation

Specified by:
stopPressed in interface IPlayerListener

pausePressed

public void pausePressed()
Description copied from interface: IPlayerListener
pauses the evaluation

Specified by:
pausePressed in interface IPlayerListener

setCLynxConnector

public void setCLynxConnector(CLynxConnector connector)
sets the connector to an external tool in which the CLynx is implemented in the implemented mode.

Parameters:
connector -

main

public static void main(java.lang.String[] args)
                 throws ThreadExceededException,
                        InvalidParameterException
executeable mode. starts the cLynx in stand-alone mode. if a propertyfile was specified, the application runs in consolemode otherwise the GUI mode is started. e.g. java eval.cLynx [DIR_TO_PROPERTY_FILE] executes the application in consolemode. java eval.cLynx executes the application in guimode.

Parameters:
args - Needed program arguments:
  • -s settingfile
  • -sp start up parameters
Throws:
ThreadExceededException
InvalidParameterException

closePrompt

public void closePrompt()
stops all running threadsthe running playback thread


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Specified by:
actionPerformed in interface java.awt.event.ActionListener