Class BpRouter

  • All Implemented Interfaces:
    org.eclipse.draw2d.ConnectionRouter

    public class BpRouter
    extends com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPointCreatingRouter
    This connection orthogonally router routes connection through points from source to target.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.draw2d.ConnectionRouter

        org.eclipse.draw2d.ConnectionRouter.NullConnectionRouter
    • Field Summary

      • Fields inherited from interface org.eclipse.draw2d.ConnectionRouter

        NULL
    • Constructor Summary

      Constructors 
      Constructor Description
      BpRouter()
      Constructor.
      BpRouter​(int tolerance)
      Constructor
    • Constructor Detail

      • BpRouter

        public BpRouter()
        Constructor.
      • BpRouter

        public BpRouter​(int tolerance)
        Constructor
        Parameters:
        tolerance - - connections tolerance. Line will be processed as straight line if |point.x(y) - otherPoint.x(y)| <= tolerance
    • Method Detail

      • route

        public void route​(org.eclipse.draw2d.Connection connection)
      • getTolerance

        public int getTolerance()
        Returns connection tolerance.
        Returns:
        connection tolerance.
      • getCleanPath

        public org.eclipse.draw2d.geometry.PointList getCleanPath​(org.eclipse.draw2d.geometry.PointList path)
        Overrides:
        getCleanPath in class com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPointCreatingRouter
      • clearAutoCreatedPoitns

        public void clearAutoCreatedPoitns()
        Overrides:
        clearAutoCreatedPoitns in class com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractPointCreatingRouter