Search in sources :

Example 6 with AllStructureSuite

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();
}
Also used : AllStructureSuite(cbit.vcell.graph.structures.AllStructureSuite)

Aggregations

AllStructureSuite (cbit.vcell.graph.structures.AllStructureSuite)6 Structure (cbit.vcell.model.Structure)4 Diagram (cbit.vcell.model.Diagram)3 Point (java.awt.Point)3 ArrayList (java.util.ArrayList)3 ContainerShape (cbit.gui.graph.ContainerShape)2 ElipseShape (cbit.gui.graph.ElipseShape)2 RubberBandEdgeShape (cbit.gui.graph.RubberBandEdgeShape)2 RubberBandRectShape (cbit.gui.graph.RubberBandRectShape)2 Shape (cbit.gui.graph.Shape)2 CatalystShape (cbit.vcell.graph.CatalystShape)2 ContainerContainerShape (cbit.vcell.graph.ContainerContainerShape)2 FluxReactionShape (cbit.vcell.graph.FluxReactionShape)2 ProductShape (cbit.vcell.graph.ProductShape)2 ReactantShape (cbit.vcell.graph.ReactantShape)2 ReactionContainerShape (cbit.vcell.graph.ReactionContainerShape)2 ReactionParticipantShape (cbit.vcell.graph.ReactionParticipantShape)2 ReactionRuleDiagramShape (cbit.vcell.graph.ReactionRuleDiagramShape)2 ReactionStepShape (cbit.vcell.graph.ReactionStepShape)2 RuleParticipantSignatureDiagramShape (cbit.vcell.graph.RuleParticipantSignatureDiagramShape)2