/** * Returns true if the given swimlane should be ignored. */ protected boolean isSwimlaneIgnored(Object swimlane) { return !getGraph().isSwimlane(swimlane); }
/** * Returns true if the given swimlane should be ignored. */ protected boolean isSwimlaneIgnored(Object swimlane) { return !getGraph().isSwimlane(swimlane); }
/** * Called if any cells have been added. Calls swimlaneAdded for all swimlanes * where isSwimlaneIgnored returns false. */ protected void cellsAdded(Object[] cells) { if (cells != null) { mxIGraphModel model = getGraph().getModel(); model.beginUpdate(); try { for (int i = 0; i < cells.length; i++) { if (!isSwimlaneIgnored(cells[i])) { swimlaneAdded(cells[i]); } } } finally { model.endUpdate(); } } }
/** * Called if any cells have been added. Calls swimlaneAdded for all swimlanes * where isSwimlaneIgnored returns false. */ protected void cellsAdded(Object[] cells) { if (cells != null) { mxIGraphModel model = getGraph().getModel(); model.beginUpdate(); try { for (int i = 0; i < cells.length; i++) { if (!isSwimlaneIgnored(cells[i])) { swimlaneAdded(cells[i]); } } } finally { model.endUpdate(); } } }
mxIGraphModel model = getGraph().getModel(); Object parent = model.getParent(swimlane); int childCount = model.getChildCount(parent);
mxIGraphModel model = getGraph().getModel(); Object parent = model.getParent(swimlane); int childCount = model.getChildCount(parent);
mxIGraphModel model = getGraph().getModel();
mxIGraphModel model = getGraph().getModel();
mxIGraphModel model = this.getGraph().getModel();
mxIGraphModel model = this.getGraph().getModel();