public class PageNumberDecoratorProcessor extends Object implements DocumentProcessor
Modifier and Type | Class and Description |
---|---|
static class |
PageNumberDecoratorProcessor.HorizontalAlignment |
static class |
PageNumberDecoratorProcessor.VerticalAlignment |
static class |
PageNumberDecoratorProcessor.ZPosition |
DocumentProcessor.ProcessingPhase
Modifier and Type | Field and Description |
---|---|
static String |
PATTERN_CURRENT_PAGE_NUMBER |
static String |
PATTERN_NUMBER_OF_PAGES |
Constructor and Description |
---|
PageNumberDecoratorProcessor() |
public static final String PATTERN_CURRENT_PAGE_NUMBER
public static final String PATTERN_NUMBER_OF_PAGES
public String getTemplate()
public void setTemplate(String template)
template
- the template to setpublic PageNumberDecoratorProcessor.HorizontalAlignment getHorizontalAlignment()
public void setHorizontalAlignment(PageNumberDecoratorProcessor.HorizontalAlignment horizontalAlignment)
public PageNumberDecoratorProcessor.VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(PageNumberDecoratorProcessor.VerticalAlignment verticalAlignment)
public float getTextOrientation()
public void setTextOrientation(float textOrientation)
textOrientation
- the textOrientation to setpublic PageNumberDecoratorProcessor.ZPosition getPosition()
public void setPosition(PageNumberDecoratorProcessor.ZPosition position)
public float getPadding()
public void setPadding(float padding)
public float getMargin()
public void setMargin(float margin)
public Font getFont()
public void setFont(Font font)
public Color getTextColor()
public void setTextColor(Color textColor)
public Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public float getBorderWidth()
public void setBorderWidth(float borderWidth)
public void process(ReshapeWorker worker, DocumentProcessor.ProcessingPhase phase, com.levigo.jadice.document.Document document)
DocumentProcessor
Document
process
in interface DocumentProcessor
worker
- The context in which the processing happensphase
- The current DocumentProcessor.ProcessingPhase
document
- The Document
that shall be reshapedpublic DocumentProcessor.ProcessingPhase getAffectedPhase()
public void setAffectedPhase(DocumentProcessor.ProcessingPhase affectedPhase)
Copyright © 2017 levigo holding gmbh. All rights reserved.