Class PageNumberDecoratorProcessor
- java.lang.Object
-
- com.levigo.jadice.server.documentplatform.PageNumberDecoratorProcessor
-
- All Implemented Interfaces:
DocumentProcessor
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class PageNumberDecoratorProcessor extends Object implements DocumentProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PageNumberDecoratorProcessor.HorizontalAlignment
static class
PageNumberDecoratorProcessor.VerticalAlignment
static class
PageNumberDecoratorProcessor.ZPosition
-
Nested classes/interfaces inherited from interface com.levigo.jadice.server.documentplatform.DocumentProcessor
DocumentProcessor.ProcessingPhase
-
-
Field Summary
Fields Modifier and Type Field Description static String
PATTERN_CURRENT_PAGE_NUMBER
static String
PATTERN_NUMBER_OF_PAGES
-
Constructor Summary
Constructors Constructor Description PageNumberDecoratorProcessor()
-
Method Summary
-
-
-
Field Detail
-
PATTERN_CURRENT_PAGE_NUMBER
public static final String PATTERN_CURRENT_PAGE_NUMBER
- See Also:
- Constant Field Values
-
PATTERN_NUMBER_OF_PAGES
public static final String PATTERN_NUMBER_OF_PAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTemplate
public String getTemplate()
- Returns:
- the template
-
setTemplate
public void setTemplate(String template)
- Parameters:
template
- the template to set
-
getHorizontalAlignment
public PageNumberDecoratorProcessor.HorizontalAlignment getHorizontalAlignment()
-
setHorizontalAlignment
public void setHorizontalAlignment(PageNumberDecoratorProcessor.HorizontalAlignment horizontalAlignment)
-
getVerticalAlignment
public PageNumberDecoratorProcessor.VerticalAlignment getVerticalAlignment()
-
setVerticalAlignment
public void setVerticalAlignment(PageNumberDecoratorProcessor.VerticalAlignment verticalAlignment)
-
getTextOrientation
public float getTextOrientation()
- Returns:
- the textOrientation
-
setTextOrientation
public void setTextOrientation(float textOrientation)
- Parameters:
textOrientation
- the textOrientation to set
-
getPosition
public PageNumberDecoratorProcessor.ZPosition getPosition()
-
setPosition
public void setPosition(PageNumberDecoratorProcessor.ZPosition position)
-
getPadding
public float getPadding()
-
setPadding
public void setPadding(float padding)
-
getMargin
public float getMargin()
-
setMargin
public void setMargin(float margin)
-
getFont
public com.levigo.jadice.document.font.Font getFont()
-
setFont
public void setFont(com.levigo.jadice.document.font.Font font)
-
getTextColor
public Color getTextColor()
-
setTextColor
public void setTextColor(Color textColor)
-
getBackgroundColor
public Color getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(Color backgroundColor)
-
getBorderColor
public Color getBorderColor()
-
setBorderColor
public void setBorderColor(Color borderColor)
-
getBorderWidth
public float getBorderWidth()
-
setBorderWidth
public void setBorderWidth(float borderWidth)
-
process
public void process(ReshapeWorker worker, DocumentProcessor.ProcessingPhase phase, com.levigo.jadice.document.Document document)
Description copied from interface:DocumentProcessor
Process (and manipulate) the given jadiceDocument
- Specified by:
process
in interfaceDocumentProcessor
- Parameters:
worker
- The context in which the processing happensphase
- The currentDocumentProcessor.ProcessingPhase
document
- TheDocument
that shall be reshaped
-
process
public void process(com.levigo.jadice.document.Document document)
-
getAffectedPhase
public DocumentProcessor.ProcessingPhase getAffectedPhase()
-
setAffectedPhase
public void setAffectedPhase(DocumentProcessor.ProcessingPhase affectedPhase)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getFontSize
public double getFontSize()
-
setFontSize
public void setFontSize(double fontSize)
-
-