Class ExportTool

java.lang.Object
org.opensourcephysics.tools.ExportTool
All Implemented Interfaces:
PropertyChangeListener, EventListener, Tool

public class ExportTool extends Object implements Tool, PropertyChangeListener
An export tool which launches a Save dialog
Version:
1.0
Author:
Kipton Barros
  • Constructor Details

    • ExportTool

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

    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • registerFormat

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

      public void exportJS(Job job)
    • send

      public void send(Job job, Tool noReply)
      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
      noReply - the tool to notify when the job is complete (may be null)
    • getTool

      public static ExportTool getTool()
      Gets the shared Tool.
      Returns:
      the shared ExportTool