public abstract class AbstractLayoutManager extends Object implements LayoutManager
Modifier and Type | Field and Description |
---|---|
protected static String |
EXPRESSION_TRUE_WHEN_EVEN |
protected static String |
EXPRESSION_TRUE_WHEN_ODD |
protected List |
realGroups
Holds the original groups binded to a column.
|
Constructor and Description |
---|
AbstractLayoutManager() |
Modifier and Type | Method and Description |
---|---|
void |
addStyleToDesign(Style style) |
void |
applyLayout(net.sf.jasperreports.engine.design.JasperDesign design,
DynamicReport report)
Entry point for applying a given layout.
|
void |
applyStyleToElement(Style style,
net.sf.jasperreports.engine.design.JRDesignElement designElemen)
Given a dj-Style, it is applied to the jasper element.
|
protected void |
applyWaterMark() |
protected net.sf.jasperreports.engine.design.JRDesignChart |
createChart(DJChart djChart)
Creates the JRDesignChart from the DJChart.
|
protected net.sf.jasperreports.engine.design.JRDesignChart |
createChart(DJChart djChart,
String name)
Creates the JRDesignChart from the DJChart.
|
protected net.sf.jasperreports.engine.design.JRDesignBand |
createGroupForChartAndGetBand(DJChart djChart) |
protected net.sf.jasperreports.engine.design.JRDesignBand |
createGroupForChartAndGetBand(DJChart djChart) |
protected String |
createUniqueStyleName() |
protected void |
endLayout() |
protected void |
ensureDJStyles()
Sets a default style for every element that doesn't have one
|
protected void |
generateHeaderBand(net.sf.jasperreports.engine.design.JRDesignBand band) |
protected net.sf.jasperreports.engine.design.JRDesignTextField |
generateTextFieldFromColumn(AbstractColumn col,
int height,
DJGroup group)
Creates a JasperReport DesignTextField from a DynamicJasper AbstractColumn.
|
protected net.sf.jasperreports.engine.design.JRDesignGroup |
getChartColumnsGroup(DJChart djChart) |
protected net.sf.jasperreports.engine.design.JasperDesign |
getDesign() |
protected DJGroup |
getDJGroup(AbstractColumn col) |
protected net.sf.jasperreports.engine.design.JRDesignGroup |
getJRGroupFromDJGroup(DJGroup group)
Finds JRDesignGroup associated to a DJGroup
|
protected net.sf.jasperreports.engine.design.JRDesignGroup |
getParent(net.sf.jasperreports.engine.design.JRDesignGroup group)
Finds the parent group of the given one and returns it
|
protected DynamicReport |
getReport() |
HashMap |
getReportStyles() |
protected List<AbstractColumn> |
getVisibleColumns() |
protected void |
interpeterOptions(DJChart djChart,
net.sf.jasperreports.engine.design.JRDesignChart chart) |
protected void |
layoutCharts() |
protected net.sf.jasperreports.engine.design.JRDesignConditionalStyle |
makeConditionalStyle(Style style) |
protected List |
registerChartVariable(DJChart chart)
Creates and registers a variable to be used by the Chart
|
protected Map |
registerChartVariable(DJChart chart)
Creates and registers a variable to be used by the Chart
|
protected void |
registerRemainingStyles() |
protected void |
setBandFinalHeight(net.sf.jasperreports.engine.design.JRDesignBand band)
Sets the band's height to hold all its children
|
protected void |
setBandsFinalHeight()
Sets the necessary height for all bands in the report, to hold their children
|
protected void |
setColumnsFinalWidth()
Sets the columns width by reading some report options like the
printableArea and useFullPageWidth.
|
protected void |
setDesign(net.sf.jasperreports.engine.design.JasperDesign design) |
protected void |
setReport(DynamicReport report) |
void |
setReportStyles(HashMap reportStyles) |
protected void |
setWhenNoDataBand()
Creates the graphic element to be shown when the datasource is empty
|
protected void |
startLayout() |
protected void |
transformDetailBand()
For each column, puts the elements in the detail band
|
protected abstract void |
transformDetailBandTextField(AbstractColumn column,
net.sf.jasperreports.engine.design.JRDesignTextField textField) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReferencesMap
protected static final String EXPRESSION_TRUE_WHEN_ODD
protected static final String EXPRESSION_TRUE_WHEN_EVEN
protected final List realGroups
protected abstract void transformDetailBandTextField(AbstractColumn column, net.sf.jasperreports.engine.design.JRDesignTextField textField)
public HashMap getReportStyles()
public void setReportStyles(HashMap reportStyles)
public void applyLayout(net.sf.jasperreports.engine.design.JasperDesign design, DynamicReport report) throws LayoutException
LayoutManager
applyLayout
in interface LayoutManager
design
- The deseign to be usedreport
- The report to showLayoutException
protected void applyWaterMark()
protected void setWhenNoDataBand()
protected void startLayout()
protected void endLayout()
protected void registerRemainingStyles()
protected void ensureDJStyles()
net.sf.jasperreports.engine.JRException
public void addStyleToDesign(Style style)
style
- net.sf.jasperreports.engine.JRException
protected String createUniqueStyleName()
protected void transformDetailBand()
protected void generateHeaderBand(net.sf.jasperreports.engine.design.JRDesignBand band)
public void applyStyleToElement(Style style, net.sf.jasperreports.engine.design.JRDesignElement designElemen)
style
- designElemen
- protected void setColumnsFinalWidth()
protected List<AbstractColumn> getVisibleColumns()
protected void setBandsFinalHeight()
protected void setBandFinalHeight(net.sf.jasperreports.engine.design.JRDesignBand band)
band
- Band to be resizedprotected net.sf.jasperreports.engine.design.JRDesignTextField generateTextFieldFromColumn(AbstractColumn col, int height, DJGroup group)
col
- height
- group
- protected net.sf.jasperreports.engine.design.JRDesignConditionalStyle makeConditionalStyle(Style style)
protected void layoutCharts()
protected net.sf.jasperreports.engine.design.JRDesignBand createGroupForChartAndGetBand(DJChart djChart)
protected net.sf.jasperreports.engine.design.JRDesignChart createChart(DJChart djChart)
djChart
- protected void interpeterOptions(DJChart djChart, net.sf.jasperreports.engine.design.JRDesignChart chart)
protected List registerChartVariable(DJChart chart)
chart
- Chart that needs a variable to be generatedprotected net.sf.jasperreports.engine.design.JRDesignGroup getChartColumnsGroup(DJChart djChart)
protected net.sf.jasperreports.engine.design.JRDesignBand createGroupForChartAndGetBand(DJChart djChart)
protected net.sf.jasperreports.engine.design.JRDesignChart createChart(DJChart djChart, String name)
djChart
- protected Map registerChartVariable(DJChart chart)
chart
- Chart that needs a variable to be generatedprotected net.sf.jasperreports.engine.design.JRDesignGroup getParent(net.sf.jasperreports.engine.design.JRDesignGroup group)
group
- Group for which the parent is neededprotected net.sf.jasperreports.engine.design.JRDesignGroup getJRGroupFromDJGroup(DJGroup group)
group
- protected DJGroup getDJGroup(AbstractColumn col)
protected net.sf.jasperreports.engine.design.JasperDesign getDesign()
protected void setDesign(net.sf.jasperreports.engine.design.JasperDesign design)
protected DynamicReport getReport()
protected void setReport(DynamicReport report)
Copyright © 2006–2015 FDV Solutions. All rights reserved.