yext.export.io
Class EMFOutputHandler

java.lang.Object
  extended by y.io.IOHandler
      extended by yext.export.io.OutputHandler
          extended by 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
 
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, 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
 

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.

Specified by:
getFileNameExtension in class IOHandler


© Copyright 2007-2015,
yWorks GmbH.
All rights reserved.