public class TableFunctionInput extends Panel implements ItemListener, ActionListener, MouseListener, MouseMotionListener
Panel.AccessibleAWTPanelContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
TableFunctionInput()
Create a TableFunctionInput panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt)
React when user clicks one of the buttons or presses return in one
of the input boxes.
|
void |
cancelEdit()
Discards the internal pointer to the edit function (specified by startEdit()),
if any.
|
TableFunction |
copyOfCurrentFunction()
Create a new TableFunction containing the data that is currently
in the TableFunctionInput panel, and return a pointer to that new function.
|
TableFunction |
finishEdit()
If an edit function has been specified (by startEdit()), this function copies the
data form the TableFunctionInput into that function, and returns a
pointer to that function.
|
Insets |
getInsets()
Leave a 3-pixel gap around the edges of the panel.
|
Controller |
getOnChange()
Get the Controller that is notified when the user edits the data
in this panel.
|
void |
itemStateChanged(ItemEvent evt)
React when user clicks on a point in the list of points or clicks one
of the radio buttons for specifying the style of the function.
|
void |
mouseClicked(MouseEvent evt)
Empty method, required by the MouseListener interface.
|
void |
mouseDragged(MouseEvent evt)
Method required by the MouseListener interface.
|
void |
mouseEntered(MouseEvent evt)
Empty method, required by the MouseMotionListener interface.
|
void |
mouseExited(MouseEvent evt)
Empty method, required by the MouseMotionListener interface.
|
void |
mouseMoved(MouseEvent evt)
Empty method, required by the MouseMotionListener interface.
|
void |
mousePressed(MouseEvent evt)
Method required by the MouseListener interface.
|
void |
mouseReleased(MouseEvent evt)
Method required by the MouseListener interface.
|
void |
revertEditFunction()
If a function has been specified using startEdit(), and neither
finishEdit() nor cancelEdit have been called, then this method
will discard the current data in and replace it with data from
the edit function.
|
void |
setOnChange(Controller c)
Specify a controller whose compute() method will be called whenever
the user edits the data in this TableFunctionInput panel.
|
void |
startEdit(TableFunction f)
Install a function to be edited.
|
addNotify, getAccessibleContextadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic TableFunctionInput()
public void startEdit(TableFunction f)
public void revertEditFunction()
public TableFunction finishEdit()
public void cancelEdit()
public TableFunction copyOfCurrentFunction()
public void setOnChange(Controller c)
public Controller getOnChange()
public Insets getInsets()
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerpublic void itemStateChanged(ItemEvent evt)
itemStateChanged in interface ItemListenerpublic void mousePressed(MouseEvent evt)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent evt)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent evt)
mouseDragged in interface MouseMotionListenerpublic void mouseClicked(MouseEvent evt)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent evt)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent evt)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent evt)
mouseMoved in interface MouseMotionListener