use of cbit.vcell.graph.structures.AllStructureSuite in project vcell by virtualcell.
the class BioModelEditorModelPanel method bioModelChange.
private void bioModelChange() {
if (bioModel == null) {
return;
}
reactionCartoonEditorPanel.setModel(bioModel.getModel());
reactionCartoonEditorPanel.setStructureSuite(new AllStructureSuite(this));
bioModel.getRelationshipModel().removeRelationShipListener(reactionCartoonEditorPanel.getReactionCartoonFull());
bioModel.getRelationshipModel().removeRelationShipListener(reactionCartoonEditorPanel.getReactionCartoonMolecule());
bioModel.getRelationshipModel().removeRelationShipListener(reactionCartoonEditorPanel.getReactionCartoonRule());
bioModel.getRelationshipModel().addRelationShipListener(reactionCartoonEditorPanel.getReactionCartoonFull());
bioModel.getRelationshipModel().addRelationShipListener(reactionCartoonEditorPanel.getReactionCartoonMolecule());
bioModel.getRelationshipModel().addRelationShipListener(reactionCartoonEditorPanel.getReactionCartoonRule());
reactionCartoonEditorPanel.getReactionCartoonFull().refreshRelationshipInfo(bioModel.getRelationshipModel());
reactionCartoonEditorPanel.getReactionCartoonMolecule().refreshRelationshipInfo(bioModel.getRelationshipModel());
reactionCartoonEditorPanel.getReactionCartoonRule().refreshRelationshipInfo(bioModel.getRelationshipModel());
// cartoonEditorPanel.setBioModel(bioModel);
reactionTableModel.setBioModel(bioModel);
structureTableModel.setBioModel(bioModel);
speciesTableModel.setBioModel(bioModel);
molecularTypeTableModel.setBioModel(bioModel);
observableTableModel.setBioModel(bioModel);
// reactionCartoonEditorPanel.specialLayout();
}
Aggregations