Package net.sourceforge.uiq3.fx602p
Class Key_C
- java.lang.Object
-
- net.sourceforge.uiq3.fx602p.Owned_Operation
-
- net.sourceforge.uiq3.fx602p.Keyboard
-
- net.sourceforge.uiq3.fx602p.Key_C
-
- All Implemented Interfaces:
IClear
,IOperation
,IOwned_Operation
final class Key_C extends Keyboard
The Clear key was clicked- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private static Logger
Logger
Class logger instance.private static String
Mode_Error
Error Message displayed on using the wrong alpha mode!private static short[]
P_Text
Text to be displayed when Mode was selected.private int
Status
We start with status none.private static int
Status_None
no mode selected yetprivate static int
Status_Prog
wait for program keyprivate static String
TAG
Class 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_C(Calculator Owner)
Create Key and attach to owner calculator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Clear(boolean All_Clear)
Clean Key state.void
Execute(short Key_Code)
Execute virtual CPU command or key strokeprivate void
Execute_None(int Program_Store)
private void
Execute_Prog(short Key_Code, int program_Store)
private void
Remove_Step(int Step)
remove step@NotNull String
toString()
-
Methods inherited from class net.sourceforge.uiq3.fx602p.Owned_Operation
µReset
-
-
-
-
Field Detail
-
Logger
private static final Logger Logger
Class logger instance.
-
Mode_Error
private static final String Mode_Error
Error Message displayed on using the wrong alpha mode!- See Also:
- Constant Field Values
-
P_Text
private static final short[] P_Text
Text to be displayed when Mode was selected.
-
Status_None
private static final int Status_None
no mode selected yet- See Also:
- Constant Field Values
-
Status_Prog
private static final int Status_Prog
wait for program key- See Also:
- Constant Field Values
-
TAG
private static final String TAG
Class logger tag.
-
Status
private int Status
We start with status none.
-
-
Constructor Detail
-
Key_C
Key_C(Calculator Owner)
Create Key and attach to owner calculator.- Parameters:
Owner
- Calculator owning the key
-
-
Method Detail
-
Clear
public void Clear(boolean All_Clear)
Clean Key state.- Specified by:
Clear
in interfaceIClear
- Overrides:
Clear
in 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
Description copied from interface:IOperation
Execute virtual CPU command or key stroke
- Parameters:
Key_Code
- Virtual CPU Operation to be executed- Throws:
Op_Error
- See Also:
IOperation.Execute(short)
-
Execute_None
private void Execute_None(int Program_Store)
-
Execute_Prog
private void Execute_Prog(short Key_Code, int program_Store)
-
Remove_Step
private void Remove_Step(int Step)
remove step
- Parameters:
Step
- step to remove
-
toString
@NotNull public @NotNull String toString()
- Overrides:
toString
in classOwned_Operation
-
-