Package org.djunits.formatter
package org.djunits.formatter
Methods to format quantity-related values for display.
Copyright (c) 2025-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.
- Author:
- Alexander Verbraeck
-
ClassDescriptionFormat is the abstract base class for the settings the format.FormatContext contains a number of basic settings for formatting a quantity, vector, matrix or quantity table.The format mode.Formatter<C extends FormatContext>Formatter of quantities, vectors, matrices and tables according to the format options that are stored in the
FormatContextor one of its extensions.MatrixFormat stores the settings that influence both the value part and the unit part of an output string when formatting a matrix.MatrixFormatContext contains a number of basic settings for formatting a matrix.MatrixFormatter formats a matrix as a String, using the settings of theMatrixFormatContext.QuantityFormat stores the settings that influence both the value part and the unit part of an output string when formatting a quantity.QuantityFormatContext contains a number of settings for formatting a quantity.QuantityFormatter formats a quantity as a String, using the settings of theQuantityFormatContext.TableFormat stores the settings that influence both the value part and the unit part of an output string when formatting a table.TableFormatContext contains a number of basic settings for formatting a quantity table.TableFormatter formats a table as a String, using the settings of theTableFormatContext.VectorFormat<F extends VectorFormat<F>>VectorFormat stores the settings that influence both the value part and the unit part of an output string when formatting a row or column vector.VectorFormat.Col stores the settings that influence both the value part and the unit part of an output string when formatting a column vector.VectorFormat.Row stores the settings that influence both the value part and the unit part of an output string when formatting a row vector.VectorFormatContext contains a number of settings for formatting a vector.VectorFormatter formats a vector as a String, using the settings of theVectorFormatContext.