public class FitExcecutor extends AbstractInstructionExecutor<FitInstruction,Collection<Object>>
InstructionExecutor
to handle FitInstruction
s.
Requires an instance of PageView
in the collection of context objects. The
PageView
must be displaying a Page
.
Constructor and Description |
---|
FitExcecutor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canExecuteSpecific(FitInstruction instruction,
Collection<Object> context)
Template method for implementors.
|
protected void |
executeSpecific(FitInstruction instruction,
Collection<Object> context)
Template method for implementors.
|
protected RenderControls |
getRenderControls(PageView pageView)
Returns the render controls which are used by this executor.
|
canExecute, execute, pertainsTo
@CallOnEDT protected boolean canExecuteSpecific(FitInstruction instruction, Collection<Object> context)
AbstractInstructionExecutor
Instruction
, using the given context object where necessary. The default
implementation does nothing and returns true
.canExecuteSpecific
in class AbstractInstructionExecutor<FitInstruction,Collection<Object>>
instruction
- the instruction in question. It is guaranteed to be non-null
.context
- holds additional, implementation-specific informationtrue
if this instance is able to execute the given Instruction
using the given context object where necessary; false
otherwise.@CallOnEDT protected void executeSpecific(FitInstruction instruction, Collection<Object> context)
AbstractInstructionExecutor
Instruction
.executeSpecific
in class AbstractInstructionExecutor<FitInstruction,Collection<Object>>
instruction
- holds the information which specifies what to perform. This
Instruction
is guaranteed to be non-null
.context
- holds additional, implementation-specific informationprotected RenderControls getRenderControls(PageView pageView)
By default, this method returns the current page controls. This method can be overridden, if it is desired to use the document render controls instead.
pageView
- the pageViewCopyright © 2024 levigo holding gmbh. All rights reserved.