Package jme3utilities.debug
Class Describer
java.lang.Object
jme3utilities.debug.Describer
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
PhysicsDescriber
Generate compact textual descriptions of Libbulletjme objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a copy of this Describer.describe
(BoundingBox aabb) Generate a compact, textual description of the specified BoundingBox.protected String
Describe the specified half extents.describeScale
(Vector3f vector) Generate a compact, textual description of the specified scale vector.Return the list separator.void
setListSeparator
(String newSeparator) Alter the list separator.
-
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
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
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
Return the list separator.- Returns:
- separator text string (not null, may be empty, default=" ")
-
setListSeparator
Alter the list separator.- Parameters:
newSeparator
- (not null, may be empty)
-
describeHalfExtents
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
Create a copy of this Describer.- Overrides:
clone
in classObject
- Returns:
- a new instance, equivalent to this one
- Throws:
CloneNotSupportedException
- if the superclass isn't cloneable
-