Package org.djunits.formatter
Class VectorFormat.Col
- Enclosing class:
- VectorFormat<F extends VectorFormat<F>>
VectorFormat.Col stores the settings that influence both the value part and the unit part of an output string when
formatting a column vector.
Copyright (c) 2026-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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.djunits.formatter.VectorFormat
VectorFormat.Col, VectorFormat.Row -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCol(VectorFormatContext ctx) Construct a VectorFormat object with a given context. -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorFormat.ColReturn an instance of VectorFormat.Col with the DEFAULT_ROW values, which can be changed for all subsequent calls.static VectorFormat.Coldefaults()Return an instance of VectorFormat.Col for row vectors, initialized with the default values.static voidReset the default values of VectorFormat.Col for row vectors to their original values.Methods inherited from class org.djunits.formatter.VectorFormat
setEndSymbol, setSeparatorSymbol, setStartSymbol, setVectorPrefixMethods inherited from class org.djunits.formatter.Format
self, setDecimals, setDisplay, setDisplayUnit, setDisplayUnit, setDivider, setDotSeparator, setEngineering, setFixedFloat, setFixedWithEngFallback, setFixedWithSciFallback, setFormatString, setGroupingSeparator, setLocale, setNoReference, setPowerPostfix, setPowerPrefix, setPrintReference, setPrintReference, setReferencePostfix, setReferencePrefix, setScientific, setSiUnits, setTextual, setTextual, setUnitPostfix, setUnitPrefix, setUpperE, setVariableLength, setWidth
-
Constructor Details
-
Col
Construct a VectorFormat object with a given context. Note that the context can be an existing context that is being modified or a default context.- Parameters:
ctx- the vector format context to use
-
-
Method Details
-
defaults
Return an instance of VectorFormat.Col for row vectors, initialized with the default values.- Returns:
- an instance of VectorFormat.Col for row vectors, initialized with the default values
-
changeDefaults
Return an instance of VectorFormat.Col with the DEFAULT_ROW values, which can be changed for all subsequent calls.- Returns:
- an instance of VectorFormat.Col with the DEFAULT_ROW values
-
resetDefaults
public static void resetDefaults()Reset the default values of VectorFormat.Col for row vectors to their original values.
-