You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PrintRenderer.java 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * $Id$
  3. * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  4. * For details on use and redistribution please refer to the
  5. * LICENSE file included with these sources."
  6. */
  7. package org.apache.fop.render;
  8. // FOP
  9. import org.apache.fop.pdf.PDFPathPaint;
  10. import org.apache.fop.pdf.PDFColor;
  11. import org.apache.fop.apps.FOPException;
  12. import org.apache.fop.fo.properties.*;
  13. import org.apache.fop.datatypes.*;
  14. import org.apache.fop.render.pdf.FontSetup;
  15. import org.apache.fop.layout.FontInfo;
  16. // Java
  17. import java.io.IOException;
  18. import java.io.OutputStream;
  19. import java.util.Enumeration;
  20. /**
  21. * Abstract base class of "Print" type renderers.
  22. *
  23. */
  24. public abstract class PrintRenderer extends AbstractRenderer {
  25. protected FontInfo fontInfo;
  26. /**
  27. * set up the font info
  28. *
  29. * @param fontInfo font info to set up
  30. */
  31. public void setupFontInfo(FontInfo fontInfo) {
  32. this.fontInfo = fontInfo;
  33. FontSetup.setup(fontInfo, org.apache.fop.configuration.Configuration.getFonts());
  34. }
  35. /**
  36. *
  37. */
  38. public void startRenderer(OutputStream outputStream)
  39. throws IOException {}
  40. /**
  41. *
  42. */
  43. public void stopRenderer()
  44. throws IOException
  45. {
  46. }
  47. }