Class StructureLogger


  • public class StructureLogger
    extends java.lang.Object
    Logs the structure of the JavaFx application.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void log​(javafx.scene.Node node, java.lang.Appendable output)
      Logs the Node and all its descendants.
      static void logCss​(javafx.scene.Node node, int maxDepth, java.lang.Appendable output)
      Logs the Node including its CssMetaData and all its descendants.
      static void logFull​(javafx.scene.Node node, java.lang.Appendable output)
      Logs the full structure that the Node is involved in.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • logFull

        public static void logFull​(javafx.scene.Node node,
                                   java.lang.Appendable output)
                            throws java.io.IOException
        Logs the full structure that the Node is involved in.
        Parameters:
        node - Node.
        output - Appendable.
        Throws:
        java.io.IOException - If fails to log.
      • log

        public static void log​(javafx.scene.Node node,
                               java.lang.Appendable output)
                        throws java.io.IOException
        Logs the Node and all its descendants.
        Parameters:
        node - Node.
        output - Appendable.
        Throws:
        java.io.IOException - If fails to log.
      • logCss

        public static void logCss​(javafx.scene.Node node,
                                  int maxDepth,
                                  java.lang.Appendable output)
                           throws java.io.IOException
        Logs the Node including its CssMetaData and all its descendants.
        Parameters:
        node - Node.
        maxDepth - Maximum depth to recurse before stopping. Note that CSS output is quite large, hence need to limit depth. Use -1 for unlimited depth.
        output - Appendable.
        Throws:
        java.io.IOException - If fails to log.