org.opensourcephysics.tools
Class ExportTool

java.lang.Object
  extended by org.opensourcephysics.tools.ExportTool
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.rmi.Remote, java.util.EventListener, Tool

public class ExportTool
extends java.lang.Object
implements Tool, java.beans.PropertyChangeListener

An export tool which launches a Save dialog

Version:
1.0
Author:
Kipton Barros

Constructor Summary
ExportTool()
          Creates a new export tool.
 
Method Summary
static ExportTool getTool()
          Gets the shared Tool.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
static void registerFormat(ExportFormat format)
          Register a new export format.
 void send(Job job, Tool replyTo)
          Sends a job to this tool and specifies a tool to reply to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportTool

public ExportTool()
Creates a new export tool. Doesn't get activated until setXML() is called.

Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

registerFormat

public static void registerFormat(ExportFormat format)
Register a new export format.


send

public void send(Job job,
                 Tool replyTo)
          throws java.rmi.RemoteException
Description copied from interface: Tool
Sends a job to this tool and specifies a tool to reply to.

Specified by:
send in interface Tool
Parameters:
job - the Job
replyTo - the tool to notify when the job is complete (may be null)
Throws:
java.rmi.RemoteException

getTool

public static ExportTool getTool()
Gets the shared Tool.

Returns:
the shared ExportTool