Class Key_M

    • Field Detail

      • Logger

        private static final Logger Logger

        Class logger instance.

      • Status_Digit_1

        private static final int Status_Digit_1
        memory operations selected first char expected
        See Also:
        Constant Field Values
      • Status_Digit_2

        private static final int Status_Digit_2
        memory operations selected and second char expected
        See Also:
        Constant Field Values
      • TAG

        private static final String TAG

        Class logger tag.

      • Memory_Text

        private final short[] Memory_Text
        Text to be displayed when Mode. was selected.
      • Text

        private final short Text
        The character which make the difference between Min, MR, M+ M-
      • Backup_A_Active

        private net.sourceforge.uiq3.calculator.ICalculator.AlphaRegisterType Backup_A_Active
        Active A register.
        A_Numeric
        Alpha register to enter and display numeric results.
        A_Text
        Alpha register to enter and display textual results.
        A_Message
        Alpha register to display messages.
        A_Key
        Alpha register to merge key operations.
      • Backup_Display_Mode

        private net.sourceforge.uiq3.calculator.ICalculator.DisplayType Backup_Display_Mode
        Current display mode
        Display_Alpha
        Displays the content of the Alpha register.
        Display_L
        Displays the content of the L0 aka X register.
        Display_Formated
        Displays the content of the L0 aka X register inside an alpha
      • Memory_Register

        private int Memory_Register
        current dot value
      • Status

        private int Status
        We start with status none.
    • Constructor Detail

      • Key_M

        Key_M​(Calculator Owner,
              short Normal,
              short Text,
              short Inv_Normal,
              short Alpha,
              short Inv_Alpha)
        Parameters:
        Owner - Calculator owning the key
        Normal - Normal operations
        Inv_Normal - Inverse operation
        Alpha - Normal_Alpha characters
        Inv_Alpha - Invers Normal_Alpha characters
        Text - indicating the memory operation
    • Method Detail

      • Clear

        public void Clear​(boolean All_Clear)
        Clean Key state.
        Specified by:
        Clear in interface IClear
        Overrides:
        Clear in class Keyboard
        Parameters:
        All_Clear - true when AC (all clear) is requested.
        See Also:
        IClear.Clear(boolean)
      • Execute_Digit_1

        private void Execute_Digit_1​(short Key_Code)
                              throws M_Error
        Throws:
        M_Error
      • Execute_Digit_2

        private void Execute_Digit_2​(short Key_Code)
                              throws M_Error
        Throws:
        M_Error
      • Execute_None

        private void Execute_None()
      • Store_Operation

        private void Store_Operation​(boolean F_Register)
                              throws M_Error
        Parameters:
        F_Register - M or MF register?
        Throws:
        M_Error - Calculator memory exhausted
      • toString

        @NotNull
        @TestOnly
        public @NotNull String toString()
        Operation as java string
        Overrides:
        toString in class Key_Simple
        Returns:
        String respresentation