org.foray.font.output
Class FontOutputFactory4a

java.lang.Object
  extended by org.foray.font.output.FontOutputFactory4a
Direct Known Subclasses:
FontPdfFactory4a, FontPsFactory4a

public abstract class FontOutputFactory4a
extends Object

Abstract superclass for the FOray FontOutputFactory implementations.


Constructor Summary
FontOutputFactory4a()
          Constructor.
 
Method Summary
abstract  org.axsl.font.output.FontOutput createFontOutput(FontUse4a fontUse)
          Create a FontOutput implementation.
abstract  String getMimeType()
          Returns the mime-type for this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontOutputFactory4a

public FontOutputFactory4a()
Constructor.

Method Detail

getMimeType

public abstract String getMimeType()
Returns the mime-type for this factory.

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

createFontOutput

public abstract org.axsl.font.output.FontOutput createFontOutput(FontUse4a fontUse)
                                                          throws org.axsl.font.FontException
Create a FontOutput implementation. This method is not intended for use by client applications. It is to be used only by FontUse implementations if they do not already have a FontOutput for the desired mime type. Client applications that need a FontOutput instance should instead use FontUse.getFontOutput(String).

Parameters:
fontUse - The FontUse implementation for which the FontOutput instance should be created.
Returns:
A FontOutput implementation suitable for this factory's mime type.
Throws:
org.axsl.font.FontException - For errors during creation of the FontOutput instance.
See Also:
FontUse.getFontOutput(String)


Copyright © 2017. All rights reserved.