class JapiDiagramExporter extends AbstractDiagramExporter
Modifier and Type | Field and Description |
---|---|
private org.sparx.Project |
_eaProj |
private org.sparx.Repository |
_eaRep |
private static org.apache.log4j.Logger |
_logger |
Constructor and Description |
---|
JapiDiagramExporter(Config cfg,
org.sparx.Repository eaRep)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
saveToFile(UmlObjectBuilder<?> dia,
Util.ImageFormat format,
boolean throughClipboard)
Copies diagram
dia to a file with format , in the pics output
directory (per configuration) and returns the created file. |
getCfg
private static final org.apache.log4j.Logger _logger
private final org.sparx.Repository _eaRep
private final org.sparx.Project _eaProj
public JapiDiagramExporter(Config cfg, org.sparx.Repository eaRep)
public java.io.File saveToFile(UmlObjectBuilder<?> dia, Util.ImageFormat format, boolean throughClipboard) throws java.io.IOException
AbstractDiagramExporter
dia
to a file with format
, in the pics output
directory (per configuration) and returns the created file.
This default implementation always returns null, without actually exporting anything; ensure to override if you can export diagrams.
saveToFile
in interface DiagramExporter
saveToFile
in class AbstractDiagramExporter
dia
- diagram representationformat
- image formatthroughClipboard
- if true, image will be copied to clipboard and then saved as bitmap file (i.e.,
format
will be ignored).java.io.IOException
- if file creation failed.Copyright 2009-2015 Tatjana (Tanja) Kostic