Class AbstractElementRenderer
- java.lang.Object
-
- org.pentaho.reporting.designer.core.editor.report.layouting.AbstractElementRenderer
-
- All Implemented Interfaces:
ElementRenderer
- Direct Known Subclasses:
CrosstabRenderer
,RootBandRenderer
public abstract class AbstractElementRenderer extends Object implements ElementRenderer
- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractElementRenderer(org.pentaho.reporting.engine.classic.core.Section element, ReportDocumentContext reportRenderContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(ChangeListener changeListener)
void
dispose()
boolean
draw(Graphics2D graphics2D)
void
fireChangeEvent()
Rectangle2D
getBounds()
org.pentaho.reporting.engine.classic.core.Section
getElement()
org.pentaho.reporting.engine.classic.core.Element[]
getElementsAt(double x, double y)
org.pentaho.reporting.engine.classic.core.Element[]
getElementsAt(double x, double y, double width, double height)
org.pentaho.reporting.engine.classic.core.metadata.ElementType
getElementType()
long[]
getHorizontalEdgePositionKeys()
BreakPositionsList
getHorizontalEdgePositions()
double
getLayoutHeight()
protected DesignerPageDrawable
getLogicalPageDrawable()
ReportDocumentContext
getReportRenderContext()
org.pentaho.reporting.engine.classic.core.util.InstanceID
getRepresentationId()
org.pentaho.reporting.engine.classic.core.util.geom.StrictBounds
getRootElementBounds()
BreakPositionsList
getVerticalEdgePositions()
LinealModel
getVerticalLinealModel()
double
getVisualHeight()
void
handleError(ReportDesignerContext designerContext, ReportDocumentContext reportContext)
void
invalidateLayout()
boolean
isHideInLayout()
protected Rectangle2D
performLayouting()
void
removeChangeListener(ChangeListener changeListener)
void
setVisualHeight(double visualHeight)
-
-
-
Constructor Detail
-
AbstractElementRenderer
protected AbstractElementRenderer(org.pentaho.reporting.engine.classic.core.Section element, ReportDocumentContext reportRenderContext)
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceElementRenderer
-
getReportRenderContext
public ReportDocumentContext getReportRenderContext()
-
getElement
public org.pentaho.reporting.engine.classic.core.Section getElement()
- Specified by:
getElement
in interfaceElementRenderer
-
getElementType
public org.pentaho.reporting.engine.classic.core.metadata.ElementType getElementType()
- Specified by:
getElementType
in interfaceElementRenderer
-
getRepresentationId
public org.pentaho.reporting.engine.classic.core.util.InstanceID getRepresentationId()
- Specified by:
getRepresentationId
in interfaceElementRenderer
-
addChangeListener
public void addChangeListener(ChangeListener changeListener)
- Specified by:
addChangeListener
in interfaceElementRenderer
-
removeChangeListener
public void removeChangeListener(ChangeListener changeListener)
- Specified by:
removeChangeListener
in interfaceElementRenderer
-
fireChangeEvent
public void fireChangeEvent()
-
getVisualHeight
public double getVisualHeight()
- Specified by:
getVisualHeight
in interfaceElementRenderer
-
setVisualHeight
public void setVisualHeight(double visualHeight)
- Specified by:
setVisualHeight
in interfaceElementRenderer
-
isHideInLayout
public boolean isHideInLayout()
- Specified by:
isHideInLayout
in interfaceElementRenderer
-
getVerticalLinealModel
public LinealModel getVerticalLinealModel()
- Specified by:
getVerticalLinealModel
in interfaceElementRenderer
-
getLayoutHeight
public double getLayoutHeight()
- Specified by:
getLayoutHeight
in interfaceElementRenderer
-
invalidateLayout
public void invalidateLayout()
- Specified by:
invalidateLayout
in interfaceElementRenderer
-
getBounds
public Rectangle2D getBounds()
- Specified by:
getBounds
in interfaceElementRenderer
-
getRootElementBounds
public org.pentaho.reporting.engine.classic.core.util.geom.StrictBounds getRootElementBounds()
- Specified by:
getRootElementBounds
in interfaceElementRenderer
-
performLayouting
protected Rectangle2D performLayouting()
-
draw
public boolean draw(Graphics2D graphics2D)
- Specified by:
draw
in interfaceElementRenderer
-
handleError
public void handleError(ReportDesignerContext designerContext, ReportDocumentContext reportContext)
- Specified by:
handleError
in interfaceElementRenderer
-
getHorizontalEdgePositions
public BreakPositionsList getHorizontalEdgePositions()
- Specified by:
getHorizontalEdgePositions
in interfaceElementRenderer
-
getHorizontalEdgePositionKeys
public long[] getHorizontalEdgePositionKeys()
- Specified by:
getHorizontalEdgePositionKeys
in interfaceElementRenderer
-
getVerticalEdgePositions
public BreakPositionsList getVerticalEdgePositions()
- Specified by:
getVerticalEdgePositions
in interfaceElementRenderer
-
getElementsAt
public org.pentaho.reporting.engine.classic.core.Element[] getElementsAt(double x, double y, double width, double height)
- Specified by:
getElementsAt
in interfaceElementRenderer
-
getElementsAt
public org.pentaho.reporting.engine.classic.core.Element[] getElementsAt(double x, double y)
- Specified by:
getElementsAt
in interfaceElementRenderer
-
getLogicalPageDrawable
protected DesignerPageDrawable getLogicalPageDrawable()
-
-