info.informatica.report.block.chart
Class BarChartBlock
java.lang.Object
info.informatica.report.block.AbstractBlock
info.informatica.report.block.DynamicBlock
info.informatica.report.block.ImageBlock
info.informatica.report.block.chart.ChartBlock
info.informatica.report.block.chart.BarChartBlock
- All Implemented Interfaces:
- BinaryBlock, Block, DataBlock
public class BarChartBlock
- extends ChartBlock
- implements DataBlock
Bar Chart graph.
The following properties are supported, in addition to Chart-generic ones:
maxdata - Maximum amount of data items to plot (can
supersede those specified in the dataspec).
x_axis_label_format - A FormatPrinter-style format
specification for X axis data (eg. "${year,-5T}")
datasets - Number of data sets to plot in parallel
dataset_param_N - Name of the dataset-N parameter to be
plot (eg. "age")
dataset_caption_N - Caption to be used for the specified
dataset-N parameter (eg. "Subject age")
dataset_color_N - The color to be used when plotting the
dataset-N. It can be specified by spec_id (eg. "red") or RGB integer values
("R,G,B" or "R-G-B" where R, G and B are between 0 and 255)
x_axis_title - Label for the X axis
y_axis_title - Label for the Y axis
- Author:
- amengual at informatica dot info
BarChartBlock
public BarChartBlock(ReportElement peerElement)
init
public void init()
throws info.informatica.doc.DocumentFormatException
- Description copied from class:
AbstractBlock
- Arranges the block for printing. This method must be called before
printing.
Note that blocks implementing NativeBlock must also call initRender(),
after init().
This method needs to be called only once, typically before generating the
data to be able to check for configuration errors.
- Specified by:
init in interface Block- Overrides:
init in class ImageBlock
- Throws:
info.informatica.doc.DocumentFormatException - if is unable to initialize due to a syntax or formatting
problem.
print
public void print(ReportWriter rw,
Dataset rd)
throws info.informatica.doc.RenderingException,
DatasetException
- Description copied from interface:
DataBlock
- Prints a Dataset object.
Uses the ReportWriter object to draw an object representation of the
printed data.
- Specified by:
print in interface DataBlock- Overrides:
print in class ChartBlock
- Parameters:
rw - the ReportWriter object.rd - the dataset.
- Throws:
info.informatica.doc.RenderingException - if a problem occurred when rendering the block.
DatasetException - if there was a problem using the data.