Examples of DefaultFontStorage


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

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

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

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

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

  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

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

    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

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

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

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

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

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

  public static final OutputProcessorFeature.NumericOutputProcessorFeature CHAR_HEIGHT =
      new OutputProcessorFeature.NumericOutputProcessorFeature("txt.character-height-pt");

  public TextOutputProcessorMetaData(final float lpi, final float cpi)
  {
    super(new DefaultFontStorage(new MonospaceFontRegistry(lpi, cpi)));
    setNumericFeatureValue(TextOutputProcessorMetaData.CHAR_WIDTH, 72.0 / cpi);
    setNumericFeatureValue(TextOutputProcessorMetaData.CHAR_HEIGHT, 72.0 / lpi);
    // the plain text target does not support arabic text at all.
    removeFeature(OutputProcessorFeature.COMPLEX_TEXT);
  }
View Full Code Here

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

      throws ReportProcessingException, ContentProcessingException
  {
    final FontStorage fontRegistry;
    if (monospaced)
    {
      fontRegistry = new DefaultFontStorage(new MonospaceFontRegistry(9, 18));
    }
    else
    {
      fontRegistry = DebugOutputProcessorMetaData.getLocalFontStorage();
    }
View Full Code Here

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

  private double deviceResolution;
  private CacheKey lookupCacheKey;

  protected AbstractOutputProcessorMetaData()
  {
    this(new DefaultFontStorage(new AWTFontRegistry()));
  }
View Full Code Here

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

    if (localFontRegistry == null)
    {
      localFontRegistry = new LocalFontRegistry();
      localFontRegistry.initialize();
    }
    return new DefaultFontStorage(localFontRegistry);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.