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()
IFreezeCommand
isToggle
in interface IFreezeCommand
true
if a frozen state should be unfrozen when it is
tried to freeze againpublic boolean isOverrideFreeze()
IFreezeCommand
isOverrideFreeze
in interface IFreezeCommand
true
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)
ILayerCommand
convertToTargetLayer
in interface ILayerCommand
targetLayer
- the target layerpublic FreezeSelectionCommand cloneCommand()
ILayerCommand
Object.clone()
Used to make a copies of the command if has to passed to different layer stacks.cloneCommand
in interface ILayerCommand
GridLayer.doCommand(ILayerCommand)
Copyright © 2013. All Rights Reserved.