Class BpEntity

  • All Implemented Interfaces:
    com._1c.g5.v8.dt.diagram.framework.IEntity, com._1c.g5.v8.dt.diagram.framework.IPosition
    Direct Known Subclasses:
    ActivityEntity, ConditionEntity, DummyEntity, SwitchEntity

    public class BpEntity
    extends com._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
    BP entity implementation.
    • Field Detail

      • modelObjectId

        protected long modelObjectId
        associated with this entity model object id.
    • Constructor Detail

      • BpEntity

        public BpEntity​(String name,
                        int priority,
                        int x,
                        int y,
                        int width,
                        int height,
                        GraphicalSchemeItemType type)
        Constructor.
        Parameters:
        name - - entity name. Can't be null.
        priority - - entity priority.
        x - - x coordinate of entity.
        y - - y coordinate of entity.
        width - - width of entity.
        height - - height of entity.
        type - - entity type.
      • BpEntity

        public BpEntity​(int priority,
                        GraphicalSchemeFigure modelObject)
        Constructor.
        Parameters:
        priority - - entity priority.
        modelObject - - associated with this entity model object. Can't be null.
    • Method Detail

      • 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
      • getModelObject

        public GraphicalSchemeFigure getModelObject()
        Returns model object.
        Returns:
        model object. Can return null.
      • getModelObjectId

        public long getModelObjectId()
        Returns model object bm id.
        Returns:
        model object bm id.
      • setModelObjectId

        public void setModelObjectId​(long modelObjectId)
        Sets model object bm id.
        Parameters:
        modelObjectId - - model object bm id.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object