Class DefaultTextExtractor
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
- org.pentaho.reporting.engine.classic.core.modules.output.table.base.DefaultTextExtractor
-
- Direct Known Subclasses:
ExcelTextExtractor
,HtmlTextExtractor
,RTFTextExtractor
public class DefaultTextExtractor extends IterateStructuralProcessStep
Creation-Date: 02.11.2007, 14:14:23- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description DefaultTextExtractor(OutputProcessorMetaData metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEmptyBreak()
protected void
addLinebreak()
protected void
addSoftBreak()
protected void
clearText()
Object
compute(RenderBox box)
protected void
drawComplexText(RenderableComplexText renderableComplexText)
protected void
drawText(RenderableText renderableText, long contentX2)
Renders the glyphs stored in the text node.protected org.pentaho.reporting.libraries.fonts.encoding.CodePointBuffer
getCodePointBuffer()
protected RenderNode
getDeepestLastChild(RenderBox lineBox)
String
getFormattedtext()
protected StrictBounds
getParagraphBounds()
Object
getRawResult()
RenderNode
getRawSource()
String
getText()
int
getTextLength()
protected boolean
isContentField(RenderBox box)
boolean
isOverflowX()
boolean
isOverflowY()
boolean
isTextLineOverflow()
protected void
processOtherNode(RenderNode node)
protected void
processParagraphChilds(ParagraphRenderBox box)
protected void
processRenderableContent(RenderableReplacedContentBox box)
protected void
processTextLine(RenderBox lineBox, long contentAreaX1, long contentAreaX2)
protected void
setRawResult(Object rawResult)
protected boolean
startAutoBox(RenderBox box)
protected boolean
startBlockBox(BlockRenderBox box)
protected boolean
startCanvasBox(CanvasRenderBox box)
protected boolean
startInlineBox(InlineRenderBox box)
protected boolean
startOtherBox(RenderBox box)
protected boolean
startRowBox(RenderBox box)
protected boolean
startTableBox(TableRenderBox box)
protected boolean
startTableCellBox(TableCellRenderBox box)
protected boolean
startTableColumnGroupBox(TableColumnGroupNode box)
protected boolean
startTableRowBox(TableRowRenderBox box)
protected boolean
startTableSectionBox(TableSectionRenderBox box)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
finishAutoBox, finishBlockBox, finishCanvasBox, finishInlineBox, finishOtherBox, finishRowBox, finishTableBox, finishTableCellBox, finishTableColumnGroupBox, finishTableRowBox, finishTableSectionBox, processBoxChilds, processTableColumn, startProcessing
-
-
-
-
Constructor Detail
-
DefaultTextExtractor
public DefaultTextExtractor(OutputProcessorMetaData metaData)
-
-
Method Detail
-
getCodePointBuffer
protected org.pentaho.reporting.libraries.fonts.encoding.CodePointBuffer getCodePointBuffer()
-
getFormattedtext
public String getFormattedtext()
-
processOtherNode
protected void processOtherNode(RenderNode node)
- Overrides:
processOtherNode
in classIterateStructuralProcessStep
-
drawText
protected void drawText(RenderableText renderableText, long contentX2)
Renders the glyphs stored in the text node.- Parameters:
renderableText
- the text node that should be rendered.contentX2
-
-
drawComplexText
protected void drawComplexText(RenderableComplexText renderableComplexText)
-
startOtherBox
protected boolean startOtherBox(RenderBox box)
- Overrides:
startOtherBox
in classIterateStructuralProcessStep
-
isContentField
protected boolean isContentField(RenderBox box)
-
startCanvasBox
protected boolean startCanvasBox(CanvasRenderBox box)
- Overrides:
startCanvasBox
in classIterateStructuralProcessStep
-
processRenderableContent
protected void processRenderableContent(RenderableReplacedContentBox box)
- Overrides:
processRenderableContent
in classIterateStructuralProcessStep
-
startBlockBox
protected boolean startBlockBox(BlockRenderBox box)
- Overrides:
startBlockBox
in classIterateStructuralProcessStep
-
startRowBox
protected boolean startRowBox(RenderBox box)
- Overrides:
startRowBox
in classIterateStructuralProcessStep
-
getRawSource
public RenderNode getRawSource()
-
startInlineBox
protected boolean startInlineBox(InlineRenderBox box)
- Overrides:
startInlineBox
in classIterateStructuralProcessStep
-
startTableCellBox
protected boolean startTableCellBox(TableCellRenderBox box)
- Overrides:
startTableCellBox
in classIterateStructuralProcessStep
-
startTableRowBox
protected boolean startTableRowBox(TableRowRenderBox box)
- Overrides:
startTableRowBox
in classIterateStructuralProcessStep
-
startTableSectionBox
protected boolean startTableSectionBox(TableSectionRenderBox box)
- Overrides:
startTableSectionBox
in classIterateStructuralProcessStep
-
startTableColumnGroupBox
protected boolean startTableColumnGroupBox(TableColumnGroupNode box)
- Overrides:
startTableColumnGroupBox
in classIterateStructuralProcessStep
-
startTableBox
protected boolean startTableBox(TableRenderBox box)
- Overrides:
startTableBox
in classIterateStructuralProcessStep
-
startAutoBox
protected boolean startAutoBox(RenderBox box)
- Overrides:
startAutoBox
in classIterateStructuralProcessStep
-
processParagraphChilds
protected void processParagraphChilds(ParagraphRenderBox box)
- Overrides:
processParagraphChilds
in classIterateStructuralProcessStep
-
getDeepestLastChild
protected RenderNode getDeepestLastChild(RenderBox lineBox)
-
addEmptyBreak
protected void addEmptyBreak()
-
addSoftBreak
protected void addSoftBreak()
-
addLinebreak
protected void addLinebreak()
-
processTextLine
protected void processTextLine(RenderBox lineBox, long contentAreaX1, long contentAreaX2)
-
getRawResult
public Object getRawResult()
-
setRawResult
protected void setRawResult(Object rawResult)
-
getText
public String getText()
-
getTextLength
public int getTextLength()
-
clearText
protected void clearText()
-
getParagraphBounds
protected StrictBounds getParagraphBounds()
-
isTextLineOverflow
public boolean isTextLineOverflow()
-
isOverflowX
public boolean isOverflowX()
-
isOverflowY
public boolean isOverflowY()
-
-