Class 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 be GraphicalSchemeItemType.CONDITION entity. Relation can be negative or positive.
    • 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 be GraphicalSchemeItemType.CONDITION type. Can't be null.
        target - - target. Can't be null.
        name - - relation name. Can't be null.
        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 be GraphicalSchemeItemType.CONDITION type. Can't be null.
        target - - target. Can't be null.
        modelObject - - associated with this relation model object. Can't be null.
      • 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 be GraphicalSchemeItemType.CONDITION type. Can't be null.
        target - - target. Can't be null.
        name - - relation name. Can't be null.
        isPositive - - true if relation is positive.
        sourceAnchorPosition - - source anchor position.
        targetAnchorPosition - - target anchor position.
        See Also:
        IAnchorTypes.TOP, IAnchorTypes.BOTTOM, IAnchorTypes.LEFT, IAnchorTypes.RIGHT
    • Method Detail

      • isPositive

        public boolean isPositive()
        Returns true if relation is positive.
        Returns:
        true if relation is positive.