I am dragging a cell from the palette into the graph component. While dragging every cell I am hovering is marked with a blue rectangle. Now I want to check (while dragging!) if the current hovered cell is a valid parent for the dragged cell.\
Example: Cell Type A can only be dropped on cell Type B, etc.
So I want to mark the hovered cell blue if it is a valid parent, otherwise red for example. So I checked the handler classes in com.mxgraph.swing.handler.*, but I don't know which handler does this hovering.
Override mxGraphTransferHandler.importCells or mxGraphComponent.importCells.
answered 01 Sep '11, 06:05