Uses of Class
org.djunits.formatter.QuantityFormat
Packages that use QuantityFormat
Package
Description
Methods to format quantity-related values for display.
Definition classes for quantities.
-
Uses of QuantityFormat in org.djunits.formatter
Methods in org.djunits.formatter that return QuantityFormatModifier and TypeMethodDescriptionstatic QuantityFormatQuantityFormat.changeDefaults()Return an instance of QuantityFormat with the DEFAULT values, which can be changed for all subsequent calls.static QuantityFormatQuantityFormat.instance()Return an instance of QuantityFormat, initialized with the default values.QuantityFormat.setAllowExponents12()Set that it is allowed to use prefixes c, d, da, h in the autoSiPrefix.QuantityFormat.setAllowExponents12(boolean allowed) Set whether it is allowed to use prefixes c, d, da, h in the autoSiPrefix.QuantityFormat.setAutoSiPrefix()Turn on the automatic allocation of the unit to its closest SI prefix.QuantityFormat.setAutoSiPrefix(int minExponent, int maxExponent) Turn on the automatic allocation of the unit to its closest SI prefix, in case the exponent of the 10-power in scientific notation is between minExponent and maxExponent, inclusive.QuantityFormat.setAutoSiPrefix(String minSiPrefix, String maxSiPrefix) Turn on the automatic allocation of the unit to its closest SI prefix, in case the exponent of the 10-power in scientific notation is between minExponent and maxExponent, inclusive.Methods in org.djunits.formatter with parameters of type QuantityFormatModifier and TypeMethodDescriptionstatic StringQuantityFormatter.format(AbsBasic<?, ?, ?> absQuantity, QuantityFormat quantityFormat) Format an absolute quantity according to a givenQuantityFormat.static StringQuantityFormatter.format(Quantity<?> quantity, QuantityFormat quantityFormat) Format a quantity according to a givenQuantityFormat. -
Uses of QuantityFormat in org.djunits.quantity.def
Methods in org.djunits.quantity.def with parameters of type QuantityFormatModifier and TypeMethodDescriptionAbsBasic.format(QuantityFormat format) String representation of this quantity after applying the format.Quantity.format(QuantityFormat format) String representation of this quantity after applying the format.