Package net.sourceforge.uiq3.fx603p
Class Keyboard
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Owned_Operation
-
- net.sourceforge.uiq3.fx603p.Keyboard
-
- All Implemented Interfaces:
IClear,IOperation,IOwned_Operation
- Direct Known Subclasses:
Key_0_RND,Key_2ndF_Caps,Key_ALPHA,Key_C,Key_Dot_RAN,Key_FST_RSLOAD_NOP,Key_MODE,Key_Shift,Key_Simple
public abstract class Keyboard extends Owned_Operation implements IOperation, IClear
An FX-602P Key.- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description static shorta_b_cNormala b/c INFd/c Base-NAND (binary and) ALPHALstatic shortACNormalAC (all clear) INFSAC (statistic clear) 2ndFMAC (memory clear)static shortALPHAstatic String[]Alpha_Textstatic String[]Base_N_Textstatic shortBSTNormalBST (back step) INFRSSAVE (Serial save)static StringButton_Memory_Fstatic StringButton_Memory_nstatic StringButton_Memory_snstatic StringButton_Memory_sn1static StringButton_Memory_SXstatic StringButton_Memory_SX2static StringButton_Memory_xmeanstatic StringButton_Mode_BaseNstatic StringButton_Mode_COMPstatic StringButton_Mode_DEGstatic StringButton_Mode_GRAstatic StringButton_Mode_IOstatic StringButton_Mode_PCLstatic StringButton_Mode_RADstatic StringButton_Mode_RUNstatic StringButton_Mode_WRTstatic StringButton_RND_FIXstatic shortCNormalC<(clear)/dd>static shortcosNormalcos INFcos⁻¹ hypcosh INV hypcosh⁻¹ Base-N𝔼 ALPHAUstatic shortdegreeNormal°'" INF°'"← Base-NXOR (binary exclusive or) ALPHANstatic shortDivideNormal÷ INFˣ√y ALPHA÷ INF ALPHA:/static shortDotNormal.static shortengNormaleng INFeng← ALPHAMstatic shortEqualNormal= INF% ALPHA= INF ALPHA# (x recall)static shortEXENormalEXE (execute) INFSEXE (shift execute) 2ndFFEXE (2nd function execute) ALPHAEXE (execute) INF ALPHA:(space)static shortEXPNormalEXP (exponent) INFπ ALPHAⅇ INF ALPHAπ MemoryFstatic shortFSTNormalFST (forwards step) INFRSDLOAD (serial load) 2ndFSAC (NOP) INF ALPHAar (alpha recall)static shortGOTONormalGOTO INFSAVE 2ndFPOKE ALPHAIstatic shortGSBNormalGSB (Go subroutine) INFLOAD 2ndFPEEK ALPHAJstatic shortHLTNormalHLT (halt) INFPAUSE 2ndFVER ALPHAGstatic shorthypNormalhyp Base-Nℂ ALPHASstatic shortLBLNormalLBL (label) INFIND (indirect) 2ndFPRD (Print) ALPHAHstatic shortlnNormalln INFeˣ Base-NHEX INF Base-NOCT ALPHAPstatic shortlogNormallog INF10ˣ Base-NDEC INF Base-NBIN ALPHAOstatic shortM_MinusNormalM- (memory subtract) INF¹/x ALPHA; (alpha append)static shortM_PlusNormalM+ (memory add) INFX!static shortMinNormalMin (memory in) INF√ ALPHAYstatic shortMinusNormal− (substract) INFP→R (polar to rectangle) ALPHA- INF ALPHA←static shortMODENormalMODEstatic String[]Mode_Textstatic shortMRNormalMR (memory recall) INFx² ALPHAZstatic shortMultiplyNormal× INFxʸ ALPHA× INF ALPHA*private static StringNo_Textstatic String[]Normal_Textstatic shortNum_0Normal0 INFRND ALPHA0 INF ALPHA:static shortNum_1Normal1 INFDSZ (decrement and skip zero) ALPHA1 INF ALPHA█static shortNum_2Normal2 INFx=0 (x equals 0) ALPHA2 INF ALPHA?static shortNum_3Normal3 INFx=F ALPHA3 INF ALPHA!static shortNum_4Normal4 INFISZ (increment and skip on zero) ALPHA4 INF ALPHAµstatic shortNum_5Normal5 INFx≥0 ALPHA5 INF ALPHA<static shortNum_6Normal6 INFx≥F ALPHA6 INF ALPHA>static shortNum_7Normal7 INFx (mean) ALPHA7 INF ALPHAstatic shortNum_8Normal8 INFσn ALPHA8 INF ALPHA(static shortNum_9Normal9 INFσn-1 ALPHA9 INF ALPHA)static shortP_CloseNormal) INFFRAC (fracture) Base-N𝔹 ALPHARstatic shortP_OpenNormal( INFINT (integer) Base-N𝔸 ALPHAQstatic shortP0NormalP0 (program 0) INFP5 (program 5) ALPHAAstatic shortP1NormalP1 (program 1) INFP6 (program 6) ALPHABstatic shortP1_NormalP_ (Programm 10 … 19) ALPHAFstatic shortP2NormalP2 (program 2) INFP7 (program 7) ALPHADstatic shortP3NormalP3 (program 3) INFP8 (program 8) ALPHAEstatic shortP4NormalP4 (program 4) INFP9 (program 9) ALPHAFstatic shortPlusNormal+ INFR→P (rectangular to polar) ALPHA+ INF ALPHA→static shortPlus_MinusNormal± INFABS Base-NNEG (arithmetic negative) ALPHAKstatic shortSecondFNormal2ndF (secound function) ALPHAcaps lockstatic String[]SecondF_Textstatic shortSHIFTNormalSHIFT (shift function) ALPHAupper capsstatic String[]Shift_Alpha_Textstatic String[]Shift_Base_N_Textstatic String[]Shift_Textstatic shortsinNormalsin⁻¹ INFsin⁻¹ hypsinh INV hypsinh⁻¹ Base-Nⅅ ALPHATstatic shorttanNormaltan INFtan⁻¹ hyptanh INV hyptanh⁻¹ Base-N𝔽 ALPHAVstatic shortX_MNormalX↔︎M INFX↔︎Y ALPHAXstatic shortXdNormalXd INFxdel Base-NNOT (binary negative) ALPHAW-
Fields inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
Owner
-
-
Constructor Summary
Constructors Constructor Description Keyboard(Calculator Owner)Create Key and attach to owner calculator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidClear(boolean All_Clear)Clean Key - no operation as most keys are not actually state full keys which need cleaningstatic StringGet_Text(short Key_Code, boolean Shift, boolean SecondF, boolean Alpha, boolean Caps, boolean nBase, boolean Mode)(package private) static booleanIs_Char(short Key_Code)Test if a keyboard token is a character token suitable for the CAPS operation.(package private) static booleanIs_Num(short Key_Code)Test if a keyboard token is a numeric token (0 .. 9)-
Methods inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
µReset, µReset, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.uiq3.calculator.IOperation
Execute
-
-
-
-
Field Detail
-
No_Text
private static final String No_Text
-
AC
public static final short AC
- Normal
- AC (all clear)
- INF
- SAC (statistic clear)
- 2ndF
- MAC (memory clear)
- See Also:
- Constant Field Values
-
ALPHA
public static final short ALPHA
- See Also:
- Constant Field Values
-
Alpha_Text
public static final String[] Alpha_Text
-
BST
public static final short BST
- Normal
- BST (back step)
- INF
- RSSAVE (Serial save)
- See Also:
- Constant Field Values
-
Base_N_Text
public static final String[] Base_N_Text
-
C
public static final short C
- Normal
- C<(clear)/dd>
- See Also:
- Constant Field Values
-
Divide
public static final short Divide
- Normal
- ÷
- INF
- ˣ√y
- ALPHA
- ÷
- INF ALPHA:
- /
- See Also:
- Constant Field Values
-
Dot
public static final short Dot
- Normal
- . (decimal point)
- INF
- RAN# (random number)
- ALPHA
- .
- INF ALPHA ,
- See Also:
- Constant Field Values
-
EXE
public static final short EXE
- Normal
- EXE (execute)
- INF
- SEXE (shift execute)
- 2ndF
- FEXE (2nd function execute)
- ALPHA
- EXE (execute)
- INF ALPHA:
- (space)
- See Also:
- Constant Field Values
-
EXP
public static final short EXP
- Normal
- EXP (exponent)
- INF
- π
- ALPHA
- ⅇ
- INF ALPHA
- π
- Memory
- F
- See Also:
- Constant Field Values
-
Equal
public static final short Equal
- Normal
- =
- INF
- %
- ALPHA
- =
- INF ALPHA
- # (x recall)
- See Also:
- Constant Field Values
-
FST
public static final short FST
- Normal
- FST (forwards step)
- INF
- RSDLOAD (serial load)
- 2ndF
- SAC (NOP)
- INF ALPHA
- ar (alpha recall)
- See Also:
- Constant Field Values
-
GOTO
public static final short GOTO
- Normal
- GOTO
- INF
- SAVE
- 2ndF
- POKE
- ALPHA
- I
- See Also:
- Constant Field Values
-
GSB
public static final short GSB
- Normal
- GSB (Go subroutine)
- INF
- LOAD
- 2ndF
- PEEK
- ALPHA
- J
- See Also:
- Constant Field Values
-
HLT
public static final short HLT
- Normal
- HLT (halt)
- INF
- PAUSE
- 2ndF
- VER
- ALPHA
- G
- See Also:
- Constant Field Values
-
LBL
public static final short LBL
- Normal
- LBL (label)
- INF
- IND (indirect)
- 2ndF
- PRD (Print)
- ALPHA
- H
- See Also:
- Constant Field Values
-
MODE
public static final short MODE
- Normal
- MODE
- See Also:
- Constant Field Values
-
MR
public static final short MR
- Normal
- MR (memory recall)
- INF
- x²
- ALPHA
- Z
- See Also:
- Constant Field Values
-
M_Minus
public static final short M_Minus
- Normal
- M- (memory subtract)
- INF
- ¹/x
- ALPHA
- ; (alpha append)
- See Also:
- Constant Field Values
-
M_Plus
public static final short M_Plus
- Normal
- M+ (memory add)
- INF
- X!
- ALPHA
- ar (alpha recal)
- See Also:
- Constant Field Values
-
Min
public static final short Min
- Normal
- Min (memory in)
- INF
- √
- ALPHA
- Y
- See Also:
- Constant Field Values
-
Minus
public static final short Minus
- Normal
- − (substract)
- INF
- P→R (polar to rectangle)
- ALPHA
- -
- INF ALPHA
- ←
- See Also:
- Constant Field Values
-
Mode_Text
public static final String[] Mode_Text
-
Multiply
public static final short Multiply
- Normal
- ×
- INF
- xʸ
- ALPHA
- ×
- INF ALPHA
- *
- See Also:
- Constant Field Values
-
Button_Memory_F
public static final String Button_Memory_F
-
Button_Memory_n
public static final String Button_Memory_n
-
Button_Memory_sn1
public static final String Button_Memory_sn1
-
Button_Memory_sn
public static final String Button_Memory_sn
-
Button_Memory_SX2
public static final String Button_Memory_SX2
-
Button_Memory_SX
public static final String Button_Memory_SX
-
Button_Memory_xmean
public static final String Button_Memory_xmean
-
Button_Mode_BaseN
public static final String Button_Mode_BaseN
-
Button_Mode_COMP
public static final String Button_Mode_COMP
-
Button_Mode_DEG
public static final String Button_Mode_DEG
-
Button_Mode_GRA
public static final String Button_Mode_GRA
-
Button_Mode_IO
public static final String Button_Mode_IO
-
Button_Mode_PCL
public static final String Button_Mode_PCL
-
Button_Mode_RAD
public static final String Button_Mode_RAD
-
Button_Mode_RUN
public static final String Button_Mode_RUN
-
Button_Mode_WRT
public static final String Button_Mode_WRT
-
Button_RND_FIX
public static final String Button_RND_FIX
-
Normal_Text
public static final String[] Normal_Text
-
Num_0
public static final short Num_0
- Normal
- 0
- INF
- RND
- ALPHA
- 0
- INF ALPHA
- :
- See Also:
- Constant Field Values
-
Num_1
public static final short Num_1
- Normal
- 1
- INF
- DSZ (decrement and skip zero)
- ALPHA
- 1
- INF ALPHA
- █
- See Also:
- Constant Field Values
-
Num_2
public static final short Num_2
- Normal
- 2
- INF
- x=0 (x equals 0)
- ALPHA
- 2
- INF ALPHA
- ?
- See Also:
- Constant Field Values
-
Num_3
public static final short Num_3
- Normal
- 3
- INF
- x=F
- ALPHA
- 3
- INF ALPHA
- !
- See Also:
- Constant Field Values
-
Num_4
public static final short Num_4
- Normal
- 4
- INF
- ISZ (increment and skip on zero)
- ALPHA
- 4
- INF ALPHA
- µ
- See Also:
- Constant Field Values
-
Num_5
public static final short Num_5
- Normal
- 5
- INF
- x≥0
- ALPHA
- 5
- INF ALPHA
- <
- See Also:
- Constant Field Values
-
Num_6
public static final short Num_6
- Normal
- 6
- INF
- x≥F
- ALPHA
- 6
- INF ALPHA
- >
- See Also:
- Constant Field Values
-
Num_7
public static final short Num_7
- Normal
- 7
- INF
- x (mean)
- ALPHA
- 7
- INF ALPHA
- See Also:
- Constant Field Values
-
Num_8
public static final short Num_8
- Normal
- 8
- INF
- σn
- ALPHA
- 8
- INF ALPHA
- (
- See Also:
- Constant Field Values
-
Num_9
public static final short Num_9
- Normal
- 9
- INF
- σn-1
- ALPHA
- 9
- INF ALPHA
- )
- See Also:
- Constant Field Values
-
P0
public static final short P0
- Normal
- P0 (program 0)
- INF
- P5 (program 5)
- ALPHA
- A
- See Also:
- Constant Field Values
-
P1
public static final short P1
- Normal
- P1 (program 1)
- INF
- P6 (program 6)
- ALPHA
- B
- See Also:
- Constant Field Values
-
P1_
public static final short P1_
- Normal
- P_ (Programm 10 … 19)
- ALPHA
- F
- See Also:
- Constant Field Values
-
P2
public static final short P2
- Normal
- P2 (program 2)
- INF
- P7 (program 7)
- ALPHA
- D
- See Also:
- Constant Field Values
-
P3
public static final short P3
- Normal
- P3 (program 3)
- INF
- P8 (program 8)
- ALPHA
- E
- See Also:
- Constant Field Values
-
P4
public static final short P4
- Normal
- P4 (program 4)
- INF
- P9 (program 9)
- ALPHA
- F
- See Also:
- Constant Field Values
-
P_Close
public static final short P_Close
- Normal
- )
- INF
- FRAC (fracture)
- Base-N
- 𝔹
- ALPHA
- R
- See Also:
- Constant Field Values
-
P_Open
public static final short P_Open
- Normal
- (
- INF
- INT (integer)
- Base-N
- 𝔸
- ALPHA
- Q
- See Also:
- Constant Field Values
-
Plus
public static final short Plus
- Normal
- +
- INF
- R→P (rectangular to polar)
- ALPHA
- +
- INF ALPHA
- →
- See Also:
- Constant Field Values
-
Plus_Minus
public static final short Plus_Minus
- Normal
- ±
- INF
- ABS
- Base-N
- NEG (arithmetic negative)
- ALPHA
- K
- See Also:
- Constant Field Values
-
SHIFT
public static final short SHIFT
- Normal
- SHIFT (shift function)
- ALPHA
- upper caps
- See Also:
- Constant Field Values
-
SecondF
public static final short SecondF
- Normal
- 2ndF (secound function)
- ALPHA
- caps lock
- See Also:
- Constant Field Values
-
SecondF_Text
public static final String[] SecondF_Text
-
Shift_Alpha_Text
public static final String[] Shift_Alpha_Text
-
Shift_Base_N_Text
public static final String[] Shift_Base_N_Text
-
Shift_Text
public static final String[] Shift_Text
-
X_M
public static final short X_M
- Normal
- X↔︎M
- INF
- X↔︎Y
- ALPHA
- X
- See Also:
- Constant Field Values
-
Xd
public static final short Xd
- Normal
- Xd
- INF
- xdel
- Base-N
- NOT (binary negative)
- ALPHA
- W
- See Also:
- Constant Field Values
-
a_b_c
public static final short a_b_c
- Normal
- a b/c
- INF
- d/c
- Base-N
- AND (binary and)
- ALPHA
- L
- See Also:
- Constant Field Values
-
cos
public static final short cos
- Normal
- cos
- INF
- cos⁻¹
- hyp
- cosh
- INV hyp
- cosh⁻¹
- Base-N
- 𝔼
- ALPHA
- U
- See Also:
- Constant Field Values
-
degree
public static final short degree
- Normal
- °'"
- INF
- °'"←
- Base-N
- XOR (binary exclusive or)
- ALPHA
- N
- See Also:
- Constant Field Values
-
eng
public static final short eng
- Normal
- eng
- INF
- eng←
- ALPHA
- M
- See Also:
- Constant Field Values
-
hyp
public static final short hyp
- Normal
- hyp
- Base-N
- ℂ
- ALPHA
- S
- See Also:
- Constant Field Values
-
ln
public static final short ln
- Normal
- ln
- INF
- eˣ
- Base-N
- HEX
- INF Base-N
- OCT
- ALPHA
- P
- See Also:
- Constant Field Values
-
log
public static final short log
- Normal
- log
- INF
- 10ˣ
- Base-N
- DEC
- INF Base-N
- BIN
- ALPHA
- O
- See Also:
- Constant Field Values
-
sin
public static final short sin
- Normal
- sin⁻¹
- INF
- sin⁻¹
- hyp
- sinh
- INV hyp
- sinh⁻¹
- Base-N
- ⅅ
- ALPHA
- T
- See Also:
- Constant Field Values
-
tan
public static final short tan
- Normal
- tan
- INF
- tan⁻¹
- hyp
- tanh
- INV hyp
- tanh⁻¹
- Base-N
- 𝔽
- ALPHA
- V
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Keyboard
Keyboard(Calculator Owner)
Create Key and attach to owner calculator.- Parameters:
Owner- Calculator owning the key
-
-
Method Detail
-
Get_Text
public static String Get_Text(short Key_Code, boolean Shift, boolean SecondF, boolean Alpha, boolean Caps, boolean nBase, boolean Mode)
- Parameters:
Shift- Shift mode is activeSecondF- 2nd Function mode is activeAlpha- alpha text input is activeCaps- CAPS lock is activenBase- nbase base n calculations are activeMode- Mode ist active
-
Is_Char
static boolean Is_Char(short Key_Code)
Test if a keyboard token is a character token suitable for the CAPS operation.- Parameters:
Key_Code- Token to test- Returns:
- true if Key_Code in A … Z
-
Is_Num
static boolean Is_Num(short Key_Code)
Test if a keyboard token is a numeric token (0 .. 9)- Parameters:
Key_Code- Token to test- Returns:
- true if Key_Code in 0 … 9
-
Clear
public void Clear(boolean All_Clear)
Clean Key - no operation as most keys are not actually state full keys which need cleaning- Specified by:
Clearin interfaceIClear- Parameters:
All_Clear- make no difference- See Also:
IClear.Clear(boolean)
-
-