Class PdfLogicalPageDrawable
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
- org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
- org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.internal.PdfLogicalPageDrawable
-
- All Implemented Interfaces:
PageDrawable
public class PdfLogicalPageDrawable extends LogicalPageDrawable
Creation-Date: 17.07.2007, 18:41:46- Author:
- Thomas Morgner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PdfLogicalPageDrawable.PdfTextSpec
-
Nested classes/interfaces inherited from class org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
LogicalPageDrawable.TextSpec
-
-
Field Summary
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
DEFAULT_STROKE
-
-
Constructor Summary
Constructors Constructor Description PdfLogicalPageDrawable(com.lowagie.text.pdf.PdfWriter writer, org.pentaho.reporting.libraries.base.util.LFUMap<org.pentaho.reporting.libraries.resourceloader.ResourceKey,com.lowagie.text.Image> imageCache, char version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Graphics2D graphics, Rectangle2D area)
Draws the object.protected void
drawAnchor(RenderNode content)
To be overriden in the PDF drawable.protected void
drawBookmark(RenderNode box, String bookmark)
protected void
drawComplexText(RenderableComplexText node, Graphics2D g2)
protected void
drawHyperlink(RenderNode box, String target, String window, String title)
protected boolean
drawImage(RenderableReplacedContentBox content, Image image, com.lowagie.text.Image itextImage)
protected void
drawImageMap(RenderableReplacedContentBox content)
protected boolean
drawPdfScript(RenderNode box)
protected void
drawReplacedContent(RenderableReplacedContentBox content)
protected void
drawText(RenderableText renderableText, long contentX2)
Renders the glyphs stored in the text node.protected void
finishInlineBox(InlineRenderBox box)
protected float
getGlobalHeight()
PdfOutputProcessorMetaData
getMetaData()
void
init(LogicalPageBox rootBox, OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
void
init(LogicalPageBox rootBox, PdfOutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, PhysicalPageBox page)
protected void
processLinksAndAnchors(RenderNode box)
protected void
processParagraphChilds(ParagraphRenderBox box)
protected boolean
startInlineBox(InlineRenderBox box)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
clearClipping, clip, configureGraphics, configureStroke, createClipRect, drawDrawable, drawImage, drawOutlineBox, drawText, finishTableBox, finishTableSectionBox, getBoxArea, getCodePointBuffer, getContentAreaX1, getContentAreaX2, getDrawArea, getGraphics, getHeight, getLogicalPageBox, getNodesAt, getNodesAt, getPageFormat, getPreferredSize, getResourceManager, getRootBox, getTextSpec, getWidth, isClipOnWordBoundary, isDrawPageBackground, isIgnoreBorderWhenDrawingOutline, isNormalTextSpacing, isOutlineMode, isPreserveAspectRatio, isTextLineOverflow, processOtherNode, processRenderableContent, processRootBand, processTextLine, renderBoxBorderAndBackground, setContentAreaX1, setContentAreaX2, setDrawArea, setDrawPageBackground, setOutlineMode, setTextLineOverflow, setTextSpec, startAutoBox, startBlockBox, startBox, startCanvasBox, startRowBox, startTableBox, startTableCellBox, startTableColumnGroupBox, startTableRowBox, startTableSectionBox
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
finishAutoBox, finishBlockBox, finishCanvasBox, finishOtherBox, finishRowBox, finishTableCellBox, finishTableColumnGroupBox, finishTableRowBox, processBoxChilds, processTableColumn, startOtherBox, startProcessing
-
-
-
-
Method Detail
-
init
public void init(LogicalPageBox rootBox, OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
- Overrides:
init
in classLogicalPageDrawable
-
init
public void init(LogicalPageBox rootBox, PdfOutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, PhysicalPageBox page)
-
getMetaData
public PdfOutputProcessorMetaData getMetaData()
- Overrides:
getMetaData
in classLogicalPageDrawable
-
getGlobalHeight
protected float getGlobalHeight()
-
draw
public void draw(Graphics2D graphics, Rectangle2D area)
Draws the object.- Specified by:
draw
in interfacePageDrawable
- Overrides:
draw
in classLogicalPageDrawable
- Parameters:
graphics
- the graphics device.area
- the area inside which the object should be drawn.
-
processLinksAndAnchors
protected void processLinksAndAnchors(RenderNode box)
- Overrides:
processLinksAndAnchors
in classLogicalPageDrawable
-
drawPdfScript
protected boolean drawPdfScript(RenderNode box)
-
drawAnchor
protected void drawAnchor(RenderNode content)
Description copied from class:LogicalPageDrawable
To be overriden in the PDF drawable.- Overrides:
drawAnchor
in classLogicalPageDrawable
- Parameters:
content
- the render-node that defines the anchor.
-
drawBookmark
protected void drawBookmark(RenderNode box, String bookmark)
- Overrides:
drawBookmark
in classLogicalPageDrawable
-
drawHyperlink
protected void drawHyperlink(RenderNode box, String target, String window, String title)
- Overrides:
drawHyperlink
in classLogicalPageDrawable
-
drawText
protected void drawText(RenderableText renderableText, long contentX2)
Description copied from class:LogicalPageDrawable
Renders the glyphs stored in the text node.- Overrides:
drawText
in classLogicalPageDrawable
- Parameters:
renderableText
- the text node that should be rendered.
-
processParagraphChilds
protected void processParagraphChilds(ParagraphRenderBox box)
- Overrides:
processParagraphChilds
in classLogicalPageDrawable
-
drawComplexText
protected void drawComplexText(RenderableComplexText node, Graphics2D g2)
- Overrides:
drawComplexText
in classLogicalPageDrawable
-
startInlineBox
protected boolean startInlineBox(InlineRenderBox box)
- Overrides:
startInlineBox
in classLogicalPageDrawable
-
finishInlineBox
protected void finishInlineBox(InlineRenderBox box)
- Overrides:
finishInlineBox
in classLogicalPageDrawable
-
drawReplacedContent
protected void drawReplacedContent(RenderableReplacedContentBox content)
- Overrides:
drawReplacedContent
in classLogicalPageDrawable
-
drawImageMap
protected void drawImageMap(RenderableReplacedContentBox content)
-
drawImage
protected boolean drawImage(RenderableReplacedContentBox content, Image image, com.lowagie.text.Image itextImage)
-
-