Static class used to convert units (mass, length, time)
More...
|
static double | time (String timeUnit) |
| Takes a unit of time and returns a factor to multiply a parameter by to obtain the correct unit (hour) More...
|
|
static double | length (String lengthUnit) |
| Takes a length unit and returns a double value of length for that unit. More...
|
|
static double | mass (String massUnit) |
| Takes a mass unit and returns a double value of mass for that unit. More...
|
|
static double | volume (String massUnit) |
| Takes a mass unit and returns a double value of volume for that unit. More...
|
|
static Color | getColor (String colorName) |
| For a given colour name, returns a colour object. More...
|
|
Static class used to convert units (mass, length, time)
Static class used to convert units (mass, length, time). Internal units: Mass = femtograms (=1e-15 grams), Length = micrometer (=1e-6 meter), Time = hour
- Author
- Andreas D�tsch (andre.nosp@m.as.d.nosp@m.oetsc.nosp@m.h@he.nosp@m.lmhol.nosp@m.tz-h.nosp@m.zi.de), Helmholtz Centre for Infection Research (Germany)
-
Laurent Lardon (lardo.nosp@m.nl@s.nosp@m.upagr.nosp@m.o.in.nosp@m.ra.fr), INRA, France
static Color utils.UnitConverter.getColor |
( |
String |
colorName | ) |
|
|
static |
For a given colour name, returns a colour object.
For a given colour name, returns a colour object
- Parameters
-
colorName | String name of a colour, for which a colour object is required |
- Returns
- A Color object for that specified colour name
static double utils.UnitConverter.length |
( |
String |
lengthUnit | ) |
|
|
static |
Takes a length unit and returns a double value of length for that unit.
Takes a length unit and returns a length value of mass for that unit
- Parameters
-
lengthUnit | String containing a unit of length (m,cm,etc) |
- Returns
- Double value of length for that unit
static double utils.UnitConverter.mass |
( |
String |
massUnit | ) |
|
|
static |
Takes a mass unit and returns a double value of mass for that unit.
Takes a mass unit and returns a double value of mass for that unit
- Parameters
-
massUnit | String containing a unit of mass (g,kg,etc) |
- Returns
- Double value of mass for that unit
static double utils.UnitConverter.time |
( |
String |
timeUnit | ) |
|
|
static |
Takes a unit of time and returns a factor to multiply a parameter by to obtain the correct unit (hour)
Takes a unit of time and returns a factor to multiply a parameter by to obtain the correct unit (hour)
- Parameters
-
timeUnit | Unit of time for which a conversion is required |
- Returns
- a factor to multiply to obtain the correct unit (hour)
static double utils.UnitConverter.volume |
( |
String |
massUnit | ) |
|
|
static |
Takes a mass unit and returns a double value of volume for that unit.
Takes a mass unit and returns a double value of volume for that unit
- Parameters
-
massUnit | String containing a unit of mass (m,L,etc) |
- Returns
- Double value of mass for that unit
The documentation for this class was generated from the following file: