public class ZoomCommand extends AbstractDocumentCommand
ApplyDynamicZoomRule
and
SwitchToSinglePageOnFit
.Modifier and Type | Class and Description |
---|---|
static class |
ZoomCommand.Mode |
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
ZoomCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canExecute()
Subclasses may override this method to perform argument validation beyond the validation that
happens automatically during the injection phase.
|
protected void |
execute()
This method is called in order to execute the command.
|
float |
getAbsolute()
This method returns the absolute zoom value, which will be applied in
ZoomCommand.Mode.TO_ABSOLUTE
mode. |
ZoomCommand.Mode |
getMode() |
String |
getSteps() |
protected boolean |
isSelected()
Returns the selected state of this command.
|
void |
setAbsolute(String encoded) |
void |
setMode(ZoomCommand.Mode mode)
Deprecated.
Will be used by injection exclusively.
|
void |
setSteps(String encoded) |
getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, setKey
protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class AbstractDocumentCommand
true
if the command can/may be executed in the current context,
false
otherwise.InjectedCommand.canExecute(Collection)
protected boolean isSelected()
InjectedCommand
isSelected
in class InjectedCommand
public void setMode(ZoomCommand.Mode mode)
Developers should not invoke this method in any direct way.
public ZoomCommand.Mode getMode()
public void setSteps(String encoded)
public String getSteps()
public float getAbsolute()
ZoomCommand.Mode.TO_ABSOLUTE
mode. In all other modes, the returned value is not relevant.public void setAbsolute(String encoded)
Copyright © 2024 levigo holding gmbh. All rights reserved.