Interface IErdDiagramController

  • All Superinterfaces:
    com._1c.g5.v8.dt.diagram.framework.IDiagramController<MdObject,​IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
    All Known Implementing Classes:
    DiagramUiController, ErdDiagramController

    public interface IErdDiagramController
    extends com._1c.g5.v8.dt.diagram.framework.IDiagramController<MdObject,​IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
    Extension for IDiagramController. Accept IErdEntity in build methods.
    • Method Detail

      • initializeFromEntities

        void initializeFromEntities​(Collection<? extends IErdEntity> entities)
        Initializes diagram from given items.
        Use this method to initialize new diagram.
        Parameters:
        entities - - diagram entities which will be shown on diagram. Can't be null.
      • addEntities

        Collection<? extends IErdEntity> addEntities​(Collection<? extends IErdEntity> entities)
        Adds new items to the existing diagram. If diagram already has contained some items, they will be returned.
        Parameters:
        entities - - diagram entities which will be added to the existing diagram. Can't be null.
        Returns:
        entities from given collection already containing on diagram. If all items were added to diagram returned collection will be zero size. Can't return null.
      • deleteEntities

        Collection<? extends IErdEntity> deleteEntities​(Collection<? extends IErdEntity> entities)
        Deletes items from the existing diagram. If diagram did not contain some items, they will be returned.
        Parameters:
        entities - - entities to delete. Can't be null.
        Returns:
        entities from given collection not containing on diagram. If all items contained on diagram returned collection will be zero size. Can't return null.
      • getDiagramCoreController

        IErdDiagramCoreController getDiagramCoreController()
        Returns diagram core controller without progress monitor.
        Returns:
        diagram core controller without progress monitor. Can't return null.
      • getParentController

        IErdDiagramController getParentController()
        Returns parent diagram controller.
        Returns:
        parent diagram controller. Returns null if diagram has no parent.
      • getAssociatedGroup

        ErdEntityGroup getAssociatedGroup()
        Returns group associated with this controller. Returns null if there is no associated group.
        Returns:
        group associated with this controller. Can return null.
      • getDiagramCore

        IErdDiagramCore getDiagramCore()
        Returned type changed from IDiagramCore to IErdDiagramCore.
        Specified by:
        getDiagramCore in interface com._1c.g5.v8.dt.diagram.framework.IDiagramController<MdObject,​IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>