Class BulletPointCreatorNumeric
- java.lang.Object
-
- com.helger.pdflayout.element.list.AbstractBulletPointCreatorFontBased<BulletPointCreatorNumeric>
-
- com.helger.pdflayout.element.list.BulletPointCreatorNumeric
-
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<BulletPointCreatorNumeric>,IPLHasOutline,IPLHasPadding<BulletPointCreatorNumeric>,IBulletPointCreator
public class BulletPointCreatorNumeric extends AbstractBulletPointCreatorFontBased<BulletPointCreatorNumeric>
An implementation ofIBulletPointCreatorthat uses a customIntFunctionto create a custom formatted text.- Since:
- 5.1.0
- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from interface com.helger.pdflayout.base.IPLHasPadding
DEFAULT_PADDING
-
-
Constructor Summary
Constructors Constructor Description BulletPointCreatorNumeric(IntFunction<String> aFormatter, FontSpec aFontSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPLRenderableObject<?>getBulletPointElement(int nBulletPointIndex)Get the bullet point text for the specified index.StringgetBulletPointText(int nBulletPointIndex)IntFunction<String>getFormatter()-
Methods inherited from class com.helger.pdflayout.element.list.AbstractBulletPointCreatorFontBased
getFontSpec, getPadding, setPadding
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.pdflayout.base.IPLHasPadding
addPaddingBottom, addPaddingLeft, addPaddingRight, addPaddingTop, addPaddingX, addPaddingY, getOutlineBottom, getOutlineLeft, getOutlineRight, getOutlineTop, getOutlineXSum, getOutlineYSum, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingXSum, getPaddingYSum, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPaddingX, setPaddingY
-
-
-
-
Constructor Detail
-
BulletPointCreatorNumeric
public BulletPointCreatorNumeric(@Nonnull IntFunction<String> aFormatter, @Nonnull FontSpec aFontSpec)
-
-
Method Detail
-
getFormatter
@Nonnull public final IntFunction<String> getFormatter()
-
getBulletPointText
@Nonnull public String getBulletPointText(@Nonnegative int nBulletPointIndex)
-
getBulletPointElement
@Nonnull public IPLRenderableObject<?> getBulletPointElement(@Nonnegative int nBulletPointIndex)
Description copied from interface:IBulletPointCreatorGet the bullet point text for the specified index.- Parameters:
nBulletPointIndex- The 0-based index of the bullet point to be created.- Returns:
- A non-
nullbut maybe empty.
-
-