/** * Constructs a new graph model. If no root is specified * then a new root mxCell with a default layer is created. * * @param root Cell that represents the root cell. */ public mxGraphModel(Object root) { currentEdit = createUndoableEdit(); if (root != null) { setRoot(root); } else { clear(); } }
/** * Constructs a new graph model. If no root is specified * then a new root mxCell with a default layer is created. * * @param root Cell that represents the root cell. */ public mxGraphModel(Object root) { currentEdit = createUndoableEdit(); if (root != null) { setRoot(root); } else { clear(); } }