public class FreezeSelectionCommand extends Object implements IFreezeCommand
| Constructor and Description | 
|---|
FreezeSelectionCommand()
Creates a simple FreezeSelectionCommand that doesn't toggle or override
 a current frozen state. 
 | 
FreezeSelectionCommand(boolean toggle)
Creates a FreezeSelectionCommand that doesn't override a current frozen state. 
 | 
FreezeSelectionCommand(boolean toggle,
                      boolean overrideFreeze)
Creates a FreezeSelectionCommand. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FreezeSelectionCommand | 
cloneCommand()
Same semantics as  
Object.clone()
 Used to make a copies of the command if has to passed to different layer stacks. | 
boolean | 
convertToTargetLayer(ILayer targetLayer)
Convert the row/column coordinates the command might be carrying from the source layer
 to the destination (target) layer. 
 | 
boolean | 
isOverrideFreeze()
Indicates whether this command should override a current frozen state
 or if it should be skipped if a frozen state is already applied. 
 | 
boolean | 
isToggle()
Indicates whether this command should toggle the frozen state between
 frozen and unfrozen, or if it should always result in a frozen state. 
 | 
public FreezeSelectionCommand()
public FreezeSelectionCommand(boolean toggle)
toggle - whether this command should toggle the frozen state between
                        frozen and unfrozen, or if it should always result in a frozen state.public FreezeSelectionCommand(boolean toggle,
                      boolean overrideFreeze)
toggle - whether this command should toggle the frozen state between
                        frozen and unfrozen, or if it should always result in a frozen state.overrideFreeze - whether this command should override a current frozen state
                        or if it should be skipped if a frozen state is already applied.public boolean isToggle()
IFreezeCommandisToggle in interface IFreezeCommandtrue if a frozen state should be unfrozen when it is
                tried to freeze againpublic boolean isOverrideFreeze()
IFreezeCommandisOverrideFreeze in interface IFreezeCommandtrue if a current freeze state should be overriden, 
                        false if a requested freeze should be skipped on a 
                        already frozen state.public boolean convertToTargetLayer(ILayer targetLayer)
ILayerCommandconvertToTargetLayer in interface ILayerCommandtargetLayer - the target layerpublic FreezeSelectionCommand cloneCommand()
ILayerCommandObject.clone()
 Used to make a copies of the command if has to passed to different layer stacks.cloneCommand in interface ILayerCommandGridLayer.doCommand(ILayerCommand)Copyright © 2013. All Rights Reserved.