View Javadoc

1   // Copyright 2000-2007 FreeHEP
2   package org.freehep.graphicsio.emf;
3   
4   /**
5    * EMFDisplay.java
6    *
7    * Created: Mon May 26 09:43:10 2003
8    *
9    * Copyright:    Copyright (c) 2000, 2001<p>
10   * Company:      ATLANTEC Enterprise Solutions GmbH<p>
11   *
12   * @author Carsten Zerbst carsten.zerbst@atlantec-es.com
13   * @version $Id: EMFDisplay.java 12753 2007-06-12 22:32:31Z duns $
14   */
15  
16  import java.io.File;
17  
18  /**
19   * A simple interpreter displaying an EMF file read in by the EMFInputStream in
20   * a JPanel
21   */
22  public class EMFDisplay {
23  
24      public static void main(String[] args) {
25          try {
26              EMFViewer emfViewer = new EMFViewer();
27              if (args[0] != null) {
28                  emfViewer.show(new File(args[0]));
29              }
30          } catch (Exception exp) {
31              exp.printStackTrace();
32          }
33      }
34  }
35  
36  // EMFDisplay