Package com.helger.pdflayout.debug
Class PLDebugRender
- java.lang.Object
-
- com.helger.pdflayout.debug.PLDebugRender
-
@NotThreadSafe public final class PLDebugRender extends Object
This class defines stuff for debug rendering.- Since:
- 4.0.0-b3
- Author:
- Philip Helger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePLDebugRender.IDebugBorderProviderProvide the debug borders for elements.static interfacePLDebugRender.IDebugColorProviderProvide the debug color for elements.
-
Field Summary
Fields Modifier and Type Field Description static BorderStyleSpecDEFAULT_BORDER_BLOCK_ELEMENTgreenstatic BorderStyleSpecDEFAULT_BORDER_INLINE_ELEMENTbluestatic BorderStyleSpecDEFAULT_BORDER_PAGESETredstatic ColorDEFAULT_COLOR_OUTLINE_BLOCK_ELEMENTstatic ColorDEFAULT_COLOR_OUTLINE_INLINE_ELEMENTstatic ColorDEFAULT_COLOR_OUTLINE_PAGESETstatic booleanDEFAULT_DEBUG_RENDER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BorderStyleSpecgetDebugBorder(Object aObject)static ColorgetDebugOutlineColor(Object aObject)static booleanisDebugRender()static voidresetToDefault()Reset 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 Detail
-
DEFAULT_DEBUG_RENDER
public static final boolean DEFAULT_DEBUG_RENDER
- See Also:
- Constant Field Values
-
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:
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)
-
setDebugBorderProvider
public static void setDebugBorderProvider(@Nonnull PLDebugRender.IDebugBorderProvider aDebugBorderProvider)
-
getDebugBorder
@Nullable public static BorderStyleSpec getDebugBorder(@Nonnull Object aObject)
-
withDebugRender
public static <EXTYPE extends Throwable> void withDebugRender(@Nonnull com.helger.commons.callback.IThrowingRunnable<EXTYPE> aRunnable) throws EXTYPE extends Throwable
- Throws:
EXTYPE extends Throwable
-
-