Class DesignerPageDrawable
- 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.designer.core.editor.report.DesignerPageDrawable
-
- All Implemented Interfaces:
org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PageDrawable
public class DesignerPageDrawable extends org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
-
Constructor Summary
Constructors Constructor Description DesignerPageDrawable(org.pentaho.reporting.engine.classic.core.layout.model.LogicalPageBox rootBox, org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.engine.classic.core.Section section)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Graphics2D g2, Rectangle2D area)
Draws the object.protected void
drawOutlineBox(Graphics2D g2, org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
protected void
finishAutoBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
protected void
finishBlockBox(org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox box)
protected void
finishCanvasBox(org.pentaho.reporting.engine.classic.core.layout.model.CanvasRenderBox box)
protected void
finishInlineBox(org.pentaho.reporting.engine.classic.core.layout.model.InlineRenderBox box)
protected void
finishOtherBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
protected void
finishRowBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
protected void
finishTableBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRenderBox box)
protected void
finishTableCellBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableCellRenderBox box)
protected void
finishTableRowBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox box)
protected void
finishTableSectionBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableSectionRenderBox box)
org.pentaho.reporting.engine.classic.core.layout.model.RenderNode[]
getNodesAt(double x, double y, double width, double height, String namespace, String name)
org.pentaho.reporting.engine.classic.core.layout.model.RenderNode[]
getNodesAt(double x, double y, String namespace, String name)
Retries the nodes under the given coordinate which have a given attribute set.org.pentaho.reporting.engine.classic.core.util.geom.StrictBounds
getRootElementBounds()
protected boolean
isIgnoreBorderWhenDrawingOutline()
protected void
processOtherNode(org.pentaho.reporting.engine.classic.core.layout.model.RenderNode node)
protected void
processParagraphChilds(org.pentaho.reporting.engine.classic.core.layout.model.ParagraphRenderBox box)
protected void
processRenderableContent(org.pentaho.reporting.engine.classic.core.layout.model.RenderableReplacedContentBox box)
protected void
processRootBand(org.pentaho.reporting.engine.classic.core.util.geom.StrictBounds pageBounds)
protected boolean
startAutoBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
protected boolean
startBlockBox(org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox box)
protected boolean
startBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
boolean
startCanvasBox(org.pentaho.reporting.engine.classic.core.layout.model.CanvasRenderBox box)
protected boolean
startInlineBox(org.pentaho.reporting.engine.classic.core.layout.model.InlineRenderBox box)
protected boolean
startOtherBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
protected boolean
startRowBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
protected boolean
startTableBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRenderBox box)
protected boolean
startTableCellBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableCellRenderBox box)
protected boolean
startTableRowBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox box)
protected boolean
startTableSectionBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableSectionRenderBox box)
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
clearClipping, clip, configureGraphics, configureStroke, createClipRect, drawAnchor, drawBookmark, drawComplexText, drawDrawable, drawHyperlink, drawImage, drawReplacedContent, drawText, drawText, getBoxArea, getCodePointBuffer, getContentAreaX1, getContentAreaX2, getDrawArea, getGraphics, getHeight, getLogicalPageBox, getMetaData, getPageFormat, getPreferredSize, getResourceManager, getRootBox, getTextSpec, getWidth, init, isClipOnWordBoundary, isDrawPageBackground, isNormalTextSpacing, isOutlineMode, isPreserveAspectRatio, isTextLineOverflow, processLinksAndAnchors, processTextLine, renderBoxBorderAndBackground, setContentAreaX1, setContentAreaX2, setDrawArea, setDrawPageBackground, setOutlineMode, setTextLineOverflow, setTextSpec, startTableColumnGroupBox
-
-
-
-
Constructor Detail
-
DesignerPageDrawable
public DesignerPageDrawable(org.pentaho.reporting.engine.classic.core.layout.model.LogicalPageBox rootBox, org.pentaho.reporting.engine.classic.core.layout.output.OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, org.pentaho.reporting.engine.classic.core.Section section)
-
-
Method Detail
-
getRootElementBounds
public org.pentaho.reporting.engine.classic.core.util.geom.StrictBounds getRootElementBounds()
-
draw
public void draw(Graphics2D g2, Rectangle2D area)
Draws the object.- Specified by:
draw
in interfaceorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PageDrawable
- Overrides:
draw
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
- Parameters:
g2
- the graphics device.area
- the area inside which the object should be drawn. This is the clipping area for the page.
-
processRootBand
protected void processRootBand(org.pentaho.reporting.engine.classic.core.util.geom.StrictBounds pageBounds)
- Overrides:
processRootBand
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
startBox
protected boolean startBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
startBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
startCanvasBox
public boolean startCanvasBox(org.pentaho.reporting.engine.classic.core.layout.model.CanvasRenderBox box)
- Overrides:
startCanvasBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishCanvasBox
protected void finishCanvasBox(org.pentaho.reporting.engine.classic.core.layout.model.CanvasRenderBox box)
- Overrides:
finishCanvasBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
startBlockBox
protected boolean startBlockBox(org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox box)
- Overrides:
startBlockBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishBlockBox
protected void finishBlockBox(org.pentaho.reporting.engine.classic.core.layout.model.BlockRenderBox box)
- Overrides:
finishBlockBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
startRowBox
protected boolean startRowBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
startRowBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishRowBox
protected void finishRowBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
finishRowBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
startInlineBox
protected boolean startInlineBox(org.pentaho.reporting.engine.classic.core.layout.model.InlineRenderBox box)
- Overrides:
startInlineBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishInlineBox
protected void finishInlineBox(org.pentaho.reporting.engine.classic.core.layout.model.InlineRenderBox box)
- Overrides:
finishInlineBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
startTableCellBox
protected boolean startTableCellBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableCellRenderBox box)
- Overrides:
startTableCellBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishTableCellBox
protected void finishTableCellBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableCellRenderBox box)
- Overrides:
finishTableCellBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
startTableRowBox
protected boolean startTableRowBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox box)
- Overrides:
startTableRowBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishTableRowBox
protected void finishTableRowBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRowRenderBox box)
- Overrides:
finishTableRowBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
startTableSectionBox
protected boolean startTableSectionBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableSectionRenderBox box)
- Overrides:
startTableSectionBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishTableSectionBox
protected void finishTableSectionBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableSectionRenderBox box)
- Overrides:
finishTableSectionBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
startTableBox
protected boolean startTableBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRenderBox box)
- Overrides:
startTableBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishTableBox
protected void finishTableBox(org.pentaho.reporting.engine.classic.core.layout.model.table.TableRenderBox box)
- Overrides:
finishTableBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
startOtherBox
protected boolean startOtherBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
startOtherBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
finishOtherBox
protected void finishOtherBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
finishOtherBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
startAutoBox
protected boolean startAutoBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
startAutoBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
finishAutoBox
protected void finishAutoBox(org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
finishAutoBox
in classorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
-
processOtherNode
protected void processOtherNode(org.pentaho.reporting.engine.classic.core.layout.model.RenderNode node)
- Overrides:
processOtherNode
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
processRenderableContent
protected void processRenderableContent(org.pentaho.reporting.engine.classic.core.layout.model.RenderableReplacedContentBox box)
- Overrides:
processRenderableContent
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
processParagraphChilds
protected void processParagraphChilds(org.pentaho.reporting.engine.classic.core.layout.model.ParagraphRenderBox box)
- Overrides:
processParagraphChilds
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
getNodesAt
public org.pentaho.reporting.engine.classic.core.layout.model.RenderNode[] getNodesAt(double x, double y, String namespace, String name)
Retries the nodes under the given coordinate which have a given attribute set. If name and namespace are null, all nodes are returned. The nodes returned are listed in their respective hierarchical order.- Specified by:
getNodesAt
in interfaceorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PageDrawable
- Overrides:
getNodesAt
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
- Parameters:
x
- the x coordinatey
- the y coordinatenamespace
- the namespace on which to filter onname
- the name on which to filter on- Returns:
- the ordered list of nodes.
-
getNodesAt
public org.pentaho.reporting.engine.classic.core.layout.model.RenderNode[] getNodesAt(double x, double y, double width, double height, String namespace, String name)
- Specified by:
getNodesAt
in interfaceorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.PageDrawable
- Overrides:
getNodesAt
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
isIgnoreBorderWhenDrawingOutline
protected boolean isIgnoreBorderWhenDrawingOutline()
- Overrides:
isIgnoreBorderWhenDrawingOutline
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
drawOutlineBox
protected void drawOutlineBox(Graphics2D g2, org.pentaho.reporting.engine.classic.core.layout.model.RenderBox box)
- Overrides:
drawOutlineBox
in classorg.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
-
-