|
Hey, \nI want to multi select Cells to move them together.\nI know that there is the Method mxGraphComponent.getCells(Rectangle).\nBut then i just got the Cells and i dont moved them. \nI think this could be done via mouseDragged. \nIs there Method in jGraph which can select some cells and move them together? |
|
Hey Guy's i solved the Problem. \nYou can create an Rectangle via Mouse Methods (mousePressed, mouseReleased etc.).\nAfter this u use the Method mxGraphComponent.getCells(Rectangle) and then you get the Cells which are in the rectangle. Then you use the cells in the rectangle to select them.\nmxGraph.selectCellsForEvent(Object[], MouseEvent) \nAfter this u can move them via mouse drag automatically. |
|
Try the Rubberband Handler \n
|