Class ErdEntityGroup

  • All Implemented Interfaces:
    com._1c.g5.v8.dt.diagram.framework.IEntity, com._1c.g5.v8.dt.diagram.framework.IPosition, IErdEntity
    Direct Known Subclasses:
    ErdSubsystemGroup

    public class ErdEntityGroup
    extends AbstractErdEntity
    Implementation of AbstractErdEntity. Represents entity that contains other entities inside. Group has relation to each entity that inner entities has relation to.
    • Constructor Detail

      • ErdEntityGroup

        public ErdEntityGroup​(String name,
                              int priority,
                              Collection<IErdEntity> entities,
                              String projectName)
        Constructor.
        Parameters:
        name - - entity group name. Can't be null.
        priority - - entity group priority.
        entities - - entities that will be in created group. Can't be null.
        projectName - - project name. Can't be null
      • ErdEntityGroup

        public ErdEntityGroup​(String name,
                              int priority,
                              Collection<IErdEntity> entities,
                              String projectName,
                              int x,
                              int y,
                              int width,
                              int height)
        Constructor.
        Parameters:
        name - - entity group name. Can't be null.
        priority - - entity group priority.
        entities - - entities that will be in created group. Can't be null.
        projectName - - project name. Can't be null
        x - - x coordinate of created group.
        y - - y coordinate of created group.
        width - - width of created group.
        height - - height of created group.
    • Method Detail

      • addEntities

        public void addEntities​(Collection<IErdEntity> entities)
        Adds entities to group.
        Parameters:
        entities - - entities to add to group. Can't be null.
      • removeEntities

        public void removeEntities​(Collection<IErdEntity> entities)
        Removes entities from group.
        Parameters:
        entities - - entities to remove from group. Can't be null.
      • removeEntity

        public void removeEntity​(IErdEntity entity)
        Removes entity from group.
        Parameters:
        entity - - entity to remove from group. Can't be null.
      • setEntities

        public void setEntities​(Collection<IErdEntity> entities)
        Sets group entities.
        Parameters:
        entities - - entities to set. Can't be null.
      • getEntities

        public Collection<IErdEntity> getEntities()
        Returns group entities.
        Returns:
        group entities. Can't be null.
      • getData

        public Collection<com._1c.g5.v8.dt.diagram.framework.model.Data> getData()
      • getEntityType

        public int getEntityType()
        Specified by:
        getEntityType in interface com._1c.g5.v8.dt.diagram.framework.IEntity
        Overrides:
        getEntityType in class com._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
      • addRelation

        public void addRelation​(com._1c.g5.v8.dt.diagram.framework.IEntity entity)
        Specified by:
        addRelation in interface com._1c.g5.v8.dt.diagram.framework.IEntity
        Overrides:
        addRelation in class com._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
      • getProjectName

        public String getProjectName()
        Can't return null.
        Returns:
        associated with this entity project name. Can return null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object