Package com.helger.pdflayout.debug
Class PLDebugLog
- java.lang.Object
-
- com.helger.pdflayout.debug.PLDebugLog
-
@NotThreadSafe public final class PLDebugLog extends Object
This class allows for some debug logging on PDF creation.- Author:
- Philip Helger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePLDebugLog.IPLDebugOutputDebug log output abstraction.static classPLDebugLog.PLDebugOutputLoggerDefault implementation ofPLDebugLog.IPLDebugOutputusing an SLF4J logger.
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_DEBUG
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddebugFont(String sFontID, String sMsg)static voiddebugPrepare(IPLObject<?> aElement, String sMsg)static voiddebugRender(IPLObject<?> aElement, String sMsg)static voiddebugSplit(IPLObject<?> aElement, String sMsg)static voiddebugText(IPLObject<?> aElement, String sMsg)static PLDebugLog.IPLDebugOutputgetDebugOutput()static StringgetWH(float fWidth, float fHeight)static StringgetWH(SizeSpec aSize)static StringgetXMBP(IPLHasMarginBorderPadding<?> aElement)static StringgetXY(float fX, float fY)static StringgetXYWH(float fLeft, float fTop, float fWidth, float fHeight)static StringgetYMBP(IPLHasMarginBorderPadding<?> aElement)static booleanisDebugFont()static booleanisDebugPrepare()static booleanisDebugRender()static booleanisDebugSplit()static booleanisDebugText()static voidsetDebugAll(boolean bDebug)Shortcut to globally en- or disable debuggingstatic voidsetDebugFont(boolean bDebugFont)static voidsetDebugOutput(PLDebugLog.IPLDebugOutput aDebugOutput)static voidsetDebugPrepare(boolean bDebugPrepare)static voidsetDebugRender(boolean bDebugRender)static voidsetDebugSplit(boolean bDebugSplit)static voidsetDebugText(boolean bDebugText)
-
-
-
Field Detail
-
DEFAULT_DEBUG
public static final boolean DEFAULT_DEBUG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDebugOutput
@Nonnull public static PLDebugLog.IPLDebugOutput getDebugOutput()
-
setDebugOutput
public static void setDebugOutput(@Nonnull PLDebugLog.IPLDebugOutput aDebugOutput)
-
isDebugText
public static boolean isDebugText()
-
setDebugText
public static void setDebugText(boolean bDebugText)
-
isDebugFont
public static boolean isDebugFont()
-
setDebugFont
public static void setDebugFont(boolean bDebugFont)
-
isDebugSplit
public static boolean isDebugSplit()
-
setDebugSplit
public static void setDebugSplit(boolean bDebugSplit)
-
isDebugPrepare
public static boolean isDebugPrepare()
-
setDebugPrepare
public static void setDebugPrepare(boolean bDebugPrepare)
-
isDebugRender
public static boolean isDebugRender()
-
setDebugRender
public static void setDebugRender(boolean bDebugRender)
-
setDebugAll
public static void setDebugAll(boolean bDebug)
Shortcut to globally en- or disable debugging- Parameters:
bDebug-trueto enable debug output- See Also:
setDebugFont(boolean),setDebugPrepare(boolean),setDebugRender(boolean),setDebugRender(boolean),setDebugText(boolean)
-
getXYWH
@Nonnull public static String getXYWH(float fLeft, float fTop, float fWidth, float fHeight)
-
getXMBP
@Nonnull public static String getXMBP(@Nonnull IPLHasMarginBorderPadding<?> aElement)
-
getYMBP
@Nonnull public static String getYMBP(@Nonnull IPLHasMarginBorderPadding<?> aElement)
-
-