Class PLDebugRender


  • @NotThreadSafe
    public final class PLDebugRender
    extends Object
    This class defines stuff for debug rendering.
    Since:
    4.0.0-b3
    Author:
    Philip Helger
    • Field Detail

      • DEFAULT_COLOR_OUTLINE_PAGESET

        public static final Color DEFAULT_COLOR_OUTLINE_PAGESET
      • DEFAULT_COLOR_OUTLINE_BLOCK_ELEMENT

        public static final Color DEFAULT_COLOR_OUTLINE_BLOCK_ELEMENT
      • DEFAULT_COLOR_OUTLINE_INLINE_ELEMENT

        public static final Color DEFAULT_COLOR_OUTLINE_INLINE_ELEMENT
      • DEFAULT_BORDER_PAGESET

        public static final BorderStyleSpec DEFAULT_BORDER_PAGESET
        red
      • DEFAULT_BORDER_BLOCK_ELEMENT

        public static final BorderStyleSpec DEFAULT_BORDER_BLOCK_ELEMENT
        green
      • DEFAULT_BORDER_INLINE_ELEMENT

        public static final BorderStyleSpec DEFAULT_BORDER_INLINE_ELEMENT
        blue
    • Method Detail

      • resetToDefault

        public static void resetToDefault()
        Reset all debug rendering stuff to defaults. This includes disabling of debug rendering.
      • isDebugRender

        public static boolean isDebugRender()
        Returns:
        true if debug rendering is enabled, false if not.
      • setDebugRender

        public static void setDebugRender​(boolean bDebugRender)
        Enable or disable debug rendering globally.
        Parameters:
        bDebugRender - true to enable it, false to disable it.
      • withDebugRender

        public static <EXTYPE extends Throwable> void withDebugRender​(@Nonnull
                                                                      com.helger.commons.callback.IThrowingRunnable<EXTYPE> aRunnable)
                                                               throws EXTYPE extends Throwable
        Throws:
        EXTYPE extends Throwable
      • withDebugRender

        public static <EXTYPE extends Throwable> void withDebugRender​(boolean bDebug,
                                                                      @Nonnull
                                                                      com.helger.commons.callback.IThrowingRunnable<EXTYPE> aRunnable)
                                                               throws EXTYPE extends Throwable
        Throws:
        EXTYPE extends Throwable