Overview | Package | Class | Use | Tree | Help
| HEADER
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## biouml.model
Interface DiagramExporter

All Known Implementing Classes:
  GinMLExporter, GxlExporter, SbmlExporter, SvgDiagramExporter, DiagramImageWriter

public interface DiagramExporter

General interface to export digaram in the specified format, for example in SBML format or as PNG image.

Method Summary
`boolean` | `accept(Diagram diagram)` Returns true if the specified diagram can be exported in this format and false otherwise.
`void` | `doExport(Diagram diagram, File file)` Exports the specified diagram into the specified file or directory.
`boolean` | `init(String format, String suffix)` The same exporter can support several formats.

Method Detail

### accept

    public boolean accept(Diagram diagram)

  Returns true if the specified diagram can be exported in this format and false otherwise.

### doExport

    public void doExport(Diagram diagram, File file)
                   throws java.lang.Exception

  Exports the specified diagram into the specified file or directory.
  Parameters:
    diagram - - diagram to be exported
    file - - name of file or directory where the export results will be stored.

### init

    public boolean init(String format, String suffix)

  The same exporter can support several formats. In this case several instances of exporter can be initialised with different `format` and `suffix` parameters.
  Parameters:
    format - - format for export
    suffix - - file sufix for the specified format.
  Returns: true if the exporter was initialised successfully for the specified format and false otherwise.

Overview | Package | Class | Use | Tree | Help
| FOOTER
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

BOTTOM