public class DocumentDragViewHandler<T extends DocumentData> extends java.lang.Object implements DragViewHandler<T>
WebDocumentPane,
DragManager| Modifier and Type | Field and Description |
|---|---|
protected WebDocumentPane |
documentPane
Document pane which provides this DragViewHandler.
|
protected static java.awt.Insets |
margin
Document description margin.
|
| Constructor and Description |
|---|
DocumentDragViewHandler(WebDocumentPane documentPane)
Constructs custom DragViewHandler for DocumentData object.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.datatransfer.DataFlavor |
getObjectFlavor()
Returns object flavor that can be used to retrieve dragged object.
|
java.awt.image.BufferedImage |
getView(T document)
Returns image object representation.
|
java.awt.Point |
getViewRelativeLocation(T document)
Returns image object representation location relative to mouse location.
|
protected static final java.awt.Insets margin
protected final WebDocumentPane documentPane
public DocumentDragViewHandler(WebDocumentPane documentPane)
documentPane - document pane which provides this DragViewHandlerpublic java.awt.datatransfer.DataFlavor getObjectFlavor()
getObjectFlavor in interface DragViewHandler<T extends DocumentData>public java.awt.image.BufferedImage getView(T document)
getView in interface DragViewHandler<T extends DocumentData>document - object to create image representation forpublic java.awt.Point getViewRelativeLocation(T document)
getViewRelativeLocation in interface DragViewHandler<T extends DocumentData>document - object return image representation location for