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

    • TLcdSaveGXYViewAsGIFAction

      public TLcdSaveGXYViewAsGIFAction()
    • TLcdSaveGXYViewAsGIFAction

      public TLcdSaveGXYViewAsGIFAction(ILcdGXYView aGXYView)
  • Method Details

    • setTraceOn

      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

      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

      public void setGIFAbsoluteFileName(String aGIFAbsoluteFileName)
    • getGIFAbsoluteFileName

      public String getGIFAbsoluteFileName()
    • setPopupEndMessage

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

      public boolean isPopupEndMessage()
    • setFirstInitialPath

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

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

      public void setEndMessage(String aEndMessage)
    • getEndMessage

      public String getEndMessage()
    • setGXYView

      public void setGXYView(ILcdGXYView aGXYView)
    • getGXYView

      public ILcdGXYView getGXYView()
    • setParentFrame

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

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

      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

      public void actionPerformed(ActionEvent e)
    • selectGIFAbsoluteFileName

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