|
JGraph X 1.2.0.8 |
|||||||||
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 Point |
offset
|
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()
|
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 TransferHandler
public Transferable createTransferable(JComponent c)
createTransferable
in class TransferHandler
TransferHandler.createTransferable(javax.swing.JComponent)
public mxGraphTransferable createGraphTransferable(mxGraphComponent graphComponent, Object[] cells, 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)
|
JGraph X 1.2.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |