yext.export.io
Class EMFOutputHandler
java.lang.Object
y.io.IOHandler
yext.export.io.OutputHandler
yext.export.io.EMFOutputHandler
public class EMFOutputHandler
- extends OutputHandler
Writes a Graph2D in EMF vector graphics format.
The size, viewport and zoom level of the output will be determined
by the Graph2DView associated with the input graph.
An EMFOutputHandler
is used the same way as any other
IOHandler
. E.g. the simplest way to export a given
Graph2D
instance to EMF is:
try {
new EMFOutputHandler().write(graph2D, "myGraphAsEMF.emf");
} catch(IOException ex) {
// error handling code
}
- See Also:
Graph2DView
-
-
Constructor Summary |
EMFOutputHandler()
Creates a new instance of EMFOutputHandler |
Methods inherited from class yext.export.io.OutputHandler |
addRenderingHint, canRead, canWrite, createDefaultGraph2DView, createGraphicsContext, getCreator, getFileFormatString, read, removeRenderingHint, setCreator, write |
Methods inherited from class y.io.IOHandler |
canWriteSubset, createObjectInputStream, createObjectOutputStream, hide, read, read, shouldSerialize, shouldSerialize, write, writeSubset, writeSubset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMFOutputHandler
public EMFOutputHandler()
- Creates a new instance of EMFOutputHandler
getFileNameExtension
public String getFileNameExtension()
- Returns "emf", the standard file name extension for
Windows Enhanced Metafiles.
- Specified by:
getFileNameExtension
in class IOHandler