public class TLcdSaveGXYViewAsGIFAction extends ALcdAction
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.
changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdSaveGXYViewAsGIFAction() |
TLcdSaveGXYViewAsGIFAction(ILcdGXYView aGXYView) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
String |
getEndMessage() |
String |
getFirstInitialPath()
Gets the first path to be used by the FileDialog.
|
String |
getGIFAbsoluteFileName() |
ILcdGXYView |
getGXYView() |
Frame |
getParentFrame()
Gets the
Frame to be used as parent Frame for the FileDialog. |
boolean |
isPopupEndMessage() |
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
protected String |
selectGIFAbsoluteFileName(ActionEvent e)
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 parent
Frame for the FileDialog. |
void |
setPopupEndMessage(boolean aPopupEndMessage)
When this property is true, this class will popup the endMessage property
in a
Dialog for confirmation. |
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
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. |
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
public TLcdSaveGXYViewAsGIFAction()
public TLcdSaveGXYViewAsGIFAction(ILcdGXYView aGXYView)
public void setTraceOn(boolean aTraceOn)
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.setTraceOn
in class ALcdAction
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.public boolean isTraceOn()
true
if tracing is enabled for this class.isTraceOn
in class ALcdAction
public void setGIFAbsoluteFileName(String aGIFAbsoluteFileName)
public String getGIFAbsoluteFileName()
public void setPopupEndMessage(boolean aPopupEndMessage)
Dialog
for confirmation.public boolean isPopupEndMessage()
public void setFirstInitialPath(String aFirstInitialPath)
public String getFirstInitialPath()
public void setEndMessage(String aEndMessage)
public String getEndMessage()
public void setGXYView(ILcdGXYView aGXYView)
public ILcdGXYView getGXYView()
public void setParentFrame(Frame aParentFrame)
Frame
for the FileDialog.public Frame getParentFrame()
Frame
to be used as parent Frame
for the FileDialog.protected void showEndMessage(String aAbsoluteFileName, ActionEvent e)
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.public void actionPerformed(ActionEvent e)
protected String selectGIFAbsoluteFileName(ActionEvent e)