public class FreezeCommandHandler extends AbstractLayerCommandHandler<IFreezeCommand>
Modifier and Type | Field and Description |
---|---|
protected FreezeLayer |
freezeLayer |
protected SelectionLayer |
selectionLayer |
protected ViewportLayer |
viewportLayer |
Constructor and Description |
---|
FreezeCommandHandler(FreezeLayer freezeLayer,
ViewportLayer viewportLayer,
SelectionLayer selectionLayer) |
Modifier and Type | Method and Description |
---|---|
boolean |
doCommand(IFreezeCommand command) |
Class<IFreezeCommand> |
getCommandClass() |
protected void |
handleFreezeCommand(IFreezeCoordinatesProvider coordinatesProvider,
boolean toggle,
boolean override)
Performs freeze actions dependent on the coordinates specified by the given
IFreezeCoordinatesProvider and the configuration flags. |
protected void |
handleUnfreeze()
Unfreeze a current frozen state.
|
doCommand
protected final FreezeLayer freezeLayer
protected final ViewportLayer viewportLayer
protected final SelectionLayer selectionLayer
public FreezeCommandHandler(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer)
public Class<IFreezeCommand> getCommandClass()
public boolean doCommand(IFreezeCommand command)
doCommand
in class AbstractLayerCommandHandler<IFreezeCommand>
protected void handleFreezeCommand(IFreezeCoordinatesProvider coordinatesProvider, boolean toggle, boolean override)
IFreezeCoordinatesProvider
and the configuration flags.
If a freeze state is already active it is checked if this state should be overriden
or toggled. Otherwise the freeze state is applied.coordinatesProvider
- The IFreezeCoordinatesProvider
to retrieve the freeze
coordinates fromtoggle
- whether to unfreeze if the freeze layer is already in a frozen stateoverride
- whether to override a current frozen state.protected void handleUnfreeze()
Copyright © 2013. All Rights Reserved.