KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > graph > action > ExportAsImageAction


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.graph.action;
8
9 import java.util.ResourceBundle JavaDoc;
10
11 import org.ejtools.adwt.action.Command;
12 import org.ejtools.adwt.action.CommandAction;
13 import org.ejtools.util.Platform;
14
15 /**
16  * Description of the Class
17  *
18  * @author Laurent Etiemble
19  * @version $Revision: 1.3 $
20  * @todo Javadoc to complete
21  */

22 public class ExportAsImageAction extends CommandAction
23 {
24    /** Description of the Field */
25    private static ResourceBundle JavaDoc resources = ResourceBundle.getBundle("org.ejtools.graph.GraphService");
26
27
28    /**
29     * Constructor for the NewAction object
30     *
31     * @param command Description of Parameter
32     */

33    public ExportAsImageAction(Command command)
34    {
35       super(command, resources, "action.tools.export.as.image");
36       this.setMenu("action.tools");
37       this.setToolBar(true);
38       this.setSmallIcon("/toolbarButtonGraphics/general/Export16.gif");
39       this.setIcon("/toolbarButtonGraphics/general/Export24.gif");
40
41       // Enable export if JDK 1.4 is available (contains Image IO API)
42
this.setEnabled(Platform.isJavaVersionCompatible(Platform.JAVA_1_4));
43    }
44 }
45
Popular Tags