public class TabbedOutputPanel extends javax.swing.JTabbedPane implements SolutionReadyListener
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
TabbedOutputPanel(ODEWorkspace newOwner)
Constructor that creates a new TabbedOutputPanel according to the given
ODEWorkspace
|
Modifier and Type | Method and Description |
---|---|
boolean |
canPrint()
Check whether the current panel can be printed.
|
void |
clearAll()
Clear all displayed data in each sub-panel.
|
void |
clearAllPlotsObjects()
Remove all Curves and Equilibrium points
|
void |
createGraphPanels()
Creates panels for displaying the ode solution data.
|
void |
drawAllPoints()
Draws all current points when this tab is reloaded, e.g.
|
void |
errorCondition(java.lang.Exception ex)
Required by the SolutionReadyListener interface.
|
void |
errorCondition(java.lang.String error)
Required by the SolutionReadyListener interface.
|
void |
exportPostscript()
Export the current panel
|
ODE |
getCurrentODE()
Returns the active ODE.
|
int |
getNumODEs()
Returns the number of ODE in the workspace.
|
java.util.Vector<ODE> |
getODEs()
Returns the list of ODEs in this workspace.
|
ODEWorkspace |
getOwner()
Returns the ODEWorkspace owning this tabbed panel.
|
ODEVarVector |
getVars()
Returns the variables in the workspace.
|
boolean |
isDirFieldPossible(ODEVar xVar,
ODEVar yVar)
Check whether a direction field can be drawn for the given pair of
variables.
|
void |
newEquilibrium()
Make all tabs response to the new Equilibrium Point
|
void |
print()
Print the current panel
|
void |
repaintDataPanel()
Repaint the data panel.
|
void |
replaceODE(ODE newODE)
Replace the graphs of the previous ode with a new ode's graphs.
|
void |
setAllAutoScaleNeeded()
Inform all GraphPanels that re-scaling is needed.
|
static void |
setComponentEnabled(java.awt.Container container,
boolean enabled)
Recursively sets the "enabled" flag for a component (e.g., a panel).
|
void |
setSelectedIndex(int i) |
void |
showDialog(javax.swing.JDialog d)
Display an arbitrary dialog.
|
void |
solutionReady(double[][] sol)
When the last solution point is received, solutionReady is called, which
draws all remaining points and starts a fresh curve.
|
void |
storeIC(ODEVar var,
double x)
Store the initial condition for a variable.
|
void |
updateStatusPoint(java.awt.geom.Point2D.Double pt)
Update the point displayed on the status bar.
|
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, setUI, updateUI
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, 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, update
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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
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, 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, transferFocusUpCycle
public TabbedOutputPanel(ODEWorkspace newOwner)
newOwner
- The ODEWorkspace that owns this TabbedOutputPanelpublic void createGraphPanels()
public ODEWorkspace getOwner()
public ODE getCurrentODE()
public java.util.Vector<ODE> getODEs()
public int getNumODEs()
public ODEVarVector getVars()
public boolean isDirFieldPossible(ODEVar xVar, ODEVar yVar)
xVar
- The first variableyVar
- The second variablepublic boolean canPrint()
public void print()
public void exportPostscript()
public void storeIC(ODEVar var, double x)
var
- the variable to store a new initial conditionx
- the initial condition for the given variablepublic void clearAll()
public void replaceODE(ODE newODE)
newODE
- public void clearAllPlotsObjects()
public void setAllAutoScaleNeeded()
public static void setComponentEnabled(java.awt.Container container, boolean enabled)
container
- the component who should be enabled/disabledenabled
- true or falsepublic void updateStatusPoint(java.awt.geom.Point2D.Double pt)
pt
- the point to be displayed on the status barpublic void showDialog(javax.swing.JDialog d)
public void drawAllPoints()
public void newEquilibrium()
public void repaintDataPanel()
public void setSelectedIndex(int i)
setSelectedIndex
in class javax.swing.JTabbedPane
public void solutionReady(double[][] sol)
solutionReady
in interface SolutionReadyListener
sol
- the 2D array representing the solutionpublic void errorCondition(java.lang.Exception ex)
errorCondition
in interface SolutionReadyListener
ex
- the exception to be handledpublic void errorCondition(java.lang.String error)
errorCondition
in interface SolutionReadyListener
error
- string describing error condition