@Immutable public final class PLRenderHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
renderBorder(IPLObject<?> aElement,
PDPageContentStreamWithCache aContentStream,
float fLeft,
float fTop,
float fWidth,
float fHeight,
BorderSpec aBorder)
Render a single border
|
static boolean |
shouldApplyDebugBorder(BorderSpec aBorder,
boolean bDebug)
Should a debug border be drawn?
|
public static boolean shouldApplyDebugBorder(@Nonnull BorderSpec aBorder, boolean bDebug)
aBorder - The element border. May not be null.bDebug - true if debug mode is enabledtrue if a debug border should be drawnpublic static void renderBorder(@Nonnull IPLObject<?> aElement, @Nonnull PDPageContentStreamWithCache aContentStream, float fLeft, float fTop, float fWidth, float fHeight, @Nonnull BorderSpec aBorder) throws IOException
aElement - The element currently rendered. May not be null.aContentStream - Content streamfLeft - Left position (including left border width)fTop - Top position (including top border width)fWidth - Width (excluding left and right border width)fHeight - Height (excluding top and bottom border width)aBorder - Border to use. May not be null.IOException - In case of a PDFBox errorCopyright © 2014–2016 Philip Helger. All rights reserved.