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.defaults()Return an instance of QuantityFormat, initialized with the default values.QuantityFormat.setScaleSiPrefixes()Use closest SI prefix.QuantityFormat.setScaleSiPrefixes(int minPrefixPower, int maxPrefixPower) Use closest SI prefix.Methods in org.djunits.formatter with parameters of type QuantityFormatModifier and TypeMethodDescriptionstatic StringQuantityFormatter.format(AbsQuantity<?, ?, ?> 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 TypeMethodDescriptionAbsQuantity.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.