public class SpinCommand extends AbstractDocumentCommand
PageView
instance in the context object.
The spin direction and whether the spin should be applied on the document or just the current page can be defined via command properties file.
Hint:
To work properly this command needs a PageView
instance in the
Context
object.
Furthermore the spin direction and the scope (document/page) can be defined as command
parameters.
Description | Command Parameter Name | Possible Parameter Values |
---|---|---|
spin direction (clockwise?) | cw | true, false |
scope (document/page) | scope | PAGE,DOCUMENT, see AbstractDocumentCommand.Scope |
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
SpinCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute()
This method is called in order to execute the command.
|
boolean |
isCw() |
void |
setCw(boolean cw) |
canExecute, getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, isSelected, setKey
protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
public void setCw(boolean cw)
public boolean isCw()
Copyright © 2024 levigo holding gmbh. All rights reserved.