Package com.helger.pdflayout.debug
Class PLDebugLog
java.lang.Object
com.helger.pdflayout.debug.PLDebugLog
This class allows for some debug logging on PDF creation.
- Author:
- Philip Helger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDebug log output abstraction.static classDefault implementation ofPLDebugLog.IPLDebugOutputusing an SLF4J logger. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddebugPrepare(IPLObject<?> aElement, String sMsg) static voiddebugRender(IPLObject<?> aElement, String sMsg) static voiddebugSplit(IPLObject<?> aElement, String sMsg) static voidstatic PLDebugLog.IPLDebugOutputstatic StringgetWH(float fWidth, float fHeight) static Stringstatic StringgetXMBP(IPLHasMarginBorderPadding<?> aElement) static StringgetXY(float fX, float fY) static StringgetXYWH(float fLeft, float fTop, float fWidth, float fHeight) static StringgetYMBP(IPLHasMarginBorderPadding<?> aElement) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic 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 Details
-
DEFAULT_DEBUG
public static final boolean DEFAULT_DEBUG- See Also:
-
-
Method Details
-
getDebugOutput
-
setDebugOutput
-
isDebugText
public static boolean isDebugText() -
setDebugText
public static void setDebugText(boolean bDebugText) -
debugText
-
isDebugFont
public static boolean isDebugFont() -
setDebugFont
public static void setDebugFont(boolean bDebugFont) -
debugFont
-
isDebugSplit
public static boolean isDebugSplit() -
setDebugSplit
public static void setDebugSplit(boolean bDebugSplit) -
debugSplit
-
isDebugPrepare
public static boolean isDebugPrepare() -
setDebugPrepare
public static void setDebugPrepare(boolean bDebugPrepare) -
debugPrepare
-
isDebugRender
public static boolean isDebugRender() -
setDebugRender
public static void setDebugRender(boolean bDebugRender) -
debugRender
-
setDebugAll
public static void setDebugAll(boolean bDebug) Shortcut to globally en- or disable debugging- Parameters:
bDebug-trueto enable debug output- See Also:
-
getXY
-
getWH
-
getWH
-
getXYWH
-
getXMBP
-
getYMBP
-