org.pz.platypus.plugin.pdf.commands
Class PdfBulletListPlainStartWithOptions
java.lang.Object
org.pz.platypus.commands.BulletListPlainStartWithOptions
org.pz.platypus.plugin.pdf.commands.PdfBulletListPlainStartWithOptions
- All Implemented Interfaces:
- IOutputCommand
public class PdfBulletListPlainStartWithOptions
- extends BulletListPlainStartWithOptions
Implementation of turning on a plain bullet list with user-specified
options in the PDF plugin
- Author:
- alb
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PdfBulletListPlainStartWithOptions
public PdfBulletListPlainStartWithOptions()
startNewList
protected int startNewList(IOutputContext context,
Token tok,
int tokNum)
- Extracts the bullet character/symbol from the passed parameter and starts a bullet
list using it.
- Specified by:
startNewList
in class BulletListPlainStartWithOptions
- Parameters:
context
- the PDF datatok
- token containing bullet list optionstokNum
- number in the token stream
- Returns:
- number of additional tokens consumed
lookupBulletSymbol
com.lowagie.text.Chunk lookupBulletSymbol(java.lang.String param,
Token tok,
PdfData pdd)
- Look up the symbol in the symbol table and get the Unicode value and any symbol font info.
- Parameters:
param
- value passed with the "bullet:" parameterpdd
- the PDF document datatok
- the token for the whole bullet list command
- Returns:
- Chunk containing for the bullet symbol
extractBulletSymbolFromParam
com.lowagie.text.Chunk extractBulletSymbolFromParam(java.lang.String param)
- extracts a literal that serves as the bullet character (e.g. -, >, ->, etc.)
- Parameters:
param
- parameter portion that specifies the bullet character
- Returns:
- bullet character as a string.
errorInvalidOption
private void errorInvalidOption(GDD gdd,
Token tok)
errorUnclosedOption
private void errorUnclosedOption(GDD gdd,
Token tok)
errorBulletSymbolNotFound
private void errorBulletSymbolNotFound(GDD gdd,
Token tok)
Copyright © 2008-10 Pacific Data Works LLC