public enum GCalculatorEnum extends Enum<GCalculatorEnum>
Enum Constant and Description |
---|
ABS
Button for 10x
|
COS
Button for cosinus
|
DIV
Button for division
|
EXP
Button for exponential
|
LOG
Button for Neperian logarithm
|
LOG10
Button for decimal logarithm
|
MINUS
Button for substraction
|
MODULO
Button for 10x
|
MULT
Button for multiplication
|
PAR_CLOSE
Button to close a parenthesis
|
PAR_OPEN
Button to open a parenthesis
|
PI
PI button
|
PLUS
Button for addition
|
POW
Button for x^y
|
POW_10
Button for x^10
|
SIGN
Button for 10x
|
SIN
Button for sinus
|
SQRT
Button for sqrt
|
TAN
Button for tangent
|
TO_DEG
Button to convert to degrees
|
TO_RAD
Button to convert to radians
|
Modifier and Type | Method and Description |
---|---|
static Set<String> |
evaluateFormula(String formula)
Method to evaluate a formula and extract variable names
|
GButton |
getBut()
Method to get the button.
|
String |
getComment()
Method to get the text of the button.
|
static net.objecthunter.exp4j.function.Function |
getFunctionToDeg()
Method to get the function toDeg
|
static net.objecthunter.exp4j.function.Function |
getFunctionToRad()
Method to get the function toRad
|
String |
getName()
Method to get the name of the function.
|
boolean |
isFunction()
Method to know if it is a function or not.
|
static GCalculatorEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GCalculatorEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GCalculatorEnum PI
public static final GCalculatorEnum TO_RAD
public static final GCalculatorEnum TO_DEG
public static final GCalculatorEnum PAR_OPEN
public static final GCalculatorEnum PAR_CLOSE
public static final GCalculatorEnum PLUS
public static final GCalculatorEnum MINUS
public static final GCalculatorEnum MULT
public static final GCalculatorEnum DIV
public static final GCalculatorEnum SIN
public static final GCalculatorEnum COS
public static final GCalculatorEnum TAN
public static final GCalculatorEnum SQRT
public static final GCalculatorEnum LOG
public static final GCalculatorEnum LOG10
public static final GCalculatorEnum EXP
public static final GCalculatorEnum POW
public static final GCalculatorEnum POW_10
public static final GCalculatorEnum ABS
public static final GCalculatorEnum SIGN
public static final GCalculatorEnum MODULO
public static GCalculatorEnum[] values()
for (GCalculatorEnum c : GCalculatorEnum.values()) System.out.println(c);
public static GCalculatorEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getComment()
public String getName()
public boolean isFunction()
public GButton getBut()
public static Set<String> evaluateFormula(String formula)
formula
- formula to evaluatepublic static net.objecthunter.exp4j.function.Function getFunctionToRad()
public static net.objecthunter.exp4j.function.Function getFunctionToDeg()
Copyright © 2024. All rights reserved.