Package org.apfloat.calc
Class CalculatorAWT
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Panel
-
- org.apfloat.calc.CalculatorAWT
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible
public class CalculatorAWT extends java.awt.PanelGraphical AWT elements for the calculator.- Version:
- 1.14.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCalculatorAWT.FlushStringWriter
-
Field Summary
Fields Modifier and Type Field Description private java.awt.ButtonabortButtonprivate java.awt.ButtoncalculateButtonprivate CalculatorImplcalculatorImplprivate java.lang.ThreadcalculatorThreadprivate java.awt.ButtonclearButtonprivate java.awt.Checkboxfixedprivate java.awt.Checkboxfloatingprivate java.awt.LabelformatLabelprivate java.awt.CheckboxGroupformatsprivate java.util.List<java.lang.String>historyprivate inthistoryPositionprivate java.awt.TextFieldinputFieldprivate java.awt.CheckboxinputPrecisionArbitraryprivate java.awt.TextFieldinputPrecisionFieldprivate java.awt.CheckboxinputPrecisionFixedprivate java.awt.CheckboxGroupinputPrecisionTypesprivate java.awt.LabelinputTypeLabelprivate java.io.PrintWriteroutprivate java.awt.TextAreaoutputAreaprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description CalculatorAWT()Construct a panel with graphical elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidabortCalculation()private voidinitGUI()private voidprocessInput()-
Methods inherited from class java.awt.Container
add, 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, getInsets, 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, validateTree
-
Methods inherited from class java.awt.Component
action, 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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
calculatorImpl
private CalculatorImpl calculatorImpl
-
history
private java.util.List<java.lang.String> history
-
historyPosition
private int historyPosition
-
outputArea
private java.awt.TextArea outputArea
-
formatLabel
private java.awt.Label formatLabel
-
formats
private java.awt.CheckboxGroup formats
-
floating
private java.awt.Checkbox floating
-
fixed
private java.awt.Checkbox fixed
-
inputTypeLabel
private java.awt.Label inputTypeLabel
-
inputPrecisionTypes
private java.awt.CheckboxGroup inputPrecisionTypes
-
inputPrecisionArbitrary
private java.awt.Checkbox inputPrecisionArbitrary
-
inputPrecisionFixed
private java.awt.Checkbox inputPrecisionFixed
-
inputPrecisionField
private java.awt.TextField inputPrecisionField
-
clearButton
private java.awt.Button clearButton
-
inputField
private java.awt.TextField inputField
-
calculateButton
private java.awt.Button calculateButton
-
abortButton
private java.awt.Button abortButton
-
out
private java.io.PrintWriter out
-
calculatorThread
private java.lang.Thread calculatorThread
-
-