Package com.luciad.view.gxy
Class TLcdSaveGXYViewAsGIFAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.gxy.TLcdSaveGXYViewAsGIFAction
- All Implemented Interfaces:
ILcdAction,ILcdPropertyChangeSource,ActionListener,Serializable,EventListener
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:
-
Field Summary
Fields inherited from class com.luciad.gui.ALcdAction
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGets the first path to be used by the FileDialog.Gets theFrameto be used as parentFramefor the FileDialog.booleanbooleanDeprecated.This method has been deprecated.protected StringThis method can be redefined.voidsetEndMessage(String aEndMessage) voidsetFirstInitialPath(String aFirstInitialPath) Sets the first path to be used by the FileDialog.voidsetGIFAbsoluteFileName(String aGIFAbsoluteFileName) voidsetGXYView(ILcdGXYView aGXYView) voidsetParentFrame(Frame aParentFrame) Forces to use aParentFrame as parentFramefor the FileDialog.voidsetPopupEndMessage(boolean aPopupEndMessage) When this property is true, this class will popup the endMessage property in aDialogfor confirmation.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.protected voidshowEndMessage(String aAbsoluteFileName, ActionEvent e) If the property PopupEndMessage is set totrue, this method will be called to display a confirmation message that theILcdGXYViewcontent has been successfully saved as a GIF file in aAbsoluteFileName.Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
-
Constructor Details
-
TLcdSaveGXYViewAsGIFAction
public TLcdSaveGXYViewAsGIFAction() -
TLcdSaveGXYViewAsGIFAction
-
-
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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen only the informative, warning and error log messages are recorded.- Overrides:
setTraceOnin classALcdAction- 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.Returnstrueif tracing is enabled for this class.- Overrides:
isTraceOnin classALcdAction- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setGIFAbsoluteFileName
-
getGIFAbsoluteFileName
-
setPopupEndMessage
public void setPopupEndMessage(boolean aPopupEndMessage) When this property is true, this class will popup the endMessage property in aDialogfor confirmation. -
isPopupEndMessage
public boolean isPopupEndMessage() -
setFirstInitialPath
Sets the first path to be used by the FileDialog. -
getFirstInitialPath
Gets the first path to be used by the FileDialog. -
setEndMessage
-
getEndMessage
-
setGXYView
-
getGXYView
-
setParentFrame
Forces to use aParentFrame as parentFramefor the FileDialog. -
getParentFrame
Gets theFrameto be used as parentFramefor the FileDialog. -
showEndMessage
If the property PopupEndMessage is set totrue, this method will be called to display a confirmation message that theILcdGXYViewcontent has been successfully saved as a GIF file in aAbsoluteFileName. This method can be redefined. -
actionPerformed
-
selectGIFAbsoluteFileName
This method can be redefined.
-