Class ErdDiagramController

    • Constructor Detail

      • ErdDiagramController

        public ErdDiagramController​(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Constructor
        Parameters:
        progressMonitor - - progress monitor to report progress. Can be null.
      • ErdDiagramController

        public ErdDiagramController​(org.eclipse.core.runtime.IProgressMonitor progressMonitor,
                                    IErdDiagramController parentController,
                                    ErdEntityGroup associatedGroup)
        Constructor.
        Parameters:
        progressMonitor - - progress monitor to report progress. Can be null.
        parentController - - parent diagram controller. null means this is main controller. Can be null.
        associatedGroup - - associated with this controller group. Can be null.
    • Method Detail

      • setRouteAlgorithm

        public void setRouteAlgorithm​(com._1c.g5.v8.dt.diagram.framework.layout.IDiagramLayoutAlgorithm routeAlgorithm)
        Sets edge routing algorithm.
        Parameters:
        routeAlgorithm - - edge route algorithm to set. Can't be null.
      • setLayoutAlgorithm

        public void setLayoutAlgorithm​(com._1c.g5.v8.dt.diagram.framework.layout.IDiagramLayoutAlgorithm layoutAlgorithm)
        Sets diagram layout algorithm.
        Parameters:
        layoutAlgorithm - - layout algorithm to set. Can't be null.
      • setConvertersService

        public void setConvertersService​(com._1c.g5.v8.dt.diagram.framework.core.IConvertersService<MdObject> convertersService)
        Sets converters service.
        Parameters:
        convertersService - - converters service to set. Can't be null.
      • setProjectManager

        public void setProjectManager​(IV8ProjectManager projectManager)
        Sets project manager.
        Parameters:
        projectManager - - projectManager to set. Can't be null.
      • setProgressMonitor

        public void setProgressMonitor​(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Sets progress monitor to report progress.
        Parameters:
        progressMonitor - - progress monitor to report progress. Can be null.
      • getConvertersService

        public com._1c.g5.v8.dt.diagram.framework.core.IConvertersService<MdObject> getConvertersService()
        Returns converters service.
        Returns:
        the convertersService. Can return null.
      • getProjectManager

        public IV8ProjectManager getProjectManager()
        Returns project manager.
        Returns:
        the projectManager. Can return null.
      • getLayoutAlgorithm

        public com._1c.g5.v8.dt.diagram.framework.layout.IDiagramLayoutAlgorithm getLayoutAlgorithm()
        Returns diagram layout algorithm.
        Returns:
        diagram layout algorithm. Can't return null.
      • getRouteAlgorithm

        public com._1c.g5.v8.dt.diagram.framework.layout.IDiagramLayoutAlgorithm getRouteAlgorithm()
        Returns edge routing algorithm.
        Returns:
        edge routing algorithm. Can't return null.
      • initialize

        public void initialize​(Collection<MdObject> objects)
        Specified by:
        initialize in interface com._1c.g5.v8.dt.diagram.framework.IDiagramController<MdObject,​IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
      • addEntities

        public Collection<? extends IErdEntity> addEntities​(Collection<? extends IErdEntity> objects)
        Description copied from interface: IErdDiagramController
        Adds new items to the existing diagram. If diagram already has contained some items, they will be returned.
        Specified by:
        addEntities in interface IErdDiagramController
        Parameters:
        objects - - 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.
      • addItems

        public Collection<MdObject> addItems​(Collection<MdObject> objects,
                                             com._1c.g5.v8.dt.diagram.framework.model.Point location)
        Specified by:
        addItems in interface com._1c.g5.v8.dt.diagram.framework.IDiagramController<MdObject,​IErdEntity,​com._1c.g5.v8.dt.diagram.framework.IRelation>
      • deleteEntities

        public Collection<? extends IErdEntity> deleteEntities​(Collection<? extends IErdEntity> entities)
        Description copied from interface: IErdDiagramController
        Deletes items from the existing diagram. If diagram did not contain some items, they will be returned.
        Specified by:
        deleteEntities in interface IErdDiagramController
        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.
      • initializeLayoutAlgorithm

        protected com._1c.g5.v8.dt.diagram.framework.layout.IDiagramLayoutAlgorithm initializeLayoutAlgorithm()
        Initializes diagram layout algorithm.
        Returns:
        diagram layout algorithm. Can't return null.
      • initializeRouteAlgorithm

        protected com._1c.g5.v8.dt.diagram.framework.layout.IDiagramLayoutAlgorithm initializeRouteAlgorithm()
        Initializes edges routing algorithm.
        Returns:
        edges routing algorithm. Can't return null.