|
JGraph X 0.15.0.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.TransferHandler
com.mxgraph.swing.handler.mxGraphTransferHandler
public class mxGraphTransferHandler
Field Summary | |
---|---|
static Color |
DEFAULT_BACKGROUNDCOLOR
Specifies the background color of the transfer image. |
static boolean |
DEFAULT_TRANSFER_IMAGE_ENABLED
Boolean that specifies if an image of the cells should be created for each transferable. |
protected int |
importCount
Counter for the last imported cell array. |
protected Object[] |
lastImported
Reference to the last imported cell array. |
protected Point |
location
|
protected Object[] |
originalCells
Reference to the original cells for removal after a move. |
protected Color |
transferImageBackground
Specifies the background color for the transfer image. |
protected boolean |
transferImageEnabled
Specifies if a transfer image should be created for the transferable. |
Fields inherited from class javax.swing.TransferHandler |
---|
COPY, COPY_OR_MOVE, MOVE, NONE |
Constructor Summary | |
---|---|
mxGraphTransferHandler()
|
Method Summary | |
---|---|
boolean |
canImport(JComponent comp,
DataFlavor[] flavors)
|
Transferable |
createTransferable(JComponent c)
(non-Javadoc) |
ImageIcon |
createTransferableImage(mxGraphComponent graphComponent,
Object[] cells)
|
void |
exportDone(JComponent c,
Transferable data,
int action)
|
int |
getSourceActions(JComponent c)
|
Color |
getTransferImageBackground()
|
protected boolean |
importCells(mxGraphComponent graphComponent,
Object[] cells,
mxRectangle bounds)
Returns true if the cells have been imported. |
boolean |
importData(JComponent c,
Transferable t)
|
boolean |
isLocalDrag()
Returns true if the DnD operation started from this handler. |
boolean |
isTransferImageEnabled()
|
void |
setLocation(Point location)
|
void |
setTransferImageBackground(Color transferImageBackground)
|
void |
setTransferImageEnabled(boolean transferImageEnabled)
|
Methods inherited from class javax.swing.TransferHandler |
---|
exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean DEFAULT_TRANSFER_IMAGE_ENABLED
public static Color DEFAULT_BACKGROUNDCOLOR
protected Object[] originalCells
protected Object[] lastImported
protected int importCount
protected boolean transferImageEnabled
protected Color transferImageBackground
protected Point location
Constructor Detail |
---|
public mxGraphTransferHandler()
Method Detail |
---|
public void setTransferImageEnabled(boolean transferImageEnabled)
public boolean isTransferImageEnabled()
public void setTransferImageBackground(Color transferImageBackground)
public Color getTransferImageBackground()
public boolean isLocalDrag()
public void setLocation(Point location)
public boolean canImport(JComponent comp, DataFlavor[] flavors)
canImport
in class TransferHandler
public Transferable createTransferable(JComponent c)
createTransferable
in class TransferHandler
TransferHandler.createTransferable(javax.swing.JComponent)
public ImageIcon createTransferableImage(mxGraphComponent graphComponent, Object[] cells)
public void exportDone(JComponent c, Transferable data, int action)
exportDone
in class TransferHandler
public int getSourceActions(JComponent c)
getSourceActions
in class TransferHandler
public boolean importData(JComponent c, Transferable t)
importData
in class TransferHandler
protected boolean importCells(mxGraphComponent graphComponent, Object[] cells, mxRectangle bounds)
|
JGraph X 0.15.0.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |