Class Describer

java.lang.Object
jme3utilities.debug.Describer
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PhysicsDescriber

public class Describer extends Object implements Cloneable
Generate compact textual descriptions of Libbulletjme objects.
  • Constructor Details

    • Describer

      public Describer()
      Instantiate a Describer with the default separator.

      This no-arg constructor was made explicit to avoid javadoc warnings from JDK 18+.

  • Method Details

    • describe

      public String describe(BoundingBox aabb)
      Generate a compact, textual description of the specified BoundingBox.
      Parameters:
      aabb - the box to describe (not null, unaffected)
      Returns:
      description (not null, not empty)
    • describeScale

      public String describeScale(Vector3f vector)
      Generate a compact, textual description of the specified scale vector.
      Parameters:
      vector - the vector to describe (not null, unaffected)
      Returns:
      a description (not null, may be empty)
    • listSeparator

      public String listSeparator()
      Return the list separator.
      Returns:
      separator text string (not null, may be empty, default=" ")
    • setListSeparator

      public void setListSeparator(String newSeparator)
      Alter the list separator.
      Parameters:
      newSeparator - (not null, may be empty)
    • describeHalfExtents

      protected String describeHalfExtents(Vector3f he)
      Describe the specified half extents.
      Parameters:
      he - the half extent for each axis (not null, unaffected)
      Returns:
      a bracketed description (not null, not empty)
    • clone

      public Describer clone() throws CloneNotSupportedException
      Create a copy of this Describer.
      Overrides:
      clone in class Object
      Returns:
      a new instance, equivalent to this one
      Throws:
      CloneNotSupportedException - if the superclass isn't cloneable