org.foray.graphic.output
Class GraphicJava2dFactory
java.lang.Object
org.foray.graphic.output.GraphicOutputFactory
org.foray.graphic.output.GraphicJava2dFactory
public class GraphicJava2dFactory
- extends GraphicOutputFactory
Factory for creating instances of GraphicOutput for PostScript output.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphicJava2dFactory
public GraphicJava2dFactory()
- Constructor.
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.