yext.export.io
Class EMFOutputHandler

java.lang.Object
  extended byy.io.IOHandler
      extended byyext.export.io.OutputHandler
          extended byyext.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
 
Method Summary
 String getFileNameExtension()
          Returns "emf", the standard file name extension for Windows Enhanced Metafiles.
 
Methods inherited from class yext.export.io.OutputHandler
addRenderingHint, canRead, canWrite, createDefaultGraph2DView, 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
 

Constructor Detail

EMFOutputHandler

public EMFOutputHandler()
Creates a new instance of EMFOutputHandler

Method Detail

getFileNameExtension

public String getFileNameExtension()
Returns "emf", the standard file name extension for Windows Enhanced Metafiles.



© Copyright 2007,
yWorks GmbH.
All rights reserved.