http://www.jpicedt.org

jpicedt.graphic
Interface ContentType

All Known Implementing Classes:
DefaultContentType, DXFContentType, EepicContentType, LatexContentType, PstricksContentType, TikzContentType

public interface ContentType

Specifies a content-type (aka mime-type) for a Drawing document created by an editor-kit.

This interface is aimed at lumping together top-level classes needed by a given content-type in the View-Model-Control framework : so far this involves obtaining an instance of EditorKit appropriate for the given content-type, as well as a corresponding FormatterFactory. A configure method is provided for conveniently configuring editor-kits and factories before use.

[SR:pending] better move to jpicedt.graphic.io ?

Since:
jpicedt 1.3.2
Version:
$Id: ContentType.java,v 1.10 2013/03/27 07:07:32 vincentb1 Exp $
Author:
Sylvain Reynal

Method Summary
 void configure(Properties p)
          Configure the EditorKit and the FormatterFactory returned by the factory methods, from the given Properties
 AbstractCustomizer createCustomizer(Properties prop)
          Returns a customizer panel for this content-type
 FormatterFactory createFormatter()
          Creates a FormatterFactory that's suited for this content-type
 ViewFactory createViewFactory()
          Creates a ViewFactory that's suited for this content-type
 String getPresentationName()
          Return the presentation name of this content-type
 

Method Detail

getPresentationName

String getPresentationName()
Return the presentation name of this content-type


createViewFactory

ViewFactory createViewFactory()
Creates a ViewFactory that's suited for this content-type


createFormatter

FormatterFactory createFormatter()
Creates a FormatterFactory that's suited for this content-type


configure

void configure(Properties p)
Configure the EditorKit and the FormatterFactory returned by the factory methods, from the given Properties


createCustomizer

AbstractCustomizer createCustomizer(Properties prop)
Returns a customizer panel for this content-type

Parameters:
prop - used to init the component or to store preferences on-demand.
Returns:
null if no customizer is available for this content-type

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org