Package net.sourceforge.uiq3.fx602p
Class Calculator_Frame
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Frame
-
- javax.swing.JFrame
-
- net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
-
- net.sourceforge.uiq3.fx602p.Calculator_Frame
-
- All Implemented Interfaces:
ClipboardOwner
,ImageObserver
,MenuContainer
,Serializable
,Accessible
,RootPaneContainer
,WindowConstants
,net.sourceforge.uiq3.IPropertyNotifier
,net.sourceforge.uiq3.ui.ICalculatorCanvas
,net.sourceforge.uiq3.ui.IFrame
public final class Calculator_Frame extends net.sourceforge.uiq3.calculator.Frame<Calculator_Canvas> implements ClipboardOwner, Serializable
- Author:
- martin
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sourceforge.uiq3.calculator.Frame
net.sourceforge.uiq3.calculator.Frame.Companion
-
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
-
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
-
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.Type
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private About_Dialog
aboutDialog
About Dialogprivate static ResourceBundle
Calculator_Bundle
(package private) Calculator_Canvas
Calculator_Canvas
(package private) JScrollPane
Calculator_ScrollPane
private Desktop_Calculator
Engine
Calculator to be displayed(package private) Error_Canvas
Error_Canvas
private static ResourceBundle
FX_602P_Bundle
Resource Bundle used for I18Nprivate Help_Dialog
helpDialog
Help Dialog(package private) JTabbedPane
Info_TabbedPane
(package private) JSeparator
jSeparator1
private static Logger
logger
class logger instance(package private) Memory_Canvas
Memory_Panel
(package private) JMenuBar
Menu
(package private) JMenu
Menu_Edit
(package private) JMenuItem
Menu_Edit_Copy
(package private) JMenu
Menu_File
(package private) JPopupMenu.Separator
Menu_File_1
(package private) JMenuItem
Menu_File_Open
(package private) JMenuItem
Menu_File_Preferences
(package private) JMenuItem
Menu_File_Quit
(package private) JMenu
Menu_Help
(package private) JPopupMenu.Separator
Menu_Help_1
(package private) JPopupMenu.Separator
Menu_Help_2
(package private) JMenuItem
Menu_Help_About
private JMenuItem
Menu_Help_Homepage
(package private) JMenuItem
Menu_Help_Index
private JMenuItem
Menu_Help_Manuals
(package private) JMenuItem
Menu_Help_SourceForge
(package private) JMenuItem
Menu_Help_YouTube
private net.sourceforge.uiq3.calculator.IMain
owner
system controllerprivate @Nullable Preferences_Dialog
preferencesDialog
Preferences Dialog(package private) net.sourceforge.uiq3.fp10.PrinterCanvas
Printer_Panel
(package private) Program_Canvas
Program_Panel
(package private) Register_Canvas
Register_Panel
private static long
serialVersionUID
(package private) JSplitPane
Split_Pane
(package private) Status_Canvas
Status_Panel
private static @NotNull String
TAG
class logger tag.-
Fields inherited from class net.sourceforge.uiq3.calculator.Frame
Companion, Extra_Height, Extra_Width
-
Fields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
-
-
Constructor Summary
Constructors Constructor Description Calculator_Frame()
Creates new form Calculator_FrameCalculator_Frame(net.sourceforge.uiq3.calculator.IMain owner)
Creates new form Calculator_Frame
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindCPUThread(@Nullable Thread CPU_Thread)
private void
calculateMinimumSize()
void
displayAboutBox()
Display about box.void
displayException(@NotNull Throwable exception)
void
displayHelpIndex()
Display about box.void
displayPreferencesBox()
display preferencesprivate void
formWindowClosing(WindowEvent evt)
Calculator_Canvas
getCalculatorCanvas()
Get Calculator Canvas - interface needed by calculator engine.boolean @NotNull []
getIndicators()
private void
initComponents()
This method is called from within the constructor to initialize the form.private void
initPost()
private void
initPre()
void
lostOwnership(Clipboard clipboard, Transferable contents)
Notifies this object that it is no longer the clipboard owner.private void
Menu_File_OpenActionPerformed(ActionEvent evt)
private void
Menu_File_PreferencesActionPerformed(ActionEvent evt)
private void
Menu_File_QuitActionPerformed(ActionEvent evt)
private void
Menu_Help_AboutActionPerformed(ActionEvent evt)
private void
Menu_Help_HomepageActionPerformed(ActionEvent evt)
private void
Menu_Help_IndexActionPerformed(ActionEvent evt)
private void
Menu_Help_ManualsActionPerformed(ActionEvent evt)
private void
Menu_Help_SourceForgeActionPerformed(ActionEvent evt)
private void
Menu_Help_YouTubeActionPerformed(ActionEvent evt)
private void
propertyChange(PropertyChangeEvent evt)
void
restoreStatus()
Save Window Statusvoid
saveStatus()
Save Window Statusvoid
setCalculator(Desktop_Calculator Engine)
Set the calculator engine used - needed for status related display.void
setDisplayText(int Row, short @NotNull [] Text)
void
setIndicators(boolean @NotNull [] Indicators)
void
setJavaText(@NotNull String Text)
void
setOnOff(boolean on)
void
setSelectedComponent(Component c)
Sets the selected component for this tabbedpane.void
toggleHelp()
@NotNull String
toString()
-
Methods inherited from class net.sourceforge.uiq3.calculator.Frame
getBorder, getDisplayText, getJavaText, getJavaText, getPressedKey, getReadKey, isReadKeyAvailable, setPressedKey, setReadKey
-
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, 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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.uiq3.IPropertyNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
logger
@NotNull private static final Logger logger
class logger instance
-
TAG
@NotNull private static final @NotNull String TAG
class logger tag.
-
FX_602P_Bundle
private static final ResourceBundle FX_602P_Bundle
Resource Bundle used for I18N
-
Calculator_Bundle
private static final ResourceBundle Calculator_Bundle
-
aboutDialog
@Nullable private About_Dialog aboutDialog
About Dialog
-
helpDialog
@Nullable private Help_Dialog helpDialog
Help Dialog
-
preferencesDialog
@Nullable private @Nullable Preferences_Dialog preferencesDialog
Preferences Dialog
-
Engine
private Desktop_Calculator Engine
Calculator to be displayed
-
owner
@Nullable private final net.sourceforge.uiq3.calculator.IMain owner
system controller
-
Calculator_Canvas
final Calculator_Canvas Calculator_Canvas
-
Calculator_ScrollPane
final JScrollPane Calculator_ScrollPane
-
Error_Canvas
final Error_Canvas Error_Canvas
-
Info_TabbedPane
final JTabbedPane Info_TabbedPane
-
Memory_Panel
final Memory_Canvas Memory_Panel
-
Menu
final JMenuBar Menu
-
Menu_Edit
final JMenu Menu_Edit
-
Menu_Edit_Copy
final JMenuItem Menu_Edit_Copy
-
Menu_File
final JMenu Menu_File
-
Menu_File_1
final JPopupMenu.Separator Menu_File_1
-
Menu_File_Open
final JMenuItem Menu_File_Open
-
Menu_File_Preferences
final JMenuItem Menu_File_Preferences
-
Menu_File_Quit
final JMenuItem Menu_File_Quit
-
Menu_Help
final JMenu Menu_Help
-
Menu_Help_1
final JPopupMenu.Separator Menu_Help_1
-
Menu_Help_2
final JPopupMenu.Separator Menu_Help_2
-
Menu_Help_About
final JMenuItem Menu_Help_About
-
Menu_Help_Homepage
private final JMenuItem Menu_Help_Homepage
-
Menu_Help_Index
final JMenuItem Menu_Help_Index
-
Menu_Help_Manuals
private final JMenuItem Menu_Help_Manuals
-
Menu_Help_SourceForge
final JMenuItem Menu_Help_SourceForge
-
Menu_Help_YouTube
final JMenuItem Menu_Help_YouTube
-
Printer_Panel
final net.sourceforge.uiq3.fp10.PrinterCanvas Printer_Panel
-
Program_Panel
final Program_Canvas Program_Panel
-
Register_Panel
final Register_Canvas Register_Panel
-
Split_Pane
final JSplitPane Split_Pane
-
Status_Panel
final Status_Canvas Status_Panel
-
jSeparator1
final JSeparator jSeparator1
-
-
Method Detail
-
initPre
private void initPre()
-
initPost
private void initPost()
-
calculateMinimumSize
private void calculateMinimumSize()
-
propertyChange
private void propertyChange(PropertyChangeEvent evt)
-
saveStatus
public void saveStatus()
Save Window Status
-
restoreStatus
public void restoreStatus()
Save Window Status
-
displayAboutBox
public void displayAboutBox()
Display about box.
- Specified by:
displayAboutBox
in interfacenet.sourceforge.uiq3.ui.IFrame
-
displayHelpIndex
public void displayHelpIndex()
Display about box.
- Specified by:
displayHelpIndex
in interfacenet.sourceforge.uiq3.ui.IFrame
-
displayPreferencesBox
public void displayPreferencesBox()
display preferences
- Specified by:
displayPreferencesBox
in interfacenet.sourceforge.uiq3.ui.IFrame
-
setCalculator
public void setCalculator(Desktop_Calculator Engine)
Set the calculator engine used - needed for status related display.- Parameters:
Engine
- calculator engine
-
lostOwnership
@Contract(pure=true) public void lostOwnership(Clipboard clipboard, Transferable contents)
Notifies this object that it is no longer the clipboard owner. This method will be called when another application or another object within this application asserts ownership of the clipboard.- Specified by:
lostOwnership
in interfaceClipboardOwner
- Parameters:
clipboard
- the clipboard that is no longer ownedcontents
- the contents which this owner had placed on the clipboard- See Also:
ClipboardOwner.lostOwnership(java.awt.datatransfer.Clipboard, java.awt.datatransfer.Transferable)
-
getCalculatorCanvas
@Contract(pure=true) public Calculator_Canvas getCalculatorCanvas()
Get Calculator Canvas - interface needed by calculator engine.- Specified by:
getCalculatorCanvas
in classnet.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
- Returns:
- calculator canvas
-
bindCPUThread
public void bindCPUThread(@Nullable @Nullable Thread CPU_Thread)
- Specified by:
bindCPUThread
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
-
displayException
public void displayException(@NotNull @NotNull Throwable exception)
- Specified by:
displayException
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
-
setIndicators
public void setIndicators(boolean @NotNull [] Indicators)
- Specified by:
setIndicators
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
-
getIndicators
public boolean @NotNull [] getIndicators()
- Specified by:
getIndicators
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
-
setOnOff
public void setOnOff(boolean on)
- Specified by:
setOnOff
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
-
setDisplayText
public void setDisplayText(int Row, short @NotNull [] Text)
- Specified by:
setDisplayText
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
-
setJavaText
public void setJavaText(@NotNull @NotNull String Text)
- Specified by:
setJavaText
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
- Overrides:
setJavaText
in classnet.sourceforge.uiq3.calculator.Frame<Calculator_Canvas>
-
toggleHelp
public void toggleHelp()
- Specified by:
toggleHelp
in interfacenet.sourceforge.uiq3.ui.ICalculatorCanvas
-
setSelectedComponent
@BeanProperty(bound=false, preferred=true, description="The tabbedpane\'s selected component.") public void setSelectedComponent(Component c)
Sets the selected component for this tabbedpane. This will automatically set theselectedIndex
to the index corresponding to the specified component.- Specified by:
setSelectedComponent
in interfacenet.sourceforge.uiq3.ui.IFrame
- Parameters:
c
- the selectedComponent
for thisTabbedPane
- Throws:
IllegalArgumentException
- if component not found in tabbed pane
-
initComponents
private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
-
formWindowClosing
private void formWindowClosing(WindowEvent evt)
-
Menu_File_PreferencesActionPerformed
private void Menu_File_PreferencesActionPerformed(ActionEvent evt)
-
Menu_Help_AboutActionPerformed
private void Menu_Help_AboutActionPerformed(ActionEvent evt)
-
Menu_File_QuitActionPerformed
private void Menu_File_QuitActionPerformed(ActionEvent evt)
-
Menu_File_OpenActionPerformed
private void Menu_File_OpenActionPerformed(ActionEvent evt)
-
Menu_Help_HomepageActionPerformed
private void Menu_Help_HomepageActionPerformed(ActionEvent evt)
-
Menu_Help_ManualsActionPerformed
private void Menu_Help_ManualsActionPerformed(ActionEvent evt)
-
Menu_Help_YouTubeActionPerformed
private void Menu_Help_YouTubeActionPerformed(ActionEvent evt)
-
Menu_Help_SourceForgeActionPerformed
private void Menu_Help_SourceForgeActionPerformed(ActionEvent evt)
-
Menu_Help_IndexActionPerformed
private void Menu_Help_IndexActionPerformed(ActionEvent evt)
-
-