Class Calculator_Canvas

    • Field Detail

      • logger

        @NotNull
        private static final Logger logger

        class logger instance

      • TAG

        @NotNull
        private static final @NotNull String TAG

        class logger tag.

      • owner

        @Nullable
        private final net.sourceforge.uiq3.ui.IFrame owner
      • Engine

        @Nullable
        private @Nullable net.sourceforge.uiq3.hp45.Desktop_Calculator Engine
        Calculator to be displayed
      • Bottom_Button_Panel

        JPanel Bottom_Button_Panel
      • Button_0

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_0
      • Button_1

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_1
      • Button_1x

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_1x
      • Button_2

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_2
      • Button_3

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_3
      • Button_4

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_4
      • Button_5

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_5
      • Button_6

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_6
      • Button_7

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_7
      • Button_8

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_8
      • Button_9

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_9
      • Button_CHS

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_CHS
      • Button_CLx

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_CLx
      • Button_Div

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_Div
      • Button_Dot

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_Dot
      • Button_EEX

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_EEX
      • Button_ENTER

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_ENTER
      • Button_FIX

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_FIX
      • Button_GOLD

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_GOLD
      • Button_Minus

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_Minus
      • Button_Mult

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_Mult
      • Button_Plus

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_Plus
      • Button_RCL

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_RCL
      • Button_Rdown

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_Rdown
      • Button_STO

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_STO
      • Button_cos

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_cos
      • Button_ex

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_ex
      • Button_ln

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_ln
      • Button_percent

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_percent
      • Button_sin

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_sin
      • Button_tan

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_tan
      • Button_toP

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_toP
      • Button_x2

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_x2
      • Button_xy

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_xy
      • Button_Σplus

        net.sourceforge.uiq3.hp45.Calculator_Button_2 Button_Σplus
      • Display_Label

        JLabel Display_Label
      • Display_Panel

        JPanel Display_Panel
      • Top_Button_Panel

        JPanel Top_Button_Panel
    • Constructor Detail

      • Calculator_Canvas

        public Calculator_Canvas()
        Creates new form Calculator_Canvas
      • Calculator_Canvas

        public Calculator_Canvas​(@Nullable
                                 net.sourceforge.uiq3.ui.IFrame owner)
        Creates new form Calculator_Canvas
    • Method Detail

      • getMonoFont

        private static Font getMonoFont()
      • getDisplayBackgroundColor

        private Color getDisplayBackgroundColor()
      • getDisplayTextColor

        private Color getDisplayTextColor()
      • getBackgroundDarkColor

        private Color getBackgroundDarkColor()
      • initPre

        private void initPre()
      • initPost

        private void initPost()
      • calculateMinimumSize

        private void calculateMinimumSize()
      • setCalculator

        public void setCalculator​(net.sourceforge.uiq3.hp45.Desktop_Calculator Engine)
        Set the calculator engine used - needed for status related display.
        Parameters:
        Engine - calculator engine
      • 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
      • setIndicators

        public void setIndicators​(boolean @NotNull [] Indicators)

        Set the indicators (Shift, Alpha, Deg, Grad, Gra, etc. pp.)

        Parameters:
        Indicators - indicators to be shown
      • getIndicators

        @TestOnly
        public boolean @NotNull [] getIndicators()
      • setDisplayText

        public void setDisplayText​(int Row,
                                   short @NotNull [] Text)

        Set text to be displayed (calculator alpha codes). Null implementation for calculators without alpha display.

        Parameters:
        Row - Display row to set
        Text - Text to display
      • setJavaText

        public void setJavaText​(@NotNull
                                @NotNull String Text)
        Set text to be displayed.
        Specified by:
        setJavaText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        setJavaText in class net.sourceforge.uiq3.calculator.Canvas
        Parameters:
        Text - to be displayed
      • 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

        @NotNull
        @TestOnly
        public @NotNull String getJavaText​(int Row)
        Get text currently displayed (as one java string).
      • getJavaText

        @NotNull
        @TestOnly
        public @NotNull String getJavaText()
        Get text currently displayed (as one java string).
        Specified by:
        getJavaText in interface net.sourceforge.uiq3.ui.ICalculatorCanvas
        Overrides:
        getJavaText in class net.sourceforge.uiq3.calculator.Canvas
      • setOnOff

        public void setOnOff​(boolean on)

        set the calculators on of status.

        Parameters:
        on - calculator is switched on
      • initComponents

        private void initComponents()
      • toString

        @TestOnly
        @NotNull
        public @NotNull String toString()
        Overrides:
        toString in class net.sourceforge.uiq3.calculator.Canvas