org.das2.datum.format.ExponentialDatumFormatter

Formats Datums forcing a given exponent and number of decimal places. This is useful for axes where each of the labels should have the same exponent. Zero is treated specially, just "0" is returned. This helps one to quickly identify zero on the axis.

ExponentialDatumFormatter( int digits, int exponent )


format

format( Datum datum ) → String

Parameters

datum - a Datum

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]

format( Datum datum, Units units ) → String

grannyFormat

grannyFormat( Datum datum, Units units ) → String

Parameters

datum - a Datum
units - an Units

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]

grannyFormat( Datum datum ) → String

toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]