src/main/java/com/mxgraph/swing/mxGraphComponent.java
public void drawCell(mxICanvas canvas, Object cell)
		{
			mxCellState state = graph.getView().getState(cell);

			if (state != null
					&& isCellDisplayable(state.getCell())
					&& (!(canvas instanceof mxGraphics2DCanvas) || hitClip(
							(mxGraphics2DCanvas) canvas, state)))
			{
				graph.drawState(canvas, state,
						cell != cellEditor.getEditingCell());
			}

			// Handles special ordering for edges (all in foreground
			// or background) or draws all children in order
			boolean edgesFirst = graph.isKeepEdgesInBackground();
			boolean edgesLast = graph.isKeepEdgesInForeground();

			if (edgesFirst)
			{
				drawChildren(cell, true, false);
			}

			drawChildren(cell, !edgesFirst && !edgesLast, true);

			if (edgesLast)
			{
				drawChildren(cell, true, false);
			}

			if (state != null)
			{
				cellDrawn(canvas, state);
			}
		}
/**
		 * Draws the given cell onto the specified canvas. This is a modified
		 * version of mxGraph.drawCell which paints the label only if the
		 * corresponding cell is not being edited and invokes the cellDrawn hook
		 * after all descendants have been painted.
		 * 
		 * @param canvas
		 *            Canvas onto which the cell should be drawn.
		 * @param cell
		 *            Cell that should be drawn onto the canvas.
		 */
Draws the given cell onto the specified canvas. This is a modified
version of mxGraph.drawCell which paints the label only if the
corresponding cell is not being edited and invokes the cellDrawn hook
after all descendants have been painted.

@param canvas
Canvas onto which the cell should be drawn.
@param cell
Cell that should be drawn onto the canvas.
Draws the given cell onto the specified canvas . This is a modified version of mxGraph . drawCell which paints the label only if the corresponding cell is not being edited and invokes the cellDrawn hook after all descendants have been painted . @param canvas Canvas onto which the cell should be drawn . @param cell Cell that should be drawn onto the canvas .
public void drawCell(mxICanvas canvas, Object cell)
		{
			mxCellState state = graph.getView().getState(cell);
			if (state != null
					&& isCellDisplayable(state.getCell())
					&& (!(canvas instanceof mxGraphics2DCanvas) || hitClip(
							(mxGraphics2DCanvas) canvas, state)))
			{
				graph.drawState(canvas, state,
						cell != cellEditor.getEditingCell());
			}
			boolean edgesFirst = graph.isKeepEdgesInBackground();
			boolean edgesLast = graph.isKeepEdgesInForeground();
			if (edgesFirst)
			{
				drawChildren(cell, true, false);
			}
			drawChildren(cell, !edgesFirst && !edgesLast, true);
			if (edgesLast)
			{
				drawChildren(cell, true, false);
			}
			if (state != null)
			{
				cellDrawn(canvas, state);
			}
		}
public void drawCell ( mxICanvas canvas , Object cell ) { mxCellState state = graph . getView ( ) . getState ( cell ) ; if ( state != null && isCellDisplayable ( state . getCell ( ) ) && ( ! ( canvas instanceof mxGraphics2DCanvas ) || hitClip ( ( mxGraphics2DCanvas ) canvas , state ) ) ) { graph . drawState ( canvas , state , cell != cellEditor . getEditingCell ( ) ) ; } boolean edgesFirst = graph . isKeepEdgesInBackground ( ) ; boolean edgesLast = graph . isKeepEdgesInForeground ( ) ; if ( edgesFirst ) { drawChildren ( cell , true , false ) ; } drawChildren ( cell , ! edgesFirst && ! edgesLast , true ) ; if ( edgesLast ) { drawChildren ( cell , true , false ) ; } if ( state != null ) { cellDrawn ( canvas , state ) ; } }
Draws the given cell onto the specified canvas.
Draws the given cell onto the specified canvas .
// Handles special ordering for edges (all in foreground // or background) or draws all children in order