Package com.helger.pdflayout.debug
Class PLDebugRender
java.lang.Object
com.helger.pdflayout.debug.PLDebugRender
This class defines stuff for debug rendering.
- Since:
- 4.0.0-b3
- Author:
- Philip Helger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvide the debug borders for elements.static interfaceProvide the debug color for elements. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BorderStyleSpecgreenstatic final BorderStyleSpecbluestatic final BorderStyleSpecredstatic final PLColorstatic final PLColorstatic final PLColorstatic final boolean -
Method Summary
Modifier and TypeMethodDescriptionstatic BorderStyleSpecgetDebugBorder(Object aObject) static PLColorgetDebugOutlineColor(Object aObject) static booleanstatic voidReset all debug rendering stuff to defaults.static voidsetDebugBorderProvider(PLDebugRender.IDebugBorderProvider aDebugBorderProvider) static voidsetDebugOutlineColorProvider(PLDebugRender.IDebugColorProvider aDebugOutlineColorProvider) static voidsetDebugRender(boolean bDebugRender) Enable or disable debug rendering globally.static <EXTYPE extends Throwable>
voidwithDebugRender(boolean bDebug, com.helger.commons.callback.IThrowingRunnable<EXTYPE> aRunnable) static <EXTYPE extends Throwable>
voidwithDebugRender(com.helger.commons.callback.IThrowingRunnable<EXTYPE> aRunnable)
-
Field Details
-
DEFAULT_DEBUG_RENDER
public static final boolean DEFAULT_DEBUG_RENDER- See Also:
-
DEFAULT_COLOR_OUTLINE_PAGESET
-
DEFAULT_COLOR_OUTLINE_BLOCK_ELEMENT
-
DEFAULT_COLOR_OUTLINE_INLINE_ELEMENT
-
DEFAULT_BORDER_PAGESET
red -
DEFAULT_BORDER_BLOCK_ELEMENT
green -
DEFAULT_BORDER_INLINE_ELEMENT
blue
-
-
Method Details
-
resetToDefault
public static void resetToDefault()Reset all debug rendering stuff to defaults. This includes disabling of debug rendering. -
isDebugRender
public static boolean isDebugRender()- Returns:
trueif debug rendering is enabled,falseif not.
-
setDebugRender
public static void setDebugRender(boolean bDebugRender) Enable or disable debug rendering globally.- Parameters:
bDebugRender-trueto enable it,falseto disable it.
-
setDebugOutlineColorProvider
public static void setDebugOutlineColorProvider(@Nonnull PLDebugRender.IDebugColorProvider aDebugOutlineColorProvider) -
getDebugOutlineColor
-
setDebugBorderProvider
public static void setDebugBorderProvider(@Nonnull PLDebugRender.IDebugBorderProvider aDebugBorderProvider) -
getDebugBorder
-
withDebugRender
public static <EXTYPE extends Throwable> void withDebugRender(@Nonnull com.helger.commons.callback.IThrowingRunnable<EXTYPE> aRunnable) throws EXTYPE - Throws:
EXTYPE extends Throwable
-
withDebugRender
public static <EXTYPE extends Throwable> void withDebugRender(boolean bDebug, @Nonnull com.helger.commons.callback.IThrowingRunnable<EXTYPE> aRunnable) throws EXTYPE - Throws:
EXTYPE extends Throwable
-