Class BpEntity
- java.lang.Object
-
- com._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
-
- com._1c.g5.v8.dt.bp.scheme.framework.model.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 Summary
Fields Modifier and Type Field Description protected long
modelObjectId
associated with this entity model object id.
-
Constructor Summary
Constructors Constructor Description BpEntity(int priority, GraphicalSchemeFigure modelObject)
Constructor.BpEntity(String name, int priority, int x, int y, int width, int height, GraphicalSchemeItemType type)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Collection<com._1c.g5.v8.dt.diagram.framework.model.Data>
getData()
int
getEntityType()
GraphicalSchemeFigure
getModelObject()
Returns model object.long
getModelObjectId()
Returns model object bm id.GraphicalSchemeItemType
getType()
Returns entity type.int
hashCode()
void
setModelObjectId(long modelObjectId)
Sets model object bm 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 benull
.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 benull
.
-
-
Method Detail
-
getData
public Collection<com._1c.g5.v8.dt.diagram.framework.model.Data> getData()
-
getEntityType
public int getEntityType()
- Specified by:
getEntityType
in interfacecom._1c.g5.v8.dt.diagram.framework.IEntity
- Overrides:
getEntityType
in classcom._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.
-
getType
public GraphicalSchemeItemType getType()
Returns entity type.- Returns:
- entity type. Can't return
null
.
-
-