public class GradationActionCommand extends GradationCurveCommand
Hint:
To work properly this command needs a PageView
instance in the
Context
object.
The following named command parameters exists and can be used to configure the command behavior.
Description | Command Parameter Name | Possible Parameter Values |
---|---|---|
gradation action description | action | one of the following: NEUTRAL , INVERT ,
DARKEN or LIGHTEN |
Scope to apply to curve (inherited from AbstractDocumentCommand ) |
scope | PAGE, DOCUMENT (default = DOCUMENT) |
Modifier and Type | Class and Description |
---|---|
static class |
GradationActionCommand.Action |
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
GradationActionCommand() |
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.
|
GradationActionCommand.Action |
getAction() |
protected GradationCurve |
getGradationCurve()
Creates a gradation curve instance defined by command parameter points.
|
void |
setAction(GradationActionCommand.Action action) |
void |
setCurve(String curve) |
getApplicableRenderControls, getCurrentGradationCurve, getCurve
getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isAvailable, isSelected, isSelected, setKey
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class GradationCurveCommand
true
if the command can/may be executed in the current context,
false
otherwise.InjectedCommand.canExecute(Collection)
protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class GradationCurveCommand
InjectedCommand.execute(Collection)
protected GradationCurve getGradationCurve()
GradationCurveCommand
getGradationCurve
in class GradationCurveCommand
GradationCurveCommand.getGradationCurve()
public GradationActionCommand.Action getAction()
public void setAction(GradationActionCommand.Action action)
public void setCurve(String curve)
setCurve
in class GradationCurveCommand
GradationCurveCommand.setCurve(java.lang.String)
Copyright © 2024 levigo holding gmbh. All rights reserved.