Class ConditionRelation
- java.lang.Object
-
- com._1c.g5.v8.dt.diagram.framework.model.Relation
-
- com._1c.g5.v8.dt.bp.scheme.framework.model.BpRelation
-
- com._1c.g5.v8.dt.bp.scheme.framework.model.ConditionRelation
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.IRelation
public class ConditionRelation extends BpRelation
Instance of this class represents condition relation. Source should beGraphicalSchemeItemType.CONDITION
entity. Relation can be negative or positive.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bp.scheme.framework.model.BpRelation
DEFAULT_SOURCE_ANCHOR_POSITION, DEFAULT_TARGET_ANCHOR_POSITION
-
-
Constructor Summary
Constructors Constructor Description ConditionRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, GraphicalSchemeConnection modelObject)
Constructor.ConditionRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, boolean isPositive)
Constructor.ConditionRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, boolean isPositive, int sourceAnchorPosition, int targetAnchorPosition)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPositive()
Returnstrue
if relation is positive.-
Methods inherited from class com._1c.g5.v8.dt.bp.scheme.framework.model.BpRelation
equals, getInitialSourceAnchorPosition, getInitialTargetAnchorPosition, getModelObject, getModelObjectId, getName, hashCode, isDecorative, setDecorative, setModelObjectId, setName
-
-
-
-
Constructor Detail
-
ConditionRelation
public ConditionRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, boolean isPositive)
Constructor.- Parameters:
source
- - source. Should beGraphicalSchemeItemType.CONDITION
type. Can't benull
.target
- - target. Can't benull
.name
- - relation name. Can't benull
.isPositive
- -true
if relation is positive.
-
ConditionRelation
public ConditionRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, GraphicalSchemeConnection modelObject)
Constructor.- Parameters:
source
- - source. Should beGraphicalSchemeItemType.CONDITION
type. Can't benull
.target
- - target. Can't benull
.modelObject
- - associated with this relation model object. Can't benull
.
-
ConditionRelation
public ConditionRelation(com._1c.g5.v8.dt.diagram.framework.IEntity source, com._1c.g5.v8.dt.diagram.framework.IEntity target, String name, boolean isPositive, int sourceAnchorPosition, int targetAnchorPosition)
Constructor.- Parameters:
source
- - source. Should beGraphicalSchemeItemType.CONDITION
type. Can't benull
.target
- - target. Can't benull
.name
- - relation name. Can't benull
.isPositive
- -true
if relation is positive.sourceAnchorPosition
- - source anchor position.targetAnchorPosition
- - target anchor position.- See Also:
IAnchorTypes.TOP
,IAnchorTypes.BOTTOM
,IAnchorTypes.LEFT
,IAnchorTypes.RIGHT
-
-