public class ODEWorkspace
extends javax.swing.JPanel
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
ODEWorkspace(GUI gui,
java.lang.String name)
Constructor that creates a new, blank ODEWorkspace, given the name and
the reference to the main GUI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllPlotObjects()
Clears the curves and equilibrium points of all ODE.
|
void |
enableSolveComponents(boolean enabled)
Set the solve components to be enabled or disabled
|
void |
exportPostscript()
Export the selected tab to postscript.
|
void |
focusODEText()
Request focus on the ODE Text.
|
ODE |
getCurrentODE()
Returns the active ODE of this ODEWorkspace.
|
ODEVarVector |
getCurrentODEVarVector()
Returns the ODEVarVector for the current ODE.
|
java.io.File |
getFile()
Returns the file corresponding to this ODEWorkspace.
|
InputPanel |
getInputPanel()
Returns the input panel of this ODEWorkspace.
|
java.lang.String |
getName()
Returns the name of the ODEworkspace.
|
int |
getNumODEs()
Returns the number of ODEs in the ODEWorkspace.
|
java.util.Vector<ODE> |
getODEs()
Returns the vector of all ODEs in the ODEWorkspace.
|
SolverParameters |
getParameters()
Returns the current solver parameters.
|
TabbedOutputPanel |
getTabbedGraphPanel()
Returns the TabbedOutputPanel of this ODEWorkspace.
|
ODEVarKeeper |
getVarKeeper()
Returns the variable keeper of this ODEWorkspace.
|
WorkspaceData |
getWorkspace()
Returns the WorkspaceData of this ODEWorkspace.
|
void |
print()
Print the selected tab.
|
void |
reload()
Reload the workspace.
|
void |
setFile(java.io.File f)
Set the file corresponding to this ODEWorkspace.
|
void |
setParameters(SolverParameters params)
Set the solver parameters.
|
void |
setStatusBar(java.lang.String message)
Set the message on the status bar.
|
void |
setStatusBar(java.lang.String message,
boolean busy)
Set the message and availability status on the status bar.
|
void |
setVarKeeper(ODEVarKeeper keeper)
Set the variable keeper of thie ODEWorkspace.
|
void |
showDialog(javax.swing.JDialog dialog)
Shows a dialog
|
void |
solveBackward()
Solve backward for a curve.
|
void |
solveForward()
Solve forward for a curve.
|
void |
solveOrbit()
Solve orbit for 2 curves, one forward, and one backward.
|
void |
stopSolve()
Stop the solver.
|
boolean |
storeDefinition(java.lang.String odeText)
EnterODE takes a string and uses the parser to extract useful a valid
ode.
|
void |
storeIC(ODEVar var,
double val)
Stores the new initial condition and update the GUI.
|
void |
storeName(java.lang.String name)
Store/Rename the name of the ODE.
|
void |
updateGUI_IC()
Update the initial conditions on the GUI.
|
void |
updateGUI_parameters()
Update the solver parameters on the GUI.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, 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, hide, 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, updateadd, 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, transferFocusDownCycle, validateaction, 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, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, transferFocusBackward, transferFocusUpCyclepublic ODEWorkspace(GUI gui, java.lang.String name)
gui - the GUI of the programname - the name for this new ODEWorkspacepublic WorkspaceData getWorkspace()
public java.io.File getFile()
public void setFile(java.io.File f)
f - the file corresponding to this ODEWorkspacepublic java.lang.String getName()
getName in class java.awt.Componentpublic TabbedOutputPanel getTabbedGraphPanel()
public InputPanel getInputPanel()
public ODE getCurrentODE()
public SolverParameters getParameters()
public java.util.Vector<ODE> getODEs()
public int getNumODEs()
public ODEVarKeeper getVarKeeper()
public void setVarKeeper(ODEVarKeeper keeper)
keeper - the variable keeper to set topublic ODEVarVector getCurrentODEVarVector()
public void storeName(java.lang.String name)
name - the name of the ODEpublic void storeIC(ODEVar var, double val)
var - the variable to change the initial conditionval - the new initial condition to change topublic boolean storeDefinition(java.lang.String odeText)
odeText - the definition of the ODE input by userpublic void updateGUI_IC()
public void setParameters(SolverParameters params)
params - the solver parameters to set topublic void updateGUI_parameters()
public void setStatusBar(java.lang.String message,
boolean busy)
message - the message to showbusy - true iff the bar should be shown as busy, false otherwisepublic void setStatusBar(java.lang.String message)
message - the message to showpublic void clearAllPlotObjects()
public void enableSolveComponents(boolean enabled)
enabled - true iff set to enabled, false otherwisepublic void solveForward()
public void solveBackward()
public void solveOrbit()
public void stopSolve()
public void reload()
public void showDialog(javax.swing.JDialog dialog)
dialog - the dialog to showpublic void focusODEText()
public void print()
public void exportPostscript()