Class Key_Simple_BaseN

  • All Implemented Interfaces:
    net.sourceforge.uiq3.calculator.IClear, net.sourceforge.uiq3.calculator.IOperation, net.sourceforge.uiq3.calculator.IOwned_Operation
    Direct Known Subclasses:
    Key_Hyp_C, Key_Simple_Hyp

    class Key_Simple_BaseN
    extends Key_Simple
    A simple key with hyperbol was clicked. A simple key is a key which can be directly mapped to four operations and two alpha characters.
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • TAG

        private static final String TAG

        class logger tag.

      • logger

        private static final Logger logger

        class logger instance

      • BaseN

        private final short BaseN
        Hyperbol operation
      • Shift_BaseN

        private final short Shift_BaseN
        Invers Hyperbol operation
    • Constructor Detail

      • Key_Simple_BaseN

        Key_Simple_BaseN​(Calculator Owner,
                         short Normal,
                         short Shift,
                         short BaseN,
                         short Shift_BaseN,
                         short Normal_Alpha,
                         short Inv_Alpha)
        Create Key and attach to owner calculator.
        Parameters:
        Owner - Calculator owning the key
        Normal - Normal operations
        Shift - Inverse operation
        BaseN - BaseN operations
        Shift_BaseN - Shifted BaseN operation
        Normal_Alpha - Normal_Alpha characters
        Inv_Alpha - Inverse Normal_Alpha characters
    • Method Detail

      • Execute

        public void Execute​(short Key_Code)
                     throws net.sourceforge.uiq3.calculator.Error
        Specified by:
        Execute in interface net.sourceforge.uiq3.calculator.IOperation
        Overrides:
        Execute in class Key_Simple
        Throws:
        Error - some calculator error
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)
      • toString

        @NotNull
        public @NotNull String toString()
        Description copied from class: Owned_Operation
        Operation as java string
        Overrides:
        toString in class Key_Simple
        Returns:
        String representation