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 of
IBulletPointCreator that uses a custom
IntFunction to 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
ConstructorsConstructorDescriptionBulletPointCreatorNumeric(IntFunction<String> aFormatter, FontSpec aFontSpec) -
Method Summary
Modifier and TypeMethodDescriptiongetBulletPointElement(int nBulletPointIndex) Get the bullet point text for the specified index.getBulletPointText(int nBulletPointIndex) final IntFunction<String>Methods inherited from class com.helger.pdflayout.element.list.AbstractBulletPointCreatorFontBased
getFontSpec, getPadding, setPaddingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods 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 Details
-
BulletPointCreatorNumeric
public BulletPointCreatorNumeric(@Nonnull IntFunction<String> aFormatter, @Nonnull FontSpec aFontSpec)
-
-
Method Details
-
getFormatter
-
getBulletPointText
-
getBulletPointElement
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.
-