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
changeSupport
Fields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets the first path to be used by the FileDialog.Gets theFrame
to be used as parentFrame
for the FileDialog.boolean
boolean
Deprecated.This method has been deprecated.protected String
This method can be redefined.void
setEndMessage
(String aEndMessage) void
setFirstInitialPath
(String aFirstInitialPath) Sets the first path to be used by the FileDialog.void
setGIFAbsoluteFileName
(String aGIFAbsoluteFileName) void
setGXYView
(ILcdGXYView aGXYView) void
setParentFrame
(Frame aParentFrame) Forces to use aParentFrame as parentFrame
for the FileDialog.void
setPopupEndMessage
(boolean aPopupEndMessage) When this property is true, this class will popup the endMessage property in aDialog
for confirmation.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.protected void
showEndMessage
(String aAbsoluteFileName, ActionEvent e) If the property PopupEndMessage is set totrue
, this method will be called to display a confirmation message that theILcdGXYView
content 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 eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Overrides:
setTraceOn
in 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.Returnstrue
if tracing is enabled for this class.- Overrides:
isTraceOn
in 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 aDialog
for 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 parentFrame
for the FileDialog. -
getParentFrame
Gets theFrame
to be used as parentFrame
for the FileDialog. -
showEndMessage
If the property PopupEndMessage is set totrue
, this method will be called to display a confirmation message that theILcdGXYView
content has been successfully saved as a GIF file in aAbsoluteFileName. This method can be redefined. -
actionPerformed
-
selectGIFAbsoluteFileName
This method can be redefined.
-