public void invoke(Object sender, mxEventObject evt) { updateComponents(); graphControl.updatePreferredSize(); } };
public void invoke(Object sender, mxEventObject evt) { updateComponents(); graphControl.updatePreferredSize(); } };
/** * */ public void updateComponents() { Object root = graph.getModel().getRoot(); Hashtable<Object, Component[]> result = updateComponents(root); // Components now contains the mappings which are no // longer used, the result contains the new mappings removeAllComponents(components); components = result; if (!overlays.isEmpty()) { Hashtable<Object, mxICellOverlay[]> result2 = updateCellOverlays(root); // Overlays now contains the mappings from cells which // are no longer in the model, the result contains the // mappings from cells which still exists, regardless // from whether a state exists for a particular cell removeAllOverlays(overlays); overlays = result2; } }
/** * */ public void updateComponents() { Object root = graph.getModel().getRoot(); Hashtable<Object, Component[]> result = updateComponents(root); // Components now contains the mappings which are no // longer used, the result contains the new mappings removeAllComponents(components); components = result; if (!overlays.isEmpty()) { Hashtable<Object, mxICellOverlay[]> result2 = updateCellOverlays(root); // Overlays now contains the mappings from cells which // are no longer in the model, the result contains the // mappings from cells which still exists, regardless // from whether a state exists for a particular cell removeAllOverlays(overlays); overlays = result2; } }
result.putAll(updateComponents(getGraph().getModel().getChildAt( cell, i)));
result.putAll(updateComponents(getGraph().getModel().getChildAt( cell, i)));