|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.tab.DocumentDragViewHandler<T>
public class DocumentDragViewHandler<T extends DocumentData>
Custom DragViewHandler for WebDocumentPane document.
WebDocumentPane
,
DragManager
Field Summary | |
---|---|
protected WebDocumentPane |
documentPane
Document pane which provides this DragViewHandler. |
protected static java.awt.Insets |
margin
Document description margin. |
Constructor Summary | |
---|---|
DocumentDragViewHandler(WebDocumentPane documentPane)
Constructs custom DragViewHandler for DocumentData object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.awt.Insets margin
protected final WebDocumentPane documentPane
Constructor Detail |
---|
public DocumentDragViewHandler(WebDocumentPane documentPane)
documentPane
- document pane which provides this DragViewHandlerMethod Detail |
---|
public 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 for
public java.awt.Point getViewRelativeLocation(T document)
getViewRelativeLocation
in interface DragViewHandler<T extends DocumentData>
document
- object return image representation location for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |