if (resizeParent && !graph.isCellCollapsed(parent)) { mxGeometry g = model.getGeometry(parent);
/** * */ protected void fold(Object cell) { boolean collapse = !graphComponent.getGraph().isCellCollapsed(cell); graphComponent.getGraph().foldCells(collapse, false, new Object[] { cell }); }
/** * */ protected void fold(Object cell) { boolean collapse = !graphComponent.getGraph().isCellCollapsed(cell); graphComponent.getGraph().foldCells(collapse, false, new Object[] { cell }); }
boolean outgoing, boolean includeLoops, boolean recurse) boolean isCollapsed = isCellCollapsed(cell); List<Object> edges = new ArrayList<Object>(); int childCount = model.getChildCount(cell);
boolean isCollapsed = graph.isCellCollapsed(cell); List<Object> edges = new ArrayList<Object>(); int childCount = model.getChildCount(cell);
boolean isCollapsed = graph.isCellCollapsed(cell); List<Object> edges = new ArrayList<Object>(); int childCount = model.getChildCount(cell);
/** * Returns true if the given cell is a valid drop target for the specified * cells. This returns true if the cell is a swimlane, has children and is * not collapsed, or if splitEnabled is true and isSplitTarget returns * true for the given arguments * * @param cell Object that represents the possible drop target. * @param cells Objects that are going to be dropped. * @return Returns true if the cell is a valid drop target for the given * cells. */ public boolean isValidDropTarget(Object cell, Object[] cells) { return cell != null && ((isSplitEnabled() && isSplitTarget(cell, cells)) || (!model .isEdge(cell) && (isSwimlane(cell) || (model .getChildCount(cell) > 0 && !isCellCollapsed(cell))))); }
/** * Returns true if the given cell is a valid drop target for the specified * cells. This returns true if the cell is a swimlane, has children and is * not collapsed, or if splitEnabled is true and isSplitTarget returns * true for the given arguments * * @param cell Object that represents the possible drop target. * @param cells Objects that are going to be dropped. * @return Returns true if the cell is a valid drop target for the given * cells. */ public boolean isValidDropTarget(Object cell, Object[] cells) { return cell != null && ((isSplitEnabled() && isSplitTarget(cell, cells)) || (!model .isEdge(cell) && (isSwimlane(cell) || (model .getChildCount(cell) > 0 && !isCellCollapsed(cell))))); }
/** * Returns the icon used to display the collapsed state of the specified * cell state. This returns null for all edges. */ public ImageIcon getFoldingIcon(mxCellState state) { if (state != null && isFoldingEnabled() && !getGraph().getModel().isEdge(state.getCell())) { Object cell = state.getCell(); boolean tmp = graph.isCellCollapsed(cell); if (graph.isCellFoldable(cell, !tmp)) { return (tmp) ? collapsedIcon : expandedIcon; } } return null; }
if (!graph.isCellVisible(best) || graph.isCellCollapsed(result))
/** * Returns the icon used to display the collapsed state of the specified * cell state. This returns null for all edges. */ public ImageIcon getFoldingIcon(mxCellState state) { if (state != null && isFoldingEnabled() && !getGraph().getModel().isEdge(state.getCell())) { Object cell = state.getCell(); boolean tmp = graph.isCellCollapsed(cell); if (graph.isCellFoldable(cell, !tmp)) { return (tmp) ? collapsedIcon : expandedIcon; } } return null; }
if (!graph.isCellVisible(best) || graph.isCellCollapsed(result))
model.getChildAt(cell, i), visible && (!graph.isCellCollapsed(cell) || cell == currentRoot));
model.getChildAt(cell, i), visible && (!graph.isCellCollapsed(cell) || cell == currentRoot));
if (isResizeParent() && !graph.isCellCollapsed(parent))
if (isResizeParent() && !graph.isCellCollapsed(parent))
/** * Resizes the parents recursively so that they contain the complete area * of the resized child cell. * * @param cell <mxCell> that has been resized. */ public void extendParent(Object cell) { if (cell != null) { Object parent = model.getParent(cell); mxGeometry p = model.getGeometry(parent); if (parent != null && p != null && !isCellCollapsed(parent)) { mxGeometry geo = model.getGeometry(cell); if (geo != null && (p.getWidth() < geo.getX() + geo.getWidth() || p .getHeight() < geo.getY() + geo.getHeight())) { p = (mxGeometry) p.clone(); p.setWidth(Math.max(p.getWidth(), geo.getX() + geo.getWidth())); p.setHeight(Math.max(p.getHeight(), geo.getY() + geo.getHeight())); cellsResized(new Object[] { parent }, new mxRectangle[] { p }); } } } }
/** * Resizes the parents recursively so that they contain the complete area * of the resized child cell. * * @param cell <mxCell> that has been resized. */ public void extendParent(Object cell) { if (cell != null) { Object parent = model.getParent(cell); mxGeometry p = model.getGeometry(parent); if (parent != null && p != null && !isCellCollapsed(parent)) { mxGeometry geo = model.getGeometry(cell); if (geo != null && (p.getWidth() < geo.getX() + geo.getWidth() || p .getHeight() < geo.getY() + geo.getHeight())) { p = (mxGeometry) p.clone(); p.setWidth(Math.max(p.getWidth(), geo.getX() + geo.getWidth())); p.setHeight(Math.max(p.getHeight(), geo.getY() + geo.getHeight())); cellsResized(new Object[] { parent }, new mxRectangle[] { p }); } } } }
&& collapse != isCellCollapsed(cells[i]))
&& collapse != isCellCollapsed(cells[i]))