|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.swing.thumbnailview.dnd.RasterizedPageImageExportHandler
public class RasterizedPageImageExportHandler
An ExportHandler
exporting the rasterized image of the first selected
page. The DataFlavor
used is JadiceRasteredImageDataFlavor
.
JadiceRasteredImageDataFlavor
Constructor Summary | |
---|---|
RasterizedPageImageExportHandler()
|
Method Summary | |
---|---|
int |
getExportAction(List<Page> selection,
ExportParameters parameters)
Return the provided DnD actions for given selection. |
int |
getExportResolution()
Return the export resolution. |
Object |
getTransferData(List<Page> selection,
DataFlavor flavor,
ExportParameters parameters)
Return the transfer data representation of the given selection. |
List<? extends DataFlavor> |
populateTransferDataFlavors(List<Page> selection,
ExportParameters parameters)
Return the list of DataFlavor (s) supported by this transfer handler. |
void |
setExportResolution(int exportResolution)
Set the resolution at which to export the page images. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RasterizedPageImageExportHandler()
Method Detail |
---|
public Object getTransferData(List<Page> selection, DataFlavor flavor, ExportParameters parameters) throws UnsupportedFlavorException
ExportHandler
getTransferData
in interface ExportHandler<List<Page>>
selection
- the selection of items to exportflavor
- The flavor in which the transfer data shall be exportedparameters
- the export parameters containing additional context information
UnsupportedFlavorException
- if the flavor is not supported by this ExportHandler
public List<? extends DataFlavor> populateTransferDataFlavors(List<Page> selection, ExportParameters parameters)
ExportHandler
Return the list of DataFlavor
(s) supported by this transfer handler. The
DataFlavor
(s) supported by this export handler may depend on the selection and the
source ViewComponent
.
If some prerequisites of the specific ExportHandler
are not met, it may return an empty
list.
populateTransferDataFlavors
in interface ExportHandler<List<Page>>
selection
- the selection of items to exportparameters
- the export parameters containing additional context information
DataFlavor
s.public int getExportAction(List<Page> selection, ExportParameters parameters)
ExportHandler
getExportAction
in interface ExportHandler<List<Page>>
selection
- the selection of items to exportparameters
- the export parameters containing additional context information
int
one of the DnDConstants
action constants. Returns which DnD
action will be provided by this export handler for the given flavor. If the flavor is
not supported DnDConstants.ACTION_NONE
will be returned.ExportHandler.getExportAction(Object,
ExportParameters)
public void setExportResolution(int exportResolution)
exportResolution
- public int getExportResolution()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |