Examples of Arc


Examples of org.thechiselgroup.choosel.visualization_component.graph.client.widget.Arc

        LightweightList<VisualItem> visualItems = VisualItemTestUtils
                .createVisualItems(1, 2);
        int newThickness = 4;
        underTest.getArcItemContainer(arcTypeId).setArcThickness(newThickness);

        Arc arc = createArc("arcid", 1, 2);
        arcTypeReturnsArcs(eq(visualItems.get(0)), arc);
        arcTypeReturnsArcs(eq(visualItems.get(1)));

        simulateAddVisualItems(visualItems);
View Full Code Here

Examples of org.thechiselgroup.choosel.visualization_component.graph.client.widget.Arc

    private void verifyArcRemoved(String arcId, String sourceNodeId,
            String targetNodeId) {

        ArgumentCaptor<Arc> captor = ArgumentCaptor.forClass(Arc.class);
        verify(graphDisplay, times(1)).removeArc(captor.capture());
        Arc result = captor.getValue();
        assertEquals(arcId, result.getId());
        assertEquals(sourceNodeId, result.getSourceNodeId());
        assertEquals(targetNodeId, result.getTargetNodeId());
        assertEquals(arcTypeId, result.getType());
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.visualization_component.graph.client.widget.Arc

    private void verifyArcShown(String arcId, String sourceNodeId,
            String targetNodeId) {

        ArgumentCaptor<Arc> captor = ArgumentCaptor.forClass(Arc.class);
        verify(graphDisplay, times(1)).addArc(captor.capture());
        Arc result = captor.getValue();
        assertEquals(arcId, result.getId());
        assertEquals(sourceNodeId, result.getSourceNodeId());
        assertEquals(targetNodeId, result.getTargetNodeId());
        assertEquals(arcTypeId, result.getType());
    }
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.path.Arc

    drawPath();
  }

  public void arc(int rx, int ry, int xAxisRotation, boolean largeArc,
      boolean sweep, int x, int y) {
    steps.add(new Arc(false, rx, ry, xAxisRotation, largeArc, sweep, x, y));
    drawPath();
  }
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.path.Arc

    drawPath();
  }

  public void arcRelatively(int rx, int ry, int xAxisRotation,
      boolean largeArc, boolean sweep, int x, int y) {
    steps.add(new Arc(true, rx, ry, xAxisRotation, largeArc, sweep, x, y));
    drawPath();
  }
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.path.Arc

        path.append(" ").append(curve.getX2()).append(" ").append(
            curve.getY2());
        path.append(" ").append(curve.getX()).append(" ").append(
            curve.getY());
      } else if (step.getClass() == Arc.class) {
        Arc arc = (Arc) step;
        path.append(arc.isRelativeCoords() ? " a" : " A");
        path.append(arc.getRx()).append(",").append(arc.getRy());
        path.append(" ").append(arc.getxAxisRotation());
        path.append(" ").append(arc.isLargeArc() ? "1" : "0").append(
            ",").append(arc.isSweep() ? "1" : "0");
        path.append(" ").append(arc.getX()).append(",").append(
            arc.getY());
      }
    }

    SVGUtil.setAttributeNS(element, "d", path.toString());
  }
View Full Code Here

Examples of org.wikier.trioo.jtrioo.rdf.meta.Arc

    return resource;
  }

  private static void extractProperty(RDFMetaResource resource, String name, Class<?> type, RdfProperty propertyResource) {
    logger.debug("Extracted property '" + propertyResource.type() + "' for the attribute '" + type + " " + name + "'");
    Arc arc = new Arc(new Property(propertyResource.type()), name, type);
    //arc.setMultivalued(propertyResource.multivalued());
    arc.setOptional(propertyResource.optional());
    resource.addProperty(arc);
  }
View Full Code Here

Examples of org.woped.qualanalysis.soundness.marking.Arc

                        equalMarking = m;
                    }
                }

                if (equalMarking == null) {
                    currentMarking.addSuccessor(new Arc(newMarking, transitions[i]));
                    newMarking.setPredecessor(currentMarking);
                    markingsToCheck.add(newMarking);
                } else {
                    currentMarking.addSuccessor(new Arc(equalMarking, transitions[i]));
                }

            }
        }
        mNet.getMarkings().addAll(markings);
View Full Code Here

Examples of org.woped.qualanalysis.soundness.marking.Arc

    marking[1].setInitial(false);
    marking[2].setInitial(true);
    marking[2].setPredecessor(marking[1]);
    marking[1].setPredecessor(marking[0]);
   
    marking[2].addSuccessor(new Arc(marking[1], transitions[2]));
    marking[1].addSuccessor(new Arc(marking[0], transitions[0]));
    marking[1].addSuccessor(new Arc(marking[0], transitions[1]));
    marking[0].addSuccessor(new Arc(marking[2], transitions[3]));
   
    for(int i = 0; i < marking.length; i++)
      markings.add(marking[i]);
  }
View Full Code Here

Examples of org.woped.quantana.graph.Arc

            y.setTempRuns(val);
            m.incIteration();
            y.setIteration(m.getIteration());
            if (m.isAndJoin())
              m.setJoinReached(true);
            np.getSecond().getSuccessor().add(new Arc(y, a.getProbability()));
            Key k = new Key(m.getId(), val);
            unfoldedNet.put(k, y);
           
            if (!(containsElement(q, m)))
              q.addLast(new NodePair(m, y));
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.