Class VectorFormat.Col

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

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

    • Col

      protected Col(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

    • defaults

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

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