/** * Draws the child edges and/or all other children in the given cell * depending on the boolean arguments. */ protected void drawChildren(Object cell, boolean edges, boolean others) { mxIGraphModel model = graph.getModel(); int childCount = model.getChildCount(cell); for (int i = 0; i < childCount; i++) { Object child = model.getChildAt(cell, i); boolean isEdge = model.isEdge(child); if ((others && !isEdge) || (edges && isEdge)) { drawCell(canvas, model.getChildAt(cell, i)); } } }
/** * Draws the child edges and/or all other children in the given cell * depending on the boolean arguments. */ protected void drawChildren(Object cell, boolean edges, boolean others) { mxIGraphModel model = graph.getModel(); int childCount = model.getChildCount(cell); for (int i = 0; i < childCount; i++) { Object child = model.getChildAt(cell, i); boolean isEdge = model.isEdge(child); if ((others && !isEdge) || (edges && isEdge)) { drawCell(canvas, model.getChildAt(cell, i)); } } }
/** * Draws the preview using the graphics canvas. */ protected void paintPreview(mxGraphics2DCanvas canvas) { graphComponent.getGraphControl().drawCell(graphComponent.getCanvas(), previewState.getCell()); }
/** * Hook to draw the root cell into the canvas. */ protected void drawFromRootCell() { drawCell(canvas, graph.getModel().getRoot()); }
/** * Draws the preview using the graphics canvas. */ protected void paintPreview(mxGraphics2DCanvas canvas) { graphComponent.getGraphControl().drawCell(graphComponent.getCanvas(), previewState.getCell()); }
/** * Hook to draw the root cell into the canvas. */ protected void drawFromRootCell() { drawCell(canvas, graph.getModel().getRoot()); }