| 
 | JGraph X 1.4.1.0 | |||||||||
| 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_BACKGROUNDCOLORSpecifies the background color of the transfer image. | 
| static boolean | DEFAULT_TRANSFER_IMAGE_ENABLEDBoolean that specifies if an image of the cells should be created for each transferable. | 
| protected  int | importCountCounter for the last imported cell array. | 
| protected  Object[] | lastImportedReference to the last imported cell array. | 
| protected  Point | location | 
| protected  Point | offset | 
| protected  Object[] | originalCellsReference to the original cells for removal after a move. | 
| protected  Color | transferImageBackgroundSpecifies the background color for the transfer image. | 
| protected  boolean | transferImageEnabledSpecifies 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() | |
| 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
protected Point offset
| 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 value)
public void setOffset(Point value)
public boolean canImport(JComponent comp,
                         DataFlavor[] flavors)
canImport in class TransferHandlerpublic Transferable createTransferable(JComponent c)
createTransferable in class TransferHandlerTransferHandler.createTransferable(javax.swing.JComponent)
public mxGraphTransferable createGraphTransferable(mxGraphComponent graphComponent,
                                                   Object[] cells,
                                                   ImageIcon icon)
public mxGraphTransferable createGraphTransferable(mxGraphComponent graphComponent,
                                                   Object[] cells,
                                                   mxRectangle bounds,
                                                   ImageIcon icon)
public ImageIcon createTransferableImage(mxGraphComponent graphComponent,
                                         Object[] cells)
public void exportDone(JComponent c,
                       Transferable data,
                       int action)
exportDone in class TransferHandler
protected void removeCells(mxGraphComponent graphComponent,
                           Object[] cells)
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)
protected Object[] importCells(mxGraphComponent graphComponent,
                               Object[] cells,
                               double dx,
                               double dy,
                               Object target,
                               Point location)
| 
 | JGraph X 1.4.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||