Ejemplo n.º 1
0
 @Override
 public List<ProcessLayouter> getLayouters() {
   if (layouters == null) {
     layouters = new ArrayList<ProcessLayouter>();
     layouters.add(new SugiyamaLayoutAlgorithm(true, Configuration.getProperties()));
     layouters.add(new SugiyamaLayoutAlgorithm(false, Configuration.getProperties()));
   }
   return layouters;
 }
Ejemplo n.º 2
0
 /**
  * @param model
  * @param layouter
  */
 private static void setDockingPoints(ProcessModel model, SugiyamaLayoutAlgorithm layouter) {
   if ("1"
       .equals(Configuration.getInstance().getProperty(LayoutHelper.CONF_SET_CONNECTION_POINTS))) {
     // correcting points directly at node
     for (ProcessEdge edge : model.getEdges()) {
       LayoutHelper.setDockingPointOffset(edge, layouter.getTopToBottom());
     }
   }
 }