public class TLcdRemoveLayerAction extends ALcdAction implements ILcdAction
ILcdAction
that removes a given
ILcdLayer
from an ILcdLayered
..changeSupport
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
Constructor and Description |
---|
TLcdRemoveLayerAction()
Default constructor: an
ILcdLayered , and
an ILcdLayer still must be set. |
TLcdRemoveLayerAction(ILcdLayered aLayered,
ILcdLayer aLayer)
Constructor with an
ILcdLayered , and an ILcdLayer . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ae)
Performs this
ILcdAction . |
ILcdLayer |
getLayer()
Gets the
ILcdLayer associated to this ILcdAction . |
ILcdLayered |
getLayered()
Returns the layered from which the layer will be removed when the action is performed.
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setLayer(ILcdLayer aLayer)
Sets the
ILcdLayer aLayer to this ILcdAction . |
void |
setLayered(ILcdLayered aLayered)
Sets the
ILcdLayered aLayered to this ILcdAction . |
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue, isEnabled, putValue, setEnabled
addPropertyChangeListener, removePropertyChangeListener
public TLcdRemoveLayerAction()
ILcdLayered
, and
an ILcdLayer
still must be set.public TLcdRemoveLayerAction(ILcdLayered aLayered, ILcdLayer aLayer)
ILcdLayered
, and an ILcdLayer
.aLayered
- the layered from which the layer will be removed.aLayer
- the layer to remove from the layered.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 setLayer(ILcdLayer aLayer)
ILcdLayer aLayer
to this ILcdAction
.aLayer
- the layer that will be removed from the layered when the action is performed.getLayer()
public ILcdLayer getLayer()
ILcdLayer
associated to this ILcdAction
.setLayer(com.luciad.view.ILcdLayer)
public void setLayered(ILcdLayered aLayered)
ILcdLayered aLayered
to this ILcdAction
.aLayered
- the layered from which the layer will be removed when the action is performed.getLayered()
public ILcdLayered getLayered()
setLayered(com.luciad.view.ILcdLayered)
public void actionPerformed(ActionEvent ae)
ILcdAction
. A NullPointerException
will be thrown if one of the properties is null
.actionPerformed
in interface ActionListener
setLayer(com.luciad.view.ILcdLayer)
,
setLayered(com.luciad.view.ILcdLayered)