Package org.djunits.formatter
Class VectorFormat.Row
- Enclosing class:
- VectorFormat<F extends VectorFormat<F>>
VectorFormat.Row stores the settings that influence both the value part and the unit part of an output string when
formatting a row 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
ConstructorsModifierConstructorDescriptionprotectedRow(VectorFormatContext ctx) Construct a VectorFormat object with a given context. -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorFormat.RowReturn an instance of VectorFormat.Row with the DEFAULT_ROW values, which can be changed for all subsequent calls.static VectorFormat.Rowdefaults()Return an instance of VectorFormat.Row for row vectors, initialized with the default values.(package private) static VectorFormatContextMake row default.static voidReset the default values of VectorFormat.Row 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
-
Row
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
-
makeDefault
Make row default.- Returns:
- a new default for the Row VectorFormatContext
-
defaults
Return an instance of VectorFormat.Row for row vectors, initialized with the default values.- Returns:
- an instance of VectorFormat.Row for row vectors, initialized with the default values
-
changeDefaults
Return an instance of VectorFormat.Row with the DEFAULT_ROW values, which can be changed for all subsequent calls.- Returns:
- an instance of VectorFormat.Row with the DEFAULT_ROW values
-
resetDefaults
public static void resetDefaults()Reset the default values of VectorFormat.Row for row vectors to their original values.
-