Class SwitchEntity
- java.lang.Object
-
- com._1c.g5.v8.dt.diagram.framework.model.AbstractEntity
-
- com._1c.g5.v8.dt.bp.scheme.framework.model.BpEntity
-
- com._1c.g5.v8.dt.bp.scheme.framework.model.SwitchEntity
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.IEntity
,com._1c.g5.v8.dt.diagram.framework.IPosition
public class SwitchEntity extends BpEntity
Switch entity. Contains cases.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bp.scheme.framework.model.BpEntity
modelObjectId
-
-
Constructor Summary
Constructors Constructor Description SwitchEntity(int priority, GraphicalSchemeFigure modelObject)
Constructor.SwitchEntity(String name, int priority, int x, int y, int width, int height)
Constructor.SwitchEntity(String name, int priority, int x, int y, int width, int height, List<SwitchCase> cases)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCase(SwitchCase caze)
Adds case to cases.List<SwitchCase>
getCases()
Returns switch cases.GraphicalSchemeSwitch
getModelObject()
Returns model object.void
removeCase(SwitchCase caze)
Removes case from cases.-
Methods inherited from class com._1c.g5.v8.dt.bp.scheme.framework.model.BpEntity
equals, getData, getEntityType, getModelObjectId, getType, hashCode, setModelObjectId
-
-
-
-
Constructor Detail
-
SwitchEntity
public SwitchEntity(String name, int priority, int x, int y, int width, int height)
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.
-
SwitchEntity
public SwitchEntity(String name, int priority, int x, int y, int width, int height, List<SwitchCase> cases)
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.cases
- - cases. Can't benull
.
-
SwitchEntity
public SwitchEntity(int priority, GraphicalSchemeFigure modelObject)
Constructor.- Parameters:
priority
- - entity priority.modelObject
- - associated with this entity model object. Can't benull
.
-
-
Method Detail
-
addCase
public void addCase(SwitchCase caze)
Adds case to cases.- Parameters:
caze
- - case to add. Can't benull
.
-
removeCase
public void removeCase(SwitchCase caze)
Removes case from cases.- Parameters:
caze
- - case to remove. Can't benull
.
-
getCases
public List<SwitchCase> getCases()
Returns switch cases.- Returns:
- switch cases. Can't return
null
.
-
getModelObject
public GraphicalSchemeSwitch getModelObject()
Description copied from class:BpEntity
Returns model object.- Overrides:
getModelObject
in classBpEntity
- Returns:
- model object. Can return
null
.
-
-