Class mxGraphTransferHandler

java.lang.Object
javax.swing.TransferHandler
com.mxgraph.swing.handler.mxGraphTransferHandler
All Implemented Interfaces:
Serializable

public class mxGraphTransferHandler extends TransferHandler
See Also:
  • Field Details

    • DEFAULT_TRANSFER_IMAGE_ENABLED

      public static boolean DEFAULT_TRANSFER_IMAGE_ENABLED
      Boolean that specifies if an image of the cells should be created for each transferable. Default is true.
    • DEFAULT_BACKGROUNDCOLOR

      public static Color DEFAULT_BACKGROUNDCOLOR
      Specifies the background color of the transfer image. If no color is given here then the background color of the enclosing graph component is used. Default is Color.WHITE.
    • originalCells

      protected Object[] originalCells
      Reference to the original cells for removal after a move.
    • lastImported

      protected Transferable lastImported
      Reference to the last imported cell array.
    • initialImportCount

      protected int initialImportCount
      Sets the value for the initialImportCount. Default is 1. Updated in exportDone to contain 0 after a cut and 1 after a copy.
    • importCount

      protected int importCount
      Counter for the last imported cell array.
    • transferImageEnabled

      protected boolean transferImageEnabled
      Specifies if a transfer image should be created for the transferable. Default is DEFAULT_TRANSFER_IMAGE.
    • transferImageBackground

      protected Color transferImageBackground
      Specifies the background color for the transfer image. Default is DEFAULT_BACKGROUNDCOLOR.
    • location

      protected Point location
    • offset

      protected Point offset
  • Constructor Details

    • mxGraphTransferHandler

      public mxGraphTransferHandler()
  • Method Details