@NotThreadSafe public final class PLDebug extends Object
| Modifier and Type | Field and Description |
|---|---|
static Color |
BORDER_COLOR_ELEMENT
green
|
static Color |
BORDER_COLOR_HBOX
blue
|
static Color |
BORDER_COLOR_PAGESET
red
|
static Color |
BORDER_COLOR_VBOX
pink
|
| Modifier and Type | Method and Description |
|---|---|
static void |
debugFont(String sFontID,
String sMsg) |
static void |
debugPrepare(IPLObject<?> aElement,
String sMsg) |
static void |
debugRender(IPLObject<?> aElement,
String sMsg) |
static void |
debugSplit(IPLObject<?> aElement,
String sMsg) |
static void |
debugText(IPLObject<?> aElement,
String sMsg) |
static String |
getWH(float fWidth,
float fHeight) |
static String |
getXMBP(IPLHasMarginBorderPadding<?> aElement) |
static String |
getXY(float fX,
float fY) |
static String |
getXYWH(float fLeft,
float fTop,
float fWidth,
float fHeight) |
static String |
getYMBP(IPLHasMarginBorderPadding<?> aElement) |
static boolean |
isDebugFont() |
static boolean |
isDebugPrepare() |
static boolean |
isDebugRender() |
static boolean |
isDebugSplit() |
static boolean |
isDebugText() |
static void |
setDebugAll(boolean bDebug)
Shortcut to globally en- or disable debugging
|
static void |
setDebugFont(boolean bDebugFont) |
static void |
setDebugPrepare(boolean bDebugPrepare) |
static void |
setDebugRender(boolean bDebugRender) |
static void |
setDebugSplit(boolean bDebugSplit) |
static void |
setDebugText(boolean bDebugText) |
public static final Color BORDER_COLOR_PAGESET
public static final Color BORDER_COLOR_ELEMENT
public static final Color BORDER_COLOR_HBOX
public static final Color BORDER_COLOR_VBOX
public static boolean isDebugText()
public static void setDebugText(boolean bDebugText)
public static boolean isDebugFont()
public static void setDebugFont(boolean bDebugFont)
public static boolean isDebugSplit()
public static void setDebugSplit(boolean bDebugSplit)
public static boolean isDebugPrepare()
public static void setDebugPrepare(boolean bDebugPrepare)
public static boolean isDebugRender()
public static void setDebugRender(boolean bDebugRender)
public static void setDebugAll(boolean bDebug)
bDebug - true to enable debug output@Nonnull public static String getXMBP(@Nonnull IPLHasMarginBorderPadding<?> aElement)
@Nonnull public static String getYMBP(@Nonnull IPLHasMarginBorderPadding<?> aElement)
Copyright © 2014–2016 Philip Helger. All rights reserved.