org.pz.platypus.plugin.pdf.commands
Class PdfBulletListPlainStartWithOptions

java.lang.Object
  extended by org.pz.platypus.commands.BulletListPlainStartWithOptions
      extended by 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

Constructor Summary
PdfBulletListPlainStartWithOptions()
           
 
Method Summary
private  void errorBulletSymbolNotFound(GDD gdd, Token tok)
           
private  void errorInvalidOption(GDD gdd, Token tok)
           
private  void errorUnclosedOption(GDD gdd, Token tok)
           
(package private)  com.lowagie.text.Chunk extractBulletSymbolFromParam(java.lang.String param)
          extracts a literal that serves as the bullet character (e.g.
(package private)  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.
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.
 
Methods inherited from class org.pz.platypus.commands.BulletListPlainStartWithOptions
getRoot, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfBulletListPlainStartWithOptions

public PdfBulletListPlainStartWithOptions()
Method Detail

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 data
tok - token containing bullet list options
tokNum - 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:" parameter
pdd - the PDF document data
tok - 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