public abstract class AbstractAnnotationCommand extends AbstractDocumentCommand
AbstractDocumentCommand.Scope
document
Constructor and Description |
---|
AbstractAnnotationCommand() |
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 AnnotationPageSegment |
getAnnoPageSegment()
Returns the AnnotationPageSegment, if it is contained in the document, otherwise
null will be returned |
protected AnnotationRenderSettings |
getAnnoRenderSettings()
Gets the annotation rendering settings.
|
protected AnnotationProfile |
getAnnotationProfile() |
protected Collection<Annotation> |
getAnnotations()
Returns the annotations contained in the AnnotationPageSegment, if it exists.
|
protected AnnotationTool |
getAnnotationTool() |
protected List<Annotation> |
getSelectedAnnotations()
Returns the currently selected annotations.
|
getRenderControls, getScope, setScope
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, execute, getKey, isAvailable, isSelected, isSelected, setKey
protected Collection<Annotation> getAnnotations()
null
will be returned.protected List<Annotation> getSelectedAnnotations()
protected AnnotationPageSegment getAnnoPageSegment()
null
will be returnedprotected AnnotationTool getAnnotationTool()
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.protected AnnotationRenderSettings getAnnoRenderSettings()
protected AnnotationProfile getAnnotationProfile()
Copyright © 2024 levigo holding gmbh. All rights reserved.