src/main/java/com/mxgraph/swing/handler/mxConnectPreview.java
protected Object createCell(mxCellState startState, String style)
	{
		mxGraph graph = graphComponent.getGraph();
		mxICell cell = ((mxICell) graph
				.createEdge(null, null, "",
						(startState != null) ? startState.getCell() : null,
						null, style));
		((mxICell) startState.getCell()).insertEdge(cell, true);

		return cell;
	}
/**
	 * Creates a new instance of mxShape for previewing the edge.
	 */
Creates a new instance of mxShape for previewing the edge.
Creates a new instance of mxShape for previewing the edge .
protected Object createCell(mxCellState startState, String style)
	{
		mxGraph graph = graphComponent.getGraph();
		mxICell cell = ((mxICell) graph
				.createEdge(null, null, "",
						(startState != null) ? startState.getCell() : null,
						null, style));
		((mxICell) startState.getCell()).insertEdge(cell, true);
		return cell;
	}
protected Object createCell ( mxCellState startState , String style ) { mxGraph graph = graphComponent . getGraph ( ) ; mxICell cell = ( ( mxICell ) graph . createEdge ( null , null , "" , ( startState != null ) ? startState . getCell ( ) : null , null , style ) ) ; ( ( mxICell ) startState . getCell ( ) ) . insertEdge ( cell , true ) ; return cell ; }
Creates a new instance of mxShape for previewing the edge.
Creates a new instance of mxShape for previewing the edge .