Package net.sourceforge.uiq3.fx602p
Class Key_MODE_ALPHA
- java.lang.Object
-
- net.sourceforge.uiq3.fx602p.Owned_Operation
-
- net.sourceforge.uiq3.fx602p.Keyboard
-
- net.sourceforge.uiq3.fx602p.Key_MODE_ALPHA
-
- All Implemented Interfaces:
IClear,IOperation,IOwned_Operation
final class Key_MODE_ALPHA extends Keyboard
The Mode key was clicked- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private intDot_Valuecurrent dot valueprivate static LoggerLoggerClass logger instance.private short @NotNull []Mode_Dot_ResultText to be displayed when Mode. was selected.private short[]Mode_Dot_TextText to be displayed when Mode. was selected.private short[]Mode_TextText to be displayed when Mode was selected.private intStatusWe start with status none.private static intStatus_Dot_1dot mode operations selected first char expectedprivate static intStatus_Dot_2dot mode operations selected and second char expectedprivate static StringStatus_ErrorError Message displayed on using the wrong alpha mode!private static intStatus_Modenormal mode operations selectedprivate static intStatus_Noneno mode selected yetprivate static StringTAGClass logger tag.-
Fields inherited from class net.sourceforge.uiq3.fx602p.Keyboard
AC, Alpha_Text, BST, Button_Memory_F, Button_Memory_n, Button_Memory_sn, Button_Memory_sn1, Button_Memory_SX, Button_Memory_SX2, Button_Memory_xmean, Button_Mode_DEG, Button_Mode_GRA, Button_Mode_PCL, Button_Mode_RAD, Button_Mode_RUN, Button_Mode_WRT, Button_RND_FIX, C, cos, degree, Divide, Dot, eng, Equal, EXE, EXP, FST, GOTO, GSB, HLT, hyp, INV, LBL, ln, log, M_Minus, M_Plus, Min, Minus, MODE, MR, Multiply, No_Text, Normal_Text, Num_0, Num_1, Num_2, Num_3, Num_4, Num_5, Num_6, Num_7, Num_8, Num_9, P_Close, P_Open, P0, P1, P2, P3, P4, Plus, Plus_Minus, Shift_Alpha_Text, Shift_Text, sin, tan, X_M, Xd
-
Fields inherited from class net.sourceforge.uiq3.fx602p.Owned_Operation
Owner
-
-
Constructor Summary
Constructors Constructor Description Key_MODE_ALPHA(Calculator Owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidClear(boolean All_Clear)Clean Key state.voidExecute(short Key_Code)Execute virtual CPU command or key strokeprivate voidExecute_Alpha_Off()End Alpha entryprivate voidExecute_Alpha_On()Begin Alpha entryprivate voidExecute_Dot_1(short Key_Code)first character after MODE•private voidExecute_Dot_2(short Key_Code)second character after MODE•private voidExecute_Mode(short Key_Code, int keyboard_Mode)first character after MODEprivate voidExecute_Mode_Clear()private voidExecute_Mode_DefM(int keyboard_Mode)private voidExecute_Mode_Deg(int keyboard_Mode)private voidExecute_Mode_Gra(int keyboard_Mode)private voidExecute_Mode_Rad(int keyboard_Mode)private voidExecute_Mode_Run()private voidExecute_Mode_Write()-
Methods inherited from class net.sourceforge.uiq3.fx602p.Owned_Operation
µReset, toString
-
-
-
-
Field Detail
-
Logger
private static final Logger Logger
Class logger instance.
-
Status_Dot_1
private static final int Status_Dot_1
dot mode operations selected first char expected- See Also:
- Constant Field Values
-
Status_Dot_2
private static final int Status_Dot_2
dot mode operations selected and second char expected- See Also:
- Constant Field Values
-
Status_Error
private static final String Status_Error
Error Message displayed on using the wrong alpha mode!- See Also:
- Constant Field Values
-
Status_Mode
private static final int Status_Mode
normal mode operations selected- See Also:
- Constant Field Values
-
Status_None
private static final int Status_None
no mode selected yet- See Also:
- Constant Field Values
-
TAG
private static final String TAG
Class logger tag.
-
Mode_Dot_Result
private final short @NotNull [] Mode_Dot_Result
Text to be displayed when Mode. was selected.
-
Mode_Dot_Text
private final short[] Mode_Dot_Text
Text to be displayed when Mode. was selected.
-
Mode_Text
private final short[] Mode_Text
Text to be displayed when Mode was selected.
-
Dot_Value
private int Dot_Value
current dot value
-
Status
private int Status
We start with status none.
-
-
Constructor Detail
-
Key_MODE_ALPHA
Key_MODE_ALPHA(Calculator Owner)
- Parameters:
Owner- Calculator owning the key
-
-
Method Detail
-
Clear
public void Clear(boolean All_Clear)
Clean Key state.- Specified by:
Clearin interfaceIClear- Overrides:
Clearin classKeyboard- Parameters:
All_Clear- true when AC (all clear) is requested.- See Also:
IClear.Clear(boolean)
-
Execute
public void Execute(short Key_Code) throws Op_Error, M_ErrorDescription copied from interface:IOperationExecute virtual CPU command or key stroke
- Parameters:
Key_Code- Virtual CPU Operation to be executed- Throws:
M_Error- memory does not existOp_Error- See Also:
IOperation.Execute(short)
-
Execute_Dot_1
private void Execute_Dot_1(short Key_Code)
first character after MODE•
- Parameters:
Key_Code- the key code
-
Execute_Dot_2
private void Execute_Dot_2(short Key_Code)
second character after MODE•
- Parameters:
Key_Code- the key code
-
Execute_Mode
private void Execute_Mode(short Key_Code, int keyboard_Mode) throws M_Errorfirst character after MODE
- Parameters:
Key_Code- the key code- Throws:
M_Error
-
Execute_Mode_Clear
private void Execute_Mode_Clear()
-
Execute_Mode_DefM
private void Execute_Mode_DefM(int keyboard_Mode)
-
Execute_Mode_Run
private void Execute_Mode_Run()
-
Execute_Mode_Write
private void Execute_Mode_Write()
-
-