Package org.pentaho.reporting.engine.classic.core.modules.output.table.base

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.base.CellBackgroundProducer


  private String name;
  private CellBackgroundProducer cellBackgroundProducer;

  public ResultTable()
  {
    this.cellBackgroundProducer = new CellBackgroundProducer(true, true);
  }
View Full Code Here


                           final SheetLayout sheetLayout,
                           final TableContentProducer tableContentProducer)
  {

    ColorValueConverter colorValueConverter = new ColorValueConverter();
    CellBackgroundProducer cellBackgroundProducer = new CellBackgroundProducer(true, true);
    try
    {
      final XmlWriter writer = new XmlWriter(new OutputStreamWriter(System.out));
      writer.writeComment("Table Layout: ");
      writer.writeComment("Rows: " + sheetLayout.getRowCount());
      writer.writeComment("Columns: " + sheetLayout.getColumnCount());
      final int rows = sheetLayout.getRowCount();
      final int cols = sheetLayout.getColumnCount();
      writer.writeTag(null, "table", XmlWriter.OPEN);
      for (int row = 0; row < rows; row++)
      {
        writer.writeTag(null, "row", XmlWriter.OPEN);
        for (int col = 0; col < cols; col++)
        {
          final int sectionType = tableContentProducer.getSectionType(row, col);
          final CellBackground bg =
              cellBackgroundProducer.getBackgroundAt(logicalPage, sheetLayout, col, row, true, sectionType);
          if (bg == null)
          {
            writer.writeTag(null, "empty-cell", XmlWriter.CLOSE);
            continue;
          }
View Full Code Here

    {
      final SheetLayout sheetLayout = contentProducer.getSheetLayout();

      if (documentContentItem == null)
      {
        this.cellBackgroundProducer = new CellBackgroundProducer
            (metaData.isFeatureSupported(AbstractTableOutputProcessor.TREAT_ELLIPSE_AS_RECTANGLE),
                metaData.isFeatureSupported(OutputProcessorFeature.UNALIGNED_PAGEBANDS));

        this.configuration = metaData.getConfiguration();
        this.allowRawLinkTargets = "true".equals
View Full Code Here

    this.outputStream = outputStream;
    this.config = config;
    this.metaData = metaData;
    this.resourceManager = resourceManager;
    this.cellBackgroundProducer = new CellBackgroundProducer
        (metaData.isFeatureSupported(AbstractTableOutputProcessor.TREAT_ELLIPSE_AS_RECTANGLE),
            metaData.isFeatureSupported(OutputProcessorFeature.UNALIGNED_PAGEBANDS));

    try
    {
View Full Code Here

    final int columnCount = contentProducer.getColumnCount();
    final int rowCount = contentProducer.getRowCount();

    if (cellBackgroundProducer == null)
    {
      this.cellBackgroundProducer = new CellBackgroundProducer
          (metaData.isFeatureSupported(AbstractTableOutputProcessor.TREAT_ELLIPSE_AS_RECTANGLE),
              metaData.isFeatureSupported(OutputProcessorFeature.UNALIGNED_PAGEBANDS));
    }

    final AttributeList pageAttributes = new AttributeList();
View Full Code Here

                    final boolean incremental)
      throws ContentProcessingException
  {
    if (document == null)
    {
      this.cellBackgroundProducer = new CellBackgroundProducer
          (metaData.isFeatureSupported(AbstractTableOutputProcessor.TREAT_ELLIPSE_AS_RECTANGLE),
            metaData.isFeatureSupported(OutputProcessorFeature.UNALIGNED_PAGEBANDS));

      final PhysicalPageBox pageFormat = logicalPage.getPageGrid().getPage(0, 0);
      final float urx = (float) StrictGeomUtility.toExternalValue(pageFormat.getWidth());
View Full Code Here

  public DebugTableOutputProcessor(final Configuration configuration)
  {
    this.metaData = new DebugOutputProcessorMetaData(configuration);
    this.flowSelector = new DisplayAllFlowSelector();
    this.cellBackgroundProducer = new CellBackgroundProducer(true, true);
  }
View Full Code Here

  {
    this.colorValueConverter = new ColorValueConverter();
    this.outputStream = outputStream;
    this.pointConverter = new DecimalFormat("0.####", new DecimalFormatSymbols(Locale.US));
    this.pointIntConverter = new DecimalFormat("0", new DecimalFormatSymbols(Locale.US));
    this.cellBackgroundProducer = new CellBackgroundProducer(true, true);
  }
View Full Code Here

      return;
    }

    if (cellBackgroundProducer == null)
    {
      this.cellBackgroundProducer = new CellBackgroundProducer
          (metaData.isFeatureSupported(AbstractTableOutputProcessor.TREAT_ELLIPSE_AS_RECTANGLE),
              metaData.isFeatureSupported(OutputProcessorFeature.UNALIGNED_PAGEBANDS));
    }

    if (tableOpen == false)
View Full Code Here

      return;
    }
   
    if (document == null)
    {
      this.cellBackgroundProducer = new CellBackgroundProducer
          (metaData.isFeatureSupported(AbstractTableOutputProcessor.TREAT_ELLIPSE_AS_RECTANGLE),
            metaData.isFeatureSupported(OutputProcessorFeature.UNALIGNED_PAGEBANDS));

      final PhysicalPageBox pageFormat = logicalPage.getPageGrid().getPage(0, 0);
      final float urx = (float) StrictGeomUtility.toExternalValue(pageFormat.getWidth());
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.table.base.CellBackgroundProducer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.