Class VectorFormat.Row

Enclosing class:
VectorFormat<F extends VectorFormat<F>>

public static class VectorFormat.Row extends VectorFormat<VectorFormat.Row>
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
  • Constructor Details

    • Row

      protected Row(VectorFormatContext ctx)
      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

      static VectorFormatContext makeDefault()
      Make row default.
      Returns:
      a new default for the Row VectorFormatContext
    • defaults

      public static VectorFormat.Row 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

      public static VectorFormat.Row 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.