public abstract class AbstractAnnotationModeCommand extends AbstractAnnotationCommand
All of them can use the same checking method. This command expect a viewer instance with a document in the corresponding context object.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractAnnotationModeCommand.CreateMode |
AbstractDocumentCommand.Scope
Modifier and Type | Field and Description |
---|---|
protected static int |
ANNO_NOT_SUPPORTED_MODE |
document
Constructor and Description |
---|
AbstractAnnotationModeCommand() |
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.
|
AbstractAnnotationModeCommand.CreateMode |
getCreateMode() |
protected boolean |
isCurrentAnnotationType(AnnotationFactory annotationFactory)
Returns whether the current annotation mode is the same as given annotation type.
|
protected void |
respectAnnotationResetMode(PageView pageView)
Checks the annotation creation reset mode and do the appropriate settings in the
AnnotationCreationPane
|
void |
setCreateMode(AbstractAnnotationModeCommand.CreateMode createMode) |
getAnnoPageSegment, getAnnoRenderSettings, getAnnotationProfile, getAnnotations, getAnnotationTool, getSelectedAnnotations
getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, execute, getKey, isAvailable, isSelected, isSelected, setKey
protected static final int ANNO_NOT_SUPPORTED_MODE
protected boolean isCurrentAnnotationType(AnnotationFactory annotationFactory)
protected void respectAnnotationResetMode(PageView pageView)
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class AbstractAnnotationCommand
true
if the command can/may be executed in the current context,
false
otherwise.InjectedCommand.canExecute(Collection)
public void setCreateMode(AbstractAnnotationModeCommand.CreateMode createMode)
public AbstractAnnotationModeCommand.CreateMode getCreateMode()
Copyright © 2024 levigo holding gmbh. All rights reserved.