Class TLcdSaveGXYViewAsGIFAction

java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.gxy.TLcdSaveGXYViewAsGIFAction
All Implemented Interfaces:
ILcdAction, ILcdPropertyChangeSource, ActionListener, Serializable, EventListener

public class TLcdSaveGXYViewAsGIFAction extends ALcdAction
This ILcdAction will save the content of an ILcdGXYView set as a property into a GIF File.

The file name of the GIF File can be set as a property. In that case, this ILcdAction will always save in that file when triggered. If this property is not set, this ILcdAction will popup a FileDialog (if a ILcdDialogManager has been set to the TLcdUserDialog), and the user will have to select a file.

See Also:
  • Constructor Details Link icon

    • TLcdSaveGXYViewAsGIFAction Link icon

      public TLcdSaveGXYViewAsGIFAction()
    • TLcdSaveGXYViewAsGIFAction Link icon

      public TLcdSaveGXYViewAsGIFAction(ILcdGXYView aGXYView)
  • Method Details Link icon

    • setTraceOn Link icon

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Overrides:
      setTraceOn in class ALcdAction
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • isTraceOn Link icon

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Overrides:
      isTraceOn in class ALcdAction
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • setGIFAbsoluteFileName Link icon

      public void setGIFAbsoluteFileName(String aGIFAbsoluteFileName)
    • getGIFAbsoluteFileName Link icon

      public String getGIFAbsoluteFileName()
    • setPopupEndMessage Link icon

      public void setPopupEndMessage(boolean aPopupEndMessage)
      When this property is true, this class will popup the endMessage property in a Dialog for confirmation.
    • isPopupEndMessage Link icon

      public boolean isPopupEndMessage()
    • setFirstInitialPath Link icon

      public void setFirstInitialPath(String aFirstInitialPath)
      Sets the first path to be used by the FileDialog.
    • getFirstInitialPath Link icon

      public String getFirstInitialPath()
      Gets the first path to be used by the FileDialog.
    • setEndMessage Link icon

      public void setEndMessage(String aEndMessage)
    • getEndMessage Link icon

      public String getEndMessage()
    • setGXYView Link icon

      public void setGXYView(ILcdGXYView aGXYView)
    • getGXYView Link icon

      public ILcdGXYView getGXYView()
    • setParentFrame Link icon

      public void setParentFrame(Frame aParentFrame)
      Forces to use aParentFrame as parent Frame for the FileDialog.
    • getParentFrame Link icon

      public Frame getParentFrame()
      Gets the Frame to be used as parent Frame for the FileDialog.
    • showEndMessage Link icon

      protected void showEndMessage(String aAbsoluteFileName, ActionEvent e)
      If the property PopupEndMessage is set to true, this method will be called to display a confirmation message that the ILcdGXYView content has been successfully saved as a GIF file in aAbsoluteFileName. This method can be redefined.
    • actionPerformed Link icon

      public void actionPerformed(ActionEvent e)
    • selectGIFAbsoluteFileName Link icon

      protected String selectGIFAbsoluteFileName(ActionEvent e)
      This method can be redefined.