public class CopyRasterizedSelectionCommand extends AbstractSelectionCommand
Constructor and Description |
---|
CopyRasterizedSelectionCommand() |
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.
|
int |
getExportResolution()
Return the export resolution.
|
PageView |
getPageView()
Returns the page view.
|
protected BufferedImage |
getRendering(Page page,
Rectangle2D area) |
protected boolean |
isAllowed(Selection selection) |
boolean |
isAvailable()
Returns an indicator whether the command is available and therefore integrable.
|
void |
setExportResolution(int exportResolution)
Set the resolution at which to export the page images.
|
void |
setPageView(PageView pageView)
Invoked by command injection.
|
clearFirstSelection, getFirstSelection, getSelections
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isSelected, isSelected, setKey
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class AbstractSelectionCommand
true
if the command can/may be executed in the current context,
false
otherwise.protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
protected boolean isAllowed(Selection selection)
public boolean isAvailable()
Command
isAvailable
in interface Command
isAvailable
in class InjectedCommand
true
- available false
- not availableCommand.isAvailable()
protected BufferedImage getRendering(Page page, Rectangle2D area)
public void setExportResolution(int exportResolution)
public int getExportResolution()
public PageView getPageView()
AbstractPageViewCommand
getPageView
in class AbstractPageViewCommand
public void setPageView(PageView pageView)
AbstractPageViewCommand
Developers should not invoke this method in any direct way.
setPageView
in class AbstractPageViewCommand
Copyright © 2024 levigo holding gmbh. All rights reserved.