Package org.pentaho.reporting.libraries.fonts.registry

Examples of org.pentaho.reporting.libraries.fonts.registry.DefaultFontStorage


  private HashMap fontMetricsCache;
  private FontMetricsKey lookupKey;

  protected AbstractOutputMetaData(final Configuration configuration)
  {
    this(configuration, new DefaultFontStorage(new AWTFontRegistry()));
  }
View Full Code Here


    this.paginationMode = paginationMode;
  }

  private static FontStorage createFontStorage()
  {
    return new DefaultFontStorage(new AWTFontRegistry());
  }
View Full Code Here

  }

  public XmlTableOutputProcessorMetaData(final int paginationMode,
                                         final FontRegistry fontRegistry)
  {
    super(new DefaultFontStorage(fontRegistry));
    this.paginationMode = paginationMode;
    setFamilyMapping(null, "Helvetica");
  }
View Full Code Here

    // debugPrintText(elementsByNodeType);

    final LocalFontRegistry registry = new LocalFontRegistry();
    registry.initialize();

    final GraphicsOutputProcessorMetaData metaData = new GraphicsOutputProcessorMetaData(new DefaultFontStorage(registry));
    metaData.initialize(report.getConfiguration());

    final LogicalPageDrawable drawable = new LogicalPageDrawable();
    drawable.init(logicalPageBox, metaData, report.getResourceManager());
View Full Code Here

    this(new AWTFontRegistry());
  }

  public XmlPageOutputProcessorMetaData(final FontRegistry registry)
  {
    super(new DefaultFontStorage(registry));
    setFamilyMapping(null, "Helvetica");
  }
View Full Code Here

  {
    if (configuration == null)
    {
      throw new NullPointerException();
    }
    final DefaultFontStorage fontStorage = new DefaultFontStorage(new AWTFontRegistry());
    metaData = new GraphicsOutputProcessorMetaData(fontStorage);
    resourceManager = new ResourceManager();
  }
View Full Code Here

    }
    if (resourceManager == null)
    {
      throw new NullPointerException();
    }
    final DefaultFontStorage fontStorage = new DefaultFontStorage(new AWTFontRegistry());
    metaData = new GraphicsOutputProcessorMetaData(fontStorage);
    this.resourceManager = resourceManager;
  }
View Full Code Here

  public void testElementSizes() throws Exception
  {
    final MasterReport report = createStandardReport(LONG_TEXT_LABEL);
    final LogicalPageBox pageBox = DebugReportRunner.layoutSingleBand(report, report.getPageHeader(),
        new DefaultFontStorage(new MonospaceFontRegistry(10, 6)), false);

    final RenderBox labelElement = (RenderBox) MatchFactory.findElementByName(pageBox, "LabelElement");
    assertEquals(StrictGeomUtility.toInternalValue(26), labelElement.getHeight());
    assertEquals(StrictGeomUtility.toInternalValue(4), labelElement.getY());
View Full Code Here

    final int cpi = 6;

    final MasterReport report = createStandardReport(LONG_TEXT_LABEL);
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");
    final LogicalPageBox pageBox = DebugReportRunner.layoutSingleBand(report, report.getPageHeader(),
        new DefaultFontStorage(new MonospaceFontRegistry(lpi, cpi)), false);


    final ByteArrayOutputStream out = new ByteArrayOutputStream();
    final TextFilePrinterDriver pc = new TextFilePrinterDriver(out, cpi, lpi);
    final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor(pc, report.getConfiguration());
View Full Code Here

public class StreamGraphicsOutputProcessorMetaData extends AbstractOutputProcessorMetaData
{
  public StreamGraphicsOutputProcessorMetaData()
  {
    this(new DefaultFontStorage(new AWTFontRegistry()));
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.fonts.registry.DefaultFontStorage

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.