/** * Returns the bounds of the given cell. */ public mxRectangle getBoundingBox(Object cell) { return getBoundingBox(cell, false); }
/** * Returns the bounding box of the given cell including all connected edges * if includeEdge is true. */ public mxRectangle getBoundingBox(Object cell, boolean includeEdges) { return getBoundingBox(cell, includeEdges, false); }
/** * Returns the bounding box of the given cell including all connected edges * if includeEdge is true. */ public mxRectangle getBoundingBox(Object cell, boolean includeEdges) { return getBoundingBox(cell, includeEdges, false); }
/** * Returns the bounds of the given cell. */ public mxRectangle getBoundingBox(Object cell) { return getBoundingBox(cell, false); }
/** * Refreshes the cell handler. */ public void refresh(mxCellState state) { this.state = state; handles = createHandles(); mxGraph graph = graphComponent.getGraph(); mxRectangle tmp = graph.getBoundingBox(state.getCell()); if (tmp != null) { bounds = tmp.getRectangle(); if (handles != null) { for (int i = 0; i < handles.length; i++) { if (isHandleVisible(i)) { bounds.add(handles[i]); } } } } }
/** * Refreshes the cell handler. */ public void refresh(mxCellState state) { this.state = state; handles = createHandles(); mxGraph graph = graphComponent.getGraph(); mxRectangle tmp = graph.getBoundingBox(state.getCell()); if (tmp != null) { bounds = tmp.getRectangle(); if (handles != null) { for (int i = 0; i < handles.length; i++) { if (isHandleVisible(i)) { bounds.add(handles[i]); } } } } }
|| model.isEdge(cc.getParent())) result = getBoundingBox(cc.getParent(), true, true); result.add(getBoundingBox(cc.getPrevious(), true, true)); result = getBoundingBox(cc.getPrevious(), true, true); result = getBoundingBox(cc.getChild(), true, true); result = getBoundingBox(cell, true); result = getBoundingBox(cell); result = getBoundingBox(cell, true); result = getBoundingBox(cell, true, true); result = getBoundingBox(((mxCollapseChange) change).getCell(), true, true); result = getBoundingBox(((mxVisibleChange) change).getCell(), true, true);
|| model.isEdge(cc.getParent())) result = getBoundingBox(cc.getParent(), true, true); result.add(getBoundingBox(cc.getPrevious(), true, true)); result = getBoundingBox(cc.getPrevious(), true, true); result = getBoundingBox(cc.getChild(), true, true); result = getBoundingBox(cell, true); result = getBoundingBox(cell); result = getBoundingBox(cell, true); result = getBoundingBox(cell, true, true); result = getBoundingBox(((mxCollapseChange) change).getCell(), true, true); result = getBoundingBox(((mxVisibleChange) change).getCell(), true, true);