org.foray.graphic.output
Class GraphicJava2dFactory

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

public class GraphicJava2dFactory
extends GraphicOutputFactory

Factory for creating instances of GraphicOutput for PostScript output.


Constructor Summary
GraphicJava2dFactory()
          Constructor.
 
Method Summary
 GraphicJava2d4a 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

GraphicJava2dFactory

public GraphicJava2dFactory()
Constructor.

Method Detail

createGraphicOutput

public GraphicJava2d4a 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.