Examples of CrossPointSegment


Examples of com.github.jknack.antlr4ide.ui.railroad.figures.primitives.CrossPointSegment

  public BypassSegment(final EObject eObject, final ISegmentFigure child,
      final PrimitiveFigureFactory primitiveFactory) {
    super(eObject);
    setEntry(primitiveFactory.createCrossPoint(this));
    CrossPointSegment crossPointSegment = new CrossPointSegment(eObject, primitiveFactory);
    if (ILayoutConstants.routeOptionalTop()) {
      add(crossPointSegment);
      add(child);
    } else {
      add(child);
      add(crossPointSegment);
    }
    setExit(primitiveFactory.createCrossPoint(this));
    primitiveFactory.createConnection(getEntry(), crossPointSegment.getEntry(), this,
        ILayoutConstants.CONCAVE_START);
    primitiveFactory.createConnection(crossPointSegment.getExit(), getExit(), this,
        ILayoutConstants.CONCAVE_END);
    primitiveFactory.createConnection(getEntry(), child.getEntry(), this,
        ILayoutConstants.CONCAVE_START);
    primitiveFactory.createConnection(child.getExit(), getExit(), this,
        ILayoutConstants.CONCAVE_END);
View Full Code Here

Examples of com.github.jknack.antlr4ide.ui.railroad.figures.primitives.CrossPointSegment

  public LoopSegment(final EObject eObject, final ISegmentFigure child,
      final PrimitiveFigureFactory primitiveFactory) {
    super(eObject);
    setEntry(primitiveFactory.createCrossPoint(this));
    CrossPointSegment crossPointSegment = new CrossPointSegment(eObject, primitiveFactory);
    if (ILayoutConstants.routeMultipleTop()) {
      add(crossPointSegment);
      add(child);
    } else {
      add(child);
      add(crossPointSegment);
    }
    setExit(primitiveFactory.createCrossPoint(this));
    primitiveFactory.createConnection(getExit(), crossPointSegment.getExit(), this,
        ILayoutConstants.CONVEX_START);
    primitiveFactory.createConnection(crossPointSegment.getEntry(), getEntry(), this,
        ILayoutConstants.CONVEX_END);
    primitiveFactory.createConnection(getEntry(), child.getEntry(), this,
        ILayoutConstants.CONCAVE_START);
    primitiveFactory.createConnection(child.getExit(), getExit(), this,
        ILayoutConstants.CONCAVE_END);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.