/** * Moves the cells by the given amount. This is a shortcut method. */ public Object[] moveCells(Object[] cells, double dx, double dy) { return moveCells(cells, dx, dy, false); }
/** * Clones and inserts the given cells into the graph using the move method * and returns the inserted cells. This shortcut is used if cells are * inserted via datatransfer. */ public Object[] importCells(Object[] cells, double dx, double dy, Object target, Point location) { return graph.moveCells(cells, dx, dy, true, target, location); }
/** * Moves the cells by the given amount. This is a shortcut method. */ public Object[] moveCells(Object[] cells, double dx, double dy) { return moveCells(cells, dx, dy, false); }
/** * Moves or clones the cells and moves the cells or clones by the given * amount. This is a shortcut method. */ public Object[] moveCells(Object[] cells, double dx, double dy, boolean clone) { return moveCells(cells, dx, dy, clone, null, null); }
/** * Moves or clones the cells and moves the cells or clones by the given * amount. This is a shortcut method. */ public Object[] moveCells(Object[] cells, double dx, double dy, boolean clone) { return moveCells(cells, dx, dy, clone, null, null); }
/** * Clones and inserts the given cells into the graph using the move method * and returns the inserted cells. This shortcut is used if cells are * inserted via datatransfer. */ public Object[] importCells(Object[] cells, double dx, double dy, Object target, Point location) { return graph.moveCells(cells, dx, dy, true, target, location); }
graph.moveCells(vertexArray, dx, dy);
graph.moveCells(vertexArray, dx, dy);
/** * */ public Object[] stop(boolean commit, MouseEvent e, double dx, double dy, boolean clone, Object target) { Object[] cells = movingCells; reset(); mxGraph graph = graphComponent.getGraph(); graph.getModel().beginUpdate(); try { if (commit) { double s = graph.getView().getScale(); cells = graph.moveCells(cells, dx / s, dy / s, clone, target, e.getPoint()); } fireEvent(new mxEventObject(mxEvent.STOP, "event", e, "commit", commit)); } finally { graph.getModel().endUpdate(); } return cells; }
/** * */ public Object[] stop(boolean commit, MouseEvent e, double dx, double dy, boolean clone, Object target) { Object[] cells = movingCells; reset(); mxGraph graph = graphComponent.getGraph(); graph.getModel().beginUpdate(); try { if (commit) { double s = graph.getView().getScale(); cells = graph.moveCells(cells, dx / s, dy / s, clone, target, e.getPoint()); } fireEvent(new mxEventObject(mxEvent.STOP, "event", e, "commit", commit)); } finally { graph.getModel().endUpdate(); } return cells; }
Object[] tmp = graph.moveCells(cells, dx, dy, clone, target, e.getPoint());
Object[] tmp = graph.moveCells(cells, dx, dy, clone, target, e.getPoint());
geometry.setHeight(bounds.getHeight() + 2 * border + top); graph.getModel().setGeometry(group, geometry); graph.moveCells(children, border + left - bounds.getX(), border + top - bounds.getY());
geometry.setHeight(bounds.getHeight() + 2 * border + top); graph.getModel().setGeometry(group, geometry); graph.moveCells(children, border + left - bounds.getX(), border + top - bounds.getY());
moveCells(children, -childBounds.getX() + size.getWidth() + border, -childBounds.getY()
moveCells(children, -childBounds.getX() + size.getWidth() + border, -childBounds.getY()