|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.displayers.tools.AcopUtilities
public class AcopUtilities
Constructor Summary | |
---|---|
AcopUtilities()
|
Method Summary | |
---|---|
static java.lang.String |
formatHex(long value)
Formats the value to hex string (0xValue). |
static java.lang.String |
formatValue(double value,
boolean extraDigits)
Formats a value according to the given extra digits parameter. |
static java.lang.String |
formatValue(double value,
boolean extraDigits,
boolean superExtraDigits)
Formats the value according the given extra digits parameter. |
static java.lang.String |
formatValueInPowerOf3(double value,
boolean extraDigits)
Formats the value that its exponential part is always in the power of 3 |
static boolean |
isValueScientific(double val)
Checks if the value is in the range to be displayed in a scientific format (exponential). |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AcopUtilities()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static java.lang.String formatValueInPowerOf3(double value, boolean extraDigits)
value
- the value to be formattedextraDigits
-
public static java.lang.String formatValue(double value, boolean extraDigits)
value
- extraDigits
-
public static java.lang.String formatValue(double value, boolean extraDigits, boolean superExtraDigits)
value
- the value to formatextraDigits
- if extra decimal digits should be usedsuperExtraDigits
- if even more digits should be used
public static java.lang.String formatHex(long value)
value
- the value
public static boolean isValueScientific(double val)
val
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |