Package net.sourceforge.uiq3.fx602p
Class Calculator_Canvas
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- net.sourceforge.uiq3.calculator.Canvas
-
- net.sourceforge.uiq3.fx602p.Calculator_Canvas
-
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
,net.sourceforge.uiq3.IPropertyNotifier
,net.sourceforge.uiq3.ui.ICalculatorCanvas
public final class Calculator_Canvas extends net.sourceforge.uiq3.calculator.Canvas
- Author:
- martin
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
Calculator_Canvas.Button_Listener
Listener to listen for button actuion events.-
Nested classes/interfaces inherited from class net.sourceforge.uiq3.calculator.Canvas
net.sourceforge.uiq3.calculator.Canvas.Companion
-
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-
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 short[][]
Alpha_Text
Text to be displayed on the calculator display.(package private) JPanel
Bottom_Button_Panel
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_AC
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_BST
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_C
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_cos
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_degree
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Divide
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Dot
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_eng
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Equal
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_EXE
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_EXP
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_FST
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_GOTO
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_GSB
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_HLT
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_hyp
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_INV
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_LBL
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_ln
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_log
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_M_Minus
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_M_Plus
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Min
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Minus
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_MODE
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_MR
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Multiply
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_0
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_1
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_2
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_3
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_4
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_5
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_6
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_7
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_8
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_5
Button_Num_9
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_P_Close
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_P_Open
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_P0
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_P1
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_P2
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_P3
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_P4
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Plus
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Plus_Minus
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_sin
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_tan
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_X_M
(package private) net.sourceforge.uiq3.fx602p.Calculator_Button_3
Button_Xd
(package private) JLabel
Character_0_0_Image
(package private) JLabel
Character_0_1_Image
(package private) JLabel
Character_0_10_Image
(package private) JLabel
Character_0_11_Image
(package private) JLabel
Character_0_12_Image
(package private) JLabel
Character_0_13_Image
(package private) JLabel
Character_0_2_Image
(package private) JLabel
Character_0_3_Image
(package private) JLabel
Character_0_4_Image
(package private) JLabel
Character_0_5_Image
(package private) JLabel
Character_0_6_Image
(package private) JLabel
Character_0_7_Image
(package private) JLabel
Character_0_8_Image
(package private) JLabel
Character_0_9_Image
(package private) JPanel
Character_Panel
(package private) JPanel
Display_Panel
private static ResourceBundle
FX_602P_Bundle
(package private) JLabel
Indicator_0_Image
(package private) JLabel
Indicator_1_Image
(package private) JLabel
Indicator_10_Image
(package private) JLabel
Indicator_2_Image
(package private) JLabel
Indicator_3_Image
(package private) JLabel
Indicator_4_Image
(package private) JLabel
Indicator_5_Image
(package private) JLabel
Indicator_6_Image
(package private) JLabel
Indicator_7_Image
(package private) JLabel
Indicator_8_Image
(package private) JLabel
Indicator_9_Image
private boolean[]
Indicators
Indicators: Inv Hyp K Hlt Run Wrt Pcl Deg Rad Gra Keyboard_Alphaprivate static Logger
logger
class logger instanceprivate static double
Maximum_Size_Scale
(package private) JPanel
Middle_Button_Panel
private static Color
Off_Colour
The Indicator images for inactivel indicators.private static Color
On_Colour
The Indicator images for active indicators.private net.sourceforge.uiq3.ui.IFrame
owner
private static double
SCALE_HEIGHT
private static double
SCALE_WIDTH
private static long
serialVersionUID
private static String
TAG
class logger tag.private Calculator_Canvas.Button_Listener
The_Button_Listener
Listener to listen for button action events.(package private) JPanel
Top_Button_Panel
-
Fields inherited from class net.sourceforge.uiq3.calculator.Canvas
Companion, Extra_Height, Extra_Width, Font, keyboard, Keys_Count
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, 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
-
-
Constructor Summary
Constructors Constructor Description Calculator_Canvas()
Creates new form Calculator_CanvasCalculator_Canvas(net.sourceforge.uiq3.ui.IFrame owner)
Creates new form Calculator_Canvas
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
calculateMinimumSize()
void
displayException(@NotNull Throwable Exception)
display additional information on the error. this is device and setup dependent.private Icon
getCharacter(short Alpha_Code)
get the characters image to display.short @NotNull []
getDisplayText(int Row)
Get text currently displayed (as one java string).boolean @NotNull []
getIndicators()
@NotNull String
getJavaText(int Row)
private void
initComponents()
private void
initPost()
I had used lazy loading before but frequently there were load interrupted errors with images only loaded partially.private void
initPre()
private void
propertyChange(PropertyChangeEvent evt)
void
setDisplayText(int Row, short @NotNull [] Text)
Set text to be displayed (calculator alpha codes).private void
setIndicator(JLabel Indicator_Panel, int Indicator_Nr, boolean Active)
set the indicator image. if none is to set then set at least the size.private void
setIndicatorFonts()
void
setIndicators(boolean @NotNull [] Indicators)
Set the indicators Inv Hyp K Hlt Run Wrt Pcl Deg Rad Gra Keyboard_Alphavoid
setOnOff(boolean on)
set the calculators on of status.@NotNull String
toString()
-
Methods inherited from class net.sourceforge.uiq3.calculator.Canvas
addPropertyChangeListener, addPropertyChangeListener, bindCPUThread, buttonReleased, buttonReleased, getJavaText, getKey, getKeyboard, getPressedKey, getReadKey, getUtf16_Text, isReadKeyAvailable, keyReleased, removePropertyChangeListener, removePropertyChangeListener, setJavaText, setKeyboard, setPressedKey, setReadKey, setUtf16_Text, toggleHelp
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
FX_602P_Bundle
private static final ResourceBundle FX_602P_Bundle
-
On_Colour
private static final Color On_Colour
The Indicator images for active indicators.
-
Off_Colour
private static final Color Off_Colour
The Indicator images for inactivel indicators. Blank images are needed so the widget sized are correctly calculated. The
set*Size
did not do the trick
-
Maximum_Size_Scale
private static final double Maximum_Size_Scale
- See Also:
- Constant Field Values
-
SCALE_HEIGHT
private static final double SCALE_HEIGHT
- See Also:
- Constant Field Values
-
SCALE_WIDTH
private static final double SCALE_WIDTH
- See Also:
- Constant Field Values
-
TAG
private static final String TAG
class logger tag.
-
logger
private static final Logger logger
class logger instance
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
owner
@Nullable private final net.sourceforge.uiq3.ui.IFrame owner
-
Alpha_Text
private final short[][] Alpha_Text
Text to be displayed on the calculator display.
-
Indicators
private final boolean[] Indicators
Indicators:- Inv
- Hyp
- K
- Hlt
- Run
- Wrt
- Pcl
- Deg
- Rad
- Gra
- Keyboard_Alpha
- See Also:
ICalculatorCanvas.setIndicators(boolean[])
-
The_Button_Listener
private final Calculator_Canvas.Button_Listener The_Button_Listener
Listener to listen for button action events.
-
Bottom_Button_Panel
JPanel Bottom_Button_Panel
-
Button_AC
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_AC
-
Button_BST
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_BST
-
Button_C
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_C
-
Button_Divide
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Divide
-
Button_Dot
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Dot
-
Button_EXE
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_EXE
-
Button_EXP
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_EXP
-
Button_Equal
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Equal
-
Button_FST
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_FST
-
Button_GOTO
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_GOTO
-
Button_GSB
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_GSB
-
Button_HLT
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_HLT
-
Button_INV
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_INV
-
Button_LBL
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_LBL
-
Button_MODE
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_MODE
-
Button_MR
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_MR
-
Button_M_Minus
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_M_Minus
-
Button_M_Plus
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_M_Plus
-
Button_Min
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Min
-
Button_Minus
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Minus
-
Button_Multiply
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Multiply
-
Button_Num_0
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_0
-
Button_Num_1
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_1
-
Button_Num_2
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_2
-
Button_Num_3
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_3
-
Button_Num_4
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_4
-
Button_Num_5
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_5
-
Button_Num_6
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_6
-
Button_Num_7
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_7
-
Button_Num_8
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_8
-
Button_Num_9
net.sourceforge.uiq3.fx602p.Calculator_Button_5 Button_Num_9
-
Button_P0
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_P0
-
Button_P1
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_P1
-
Button_P2
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_P2
-
Button_P3
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_P3
-
Button_P4
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_P4
-
Button_P_Close
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_P_Close
-
Button_P_Open
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_P_Open
-
Button_Plus
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Plus
-
Button_Plus_Minus
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Plus_Minus
-
Button_X_M
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_X_M
-
Button_Xd
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_Xd
-
Button_cos
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_cos
-
Button_degree
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_degree
-
Button_eng
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_eng
-
Button_hyp
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_hyp
-
Button_ln
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_ln
-
Button_log
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_log
-
Button_sin
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_sin
-
Button_tan
net.sourceforge.uiq3.fx602p.Calculator_Button_3 Button_tan
-
Character_0_0_Image
JLabel Character_0_0_Image
-
Character_0_10_Image
JLabel Character_0_10_Image
-
Character_0_11_Image
JLabel Character_0_11_Image
-
Character_0_12_Image
JLabel Character_0_12_Image
-
Character_0_13_Image
JLabel Character_0_13_Image
-
Character_0_1_Image
JLabel Character_0_1_Image
-
Character_0_2_Image
JLabel Character_0_2_Image
-
Character_0_3_Image
JLabel Character_0_3_Image
-
Character_0_4_Image
JLabel Character_0_4_Image
-
Character_0_5_Image
JLabel Character_0_5_Image
-
Character_0_6_Image
JLabel Character_0_6_Image
-
Character_0_7_Image
JLabel Character_0_7_Image
-
Character_0_8_Image
JLabel Character_0_8_Image
-
Character_0_9_Image
JLabel Character_0_9_Image
-
Character_Panel
JPanel Character_Panel
-
Display_Panel
JPanel Display_Panel
-
Indicator_0_Image
JLabel Indicator_0_Image
-
Indicator_10_Image
JLabel Indicator_10_Image
-
Indicator_1_Image
JLabel Indicator_1_Image
-
Indicator_2_Image
JLabel Indicator_2_Image
-
Indicator_3_Image
JLabel Indicator_3_Image
-
Indicator_4_Image
JLabel Indicator_4_Image
-
Indicator_5_Image
JLabel Indicator_5_Image
-
Indicator_6_Image
JLabel Indicator_6_Image
-
Indicator_7_Image
JLabel Indicator_7_Image
-
Indicator_8_Image
JLabel Indicator_8_Image
-
Indicator_9_Image
JLabel Indicator_9_Image
-
Middle_Button_Panel
JPanel Middle_Button_Panel
-
Top_Button_Panel
JPanel Top_Button_Panel
-
-
Method Detail
-
initPre
private void initPre()
-
initPost
private void initPost()
I had used lazy loading before but frequently there were load interrupted errors with images only loaded partially.
-
calculateMinimumSize
private void calculateMinimumSize()
-
propertyChange
private void propertyChange(PropertyChangeEvent evt)
-
setIndicatorFonts
private void setIndicatorFonts()
-
displayException
public void displayException(@NotNull @NotNull Throwable Exception)
display additional information on the error. this is device and setup dependent.
- Parameters:
Exception
- Exception to display
-
getCharacter
private Icon getCharacter(short Alpha_Code)
get the characters image to display.
-
setIndicator
private void setIndicator(JLabel Indicator_Panel, int Indicator_Nr, boolean Active)
set the indicator image. if none is to set then set at least the size.
-
setIndicators
public void setIndicators(boolean @NotNull [] Indicators)
Set the indicators- Inv
- Hyp
- K
- Hlt
- Run
- Wrt
- Pcl
- Deg
- Rad
- Gra
- Keyboard_Alpha
- Parameters:
Indicators
- indicators to be shown- See Also:
ICalculatorCanvas.setIndicators(boolean[])
-
getIndicators
@TestOnly public boolean @NotNull [] getIndicators()
-
setOnOff
public void setOnOff(boolean on)
set the calculators on of status.
- Parameters:
on
- calculator is switched on
-
setDisplayText
public void setDisplayText(int Row, short @NotNull [] Text)
Set text to be displayed (calculator alpha codes).- Parameters:
Row
- row to displayText
- to be displayed- See Also:
ICalculatorCanvas.setDisplayText(int, short[])
-
initComponents
private void initComponents()
-
getDisplayText
@TestOnly public short @NotNull [] getDisplayText(int Row)
Get text currently displayed (as one java string).- Parameters:
Row
- Display row to set- Returns:
- text currently displayed
-
getJavaText
@TestOnly @NotNull public @NotNull String getJavaText(int Row)
-
toString
@TestOnly @NotNull public @NotNull String toString()
- Overrides:
toString
in classnet.sourceforge.uiq3.calculator.Canvas
-
-