public class Graph3DPanel extends OutputPanel
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
Graph3DPanel(TabbedOutputPanel owner,
ODEVarVector current,
ODEVar x,
ODEVar y,
ODEVar z)
Constructor that creates a new OutputPanel given a TabbedOutputPanel.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canPrint()
Returns whether this Graph3DPanel can print.
|
void |
clear()
Clears the displayed data, resets the scale settings to default, and
empties the Plot3DPanel.
|
void |
equilibriumReceived()
Draw the Equilibrium points when new Equilibrium point is received.
|
void |
exportPostscript()
Exports the panel to a postscript file.
|
void |
gainedFocus()
When the 3D plot tab is clicked, redraw the plot.
|
org.math.plot.Plot3DPanel |
getPlot3DPanel()
Returns the plot panel contained in this Graph3DPanel.
|
Plot3DState |
getPlot3DState()
Returns the plot state that represents this Graph3DPanel's plot panel.
|
java.lang.String |
getTabName()
Returns the name that should be on this graph's tab
|
ODEVar |
getVar(int axis)
Returns the ODEVar corresponding to the given axis index.
|
ODEVarVector |
getVariables()
Returns the variables of the current ODE.
|
void |
paint(java.awt.Graphics g)
Paints the GraphPanel, and repaints the PlotPanel.
|
void |
print()
Prints the panel, which in turn launches the printing dialog box.
|
void |
setAllAutoScale(boolean autoScaleState)
This function is called any time auto-scaling is toggled.
|
void |
setAllGrid(boolean gridOn)
This function is called any time grid lines are toggled.
|
void |
setAxisLogScale(int axis,
boolean logScaleOn)
Sets the desired axis to logarithmic scaling, then updates the toolbar.
|
void |
setVar(int axis,
int index)
Set the variable on the axis corresponding to the given axis index.
|
void |
solutionReceived()
This function is called any time a new solution is to be painted on the
Plot3DPanel.
|
void |
updateDialogs()
Updates the label dialog according to its options
|
void |
updateTool()
This function is called any time the mouse action tool is changed.
|
getAccessibleContext, getUI, getUIClassID, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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
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, 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 Graph3DPanel(TabbedOutputPanel owner, ODEVarVector current, ODEVar x, ODEVar y, ODEVar z)
owner
- the TabbedOutputPanel to which the GraphPanel belongscurrent
- the ODEVarVector for the current ODEx
- the variable to display on x-axis, initiallyy
- the variable to display on y-axis, initiallyz
- the variable to display on z-axis, initiallypublic ODEVarVector getVariables()
public ODEVar getVar(int axis)
axis
- the axis index - 0 for x, 1 for y, and 2 for zpublic void setVar(int axis, int index)
axis
- the axis index - 0 for x, 1 for y, and 2 for zindex
- the index of the variable to be shown on that axispublic org.math.plot.Plot3DPanel getPlot3DPanel()
public Plot3DState getPlot3DState()
public void setAllAutoScale(boolean autoScaleState)
autoScaleState
- true if auto-scaling is set to on, false otherwisepublic void setAllGrid(boolean gridOn)
gridOn
- true if grid lines are set to visible, false otherwisepublic void setAxisLogScale(int axis, boolean logScaleOn)
axis
- int representing the axis (0 = x, 1 = y, and 2 = z)logScaleOn
- true if the axis is log-scaledpublic void updateDialogs()
public void updateTool()
public void clear()
clear
in class OutputPanel
public void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
g
- Graphics object corresponding to panel display.public void gainedFocus()
gainedFocus
in class OutputPanel
public void solutionReceived()
solutionReceived
in class OutputPanel
public java.lang.String getTabName()
getTabName
in class OutputPanel
public boolean canPrint()
canPrint
in class OutputPanel
public void print()
OutputPanel
print
in class OutputPanel
public void exportPostscript()
OutputPanel
exportPostscript
in class OutputPanel
public void equilibriumReceived()
equilibriumReceived
in class OutputPanel