From 06d2081aa222ecc1028e36bf06d9f87c9aa1c267 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Tue, 18 Jul 2017 19:38:04 -0700 Subject: [PATCH] Dumper: rename 5 methods --- .../main/java/jme3utilities/debug/Dumper.java | 54 +++++++++---------- .../jme3utilities/debug/test/PoseDemoHud.java | 10 ++-- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/debug/src/main/java/jme3utilities/debug/Dumper.java b/debug/src/main/java/jme3utilities/debug/Dumper.java index 79f026d09..5a8011e10 100644 --- a/debug/src/main/java/jme3utilities/debug/Dumper.java +++ b/debug/src/main/java/jme3utilities/debug/Dumper.java @@ -584,81 +584,81 @@ public void dumpUserData(Spatial spatial) { } /** - * Configure the indent increment. + * Configure dumping of render-queue bucket assignments. * - * @param newValue (not null) + * @param newValue true to enable, false to disable * @return this instance for chaining */ - public Dumper setIndentIncrement(String newValue) { - Validate.nonNull(newValue, "increment"); - indentIncrement = newValue; + public Dumper setDumpBucket(boolean newValue) { + dumpBucketFlag = newValue; return this; } /** - * Configure the list separator. + * Configure dumping of cull hints. * - * @param separator (not null) + * @param newValue true to enable, false to disable * @return this instance for chaining */ - public Dumper setListSeparator(String separator) { - Validate.nonNull(separator, "separator"); - listSeparator = separator; + public Dumper setDumpCull(boolean newValue) { + dumpCullFlag = newValue; return this; } /** - * Configure dumping of render-queue bucket assignments. + * Configure dumping of shadow modes. * * @param newValue true to enable, false to disable * @return this instance for chaining */ - public Dumper setPrintBucket(boolean newValue) { - dumpBucketFlag = newValue; + public Dumper setDumpShadow(boolean newValue) { + dumpShadowFlag = newValue; return this; } /** - * Configure dumping of cull hints. + * Configure dumping of location and scaling. * * @param newValue true to enable, false to disable * @return this instance for chaining */ - public Dumper setPrintCull(boolean newValue) { - dumpCullFlag = newValue; + public Dumper setDumpTransform(boolean newValue) { + dumpTransformFlag = newValue; return this; } /** - * Configure dumping of shadow modes. + * Configure dumping of user data. * * @param newValue true to enable, false to disable * @return this instance for chaining */ - public Dumper setPrintShadow(boolean newValue) { - dumpShadowFlag = newValue; + public Dumper setDumpUser(boolean newValue) { + dumpUserFlag = newValue; return this; } /** - * Configure dumping of location and scaling. + * Configure the indent increment. * - * @param newValue true to enable, false to disable + * @param newValue (not null) * @return this instance for chaining */ - public Dumper setPrintTransform(boolean newValue) { - dumpTransformFlag = newValue; + public Dumper setIndentIncrement(String newValue) { + Validate.nonNull(newValue, "increment"); + indentIncrement = newValue; return this; } /** - * Configure dumping of user data. + * Configure the list separator. * - * @param newValue true to enable, false to disable + * @param separator (not null) * @return this instance for chaining */ - public Dumper setPrintUser(boolean newValue) { - dumpUserFlag = newValue; + public Dumper setListSeparator(String separator) { + Validate.nonNull(separator, "separator"); + listSeparator = separator; return this; } // ************************************************************************* diff --git a/tests/src/main/java/jme3utilities/debug/test/PoseDemoHud.java b/tests/src/main/java/jme3utilities/debug/test/PoseDemoHud.java index 8abbf96d5..6081eaaa3 100644 --- a/tests/src/main/java/jme3utilities/debug/test/PoseDemoHud.java +++ b/tests/src/main/java/jme3utilities/debug/test/PoseDemoHud.java @@ -785,14 +785,14 @@ private void updateDebugAids() { */ Dumper dumper = PoseDemo.getDumper(); enable = isChecked("printTransform"); - dumper.setPrintTransform(enable); + dumper.setDumpTransform(enable); enable = isChecked("printUser"); - dumper.setPrintUser(enable); + dumper.setDumpUser(enable); enable = isChecked("printBucket"); - dumper.setPrintBucket(enable); + dumper.setDumpBucket(enable); enable = isChecked("printShadow"); - dumper.setPrintShadow(enable); + dumper.setDumpShadow(enable); enable = isChecked("printCull"); - dumper.setPrintCull(enable); + dumper.setDumpCull(enable); } }