org.foray.graphic.output
Class GraphicPdfFactory

java.lang.Object
  extended by org.foray.graphic.output.GraphicOutputFactory
      extended by org.foray.graphic.output.GraphicPdfFactory

public class GraphicPdfFactory
extends GraphicOutputFactory

Factory for creating instances of GraphicOutput for PDF output.


Constructor Summary
GraphicPdfFactory()
          Constructor.
 
Method Summary
 GraphicPdf4a createGraphicOutput(org.axsl.graphic.Graphic graphic)
          Create a GraphicOutput implementation.
 String getMimeType()
          Returns the mime-type for this factory.
 
Methods inherited from class org.foray.graphic.output.GraphicOutputFactory
getGraphic4a
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicPdfFactory

public GraphicPdfFactory()
Constructor.

Method Detail

createGraphicOutput

public GraphicPdf4a createGraphicOutput(org.axsl.graphic.Graphic graphic)
                                 throws org.axsl.graphic.GraphicException
Description copied from class: GraphicOutputFactory
Create a GraphicOutput implementation. This method is not intended for use by client applications. It is to be used only by Graphic implementations if they do not already have a GraphicOutput for the desired mime type. Client applications that need a GraphicOutput instance should instead use Graphic.getGraphicOutput(String).

Specified by:
createGraphicOutput in class GraphicOutputFactory
Parameters:
graphic - The Graphic instance for which the GraphicOutput instance should be created.
Returns:
A GraphicOutput implementation suitable for this factory's mime type.
Throws:
org.axsl.graphic.GraphicException - For errors during creation of the GraphicOutput instance.
See Also:
FontUse.getFontOutput(String)

getMimeType

public String getMimeType()
Description copied from class: GraphicOutputFactory
Returns the mime-type for this factory.

Specified by:
getMimeType in class GraphicOutputFactory
Returns:
The mime type for which this factory generates GraphicOutput instances. For example, a factory returning GraphicOutput instances for use with PDF (Portable Document Format) should return "application/pdf".
See Also:
Internet Assigned Numbers Authority MIME Media Types


Copyright © 2017. All rights reserved.