Examples of addAttribute()


Examples of org.graphstream.graph.Node.addAttribute()

  }

  private void renderShipment(Graph g, Shipment shipment, Label label, boolean renderShipments) {

    Node n1 = g.addNode(makeId(shipment.getId(),shipment.getPickupLocationId()));
    if(label.equals(Label.ID)) n1.addAttribute("ui.label", shipment.getId());
    n1.addAttribute("x", shipment.getPickupCoord().getX());
    n1.addAttribute("y", shipment.getPickupCoord().getY());
    n1.setAttribute("ui.class", "pickup");

    Node n2 = g.addNode(makeId(shipment.getId(),shipment.getDeliveryLocationId()));

Examples of org.graphstream.graph.implementations.AdjacencyListGraph.addAttribute()

  @Test
  public void check() {
    AdjacencyListGraph g = new AdjacencyListGraph("test");
    g.addSink(new TestObject());
   
    g.addAttribute(GRAPH_BINDING_ATTR, GRAPH_BINDING_VALUE);
    g.addNode(NODE_ID).addAttribute(NODE_BINDING_ATTR, NODE_BINDING_VALUE);
    g.addNode("otherNode");
    g.addEdge(EDGE_ID, NODE_ID, "otherNode").addAttribute(EDGE_BINDING_ATTR, EDGE_BINDING_VALUE);
  }
}

Examples of org.graphstream.graph.implementations.MultiGraph.addAttribute()

   
    //result-panel
    JPanel resultPanel = createResultPanel();
    //graphstream-panel
    Graph g = new MultiGraph("g");
    g.addAttribute("ui.quality");
    g.addAttribute("ui.antialias");
    g.addAttribute("ui.stylesheet", styleSheet);

    JPanel graphStreamPanel = new JPanel();
    graphStreamPanel.setPreferredSize(new Dimension((int)(800*scaling),(int)(460*scaling)));
 

Examples of org.graphstream.ui.graphicGraph.GraphicSprite.addAttribute()

        GraphicSprite S1 = graphic.getSprite("S1");
        GraphicSprite S2 = graphic.getSprite("S2");

        if (S2 != null) {
          S2.addAttribute("ui.foobar", "foobar");
          S2.setPosition(1, 2, 3, Style.Units.GU);
        }

        if (S1 != null)
          S1.setPosition(0.5f);

Examples of org.hibernate.tool.hbm2x.pojo.AnnotationBuilder.addAttribute()

          .addAttribute("fetch", "singleValue");
   
    assertEquals("@javax.persistence.OneToMany(cascade={val1, val2}, fetch=singleValue)", builder.getResult());
   
    builder = AnnotationBuilder.createAnnotation("javax.persistence.OneToMany");
    builder.addAttribute("cascade", (String[])null);
    builder.addAttribute("fetch", (String)null);
   
    assertEquals("@javax.persistence.OneToMany", builder.getResult());

    builder = AnnotationBuilder.createAnnotation("abc");

Examples of org.htmlcleaner.TagNode.addAttribute()

  }

  public void buildEditLinkUrl(int section) {
    if (fParserInput.getAllowSectionEdit()) {
      TagNode divTagNode = new TagNode("div");
      divTagNode.addAttribute("style", "font-size:90%;float:right;margin-left:5px;", false);
      divTagNode.addChild(new ContentToken("["));
      append(divTagNode);

      String url = "";
      try {

Examples of org.infoglue.cms.entities.management.ContentTypeAttributeParameterValue.addAttribute()

                  if(valueAttributeName.equals("label"))
                    optionName = valueAttributeValue;
                  if(valueAttributeName.equals("id"))
                    optionValue = valueAttributeValue;
                 
                  contentTypeAttributeParameterValue.addAttribute(valueAttributeName, valueAttributeValue);
                }
               
                if(paramInputTypeId.equals("1"))
                  contentTypeAttribute.getOptions().add(new ContentTypeAttributeOptionDefinition(optionName, optionValue));

Examples of org.infoglue.cms.util.dom.DOMBuilder.addAttribute()

  private Document buildContentVersionDocument()
  {
    final DOMBuilder builder  = new DOMBuilder();
    final Document document   = builder.createDocument();
    final Element rootElement = builder.addElement(document, "root");
    builder.addAttribute(rootElement, "xmlns", "x-schema:Schema.xml");
    final Element attributesRoot =  builder.addElement(rootElement, "attributes");
   
    buildAttributes(builder, attributesRoot);
   
    return document;

Examples of org.jboss.dashboard.commons.xml.XMLNode.addAttribute()

        return rootNode;
    }

    public Object visitWorkspace(Workspace p) throws Exception {
        XMLNode node = new XMLNode(WORKSPACE, currentNode);
        node.addAttribute(WORKSPACE_ATTR_ID, p.getId());
        node.addAttribute(WORKSPACE_ATTR_SKIN_ID, p.getSkinId());
        node.addAttribute(WORKSPACE_ATTR_ENVELOPE_ID, p.getEnvelopeId());
        if (p.getFriendlyUrl() != null) node.addAttribute(WORKSPACE_ATTR_FR_URL, p.getFriendlyUrl());
        node.addAttribute(WORKSPACE_ATTR_HOME_MODE, String.valueOf(p.getHomeSearchMode()));
        currentNode.addChild(node);

Examples of org.jboss.forge.addon.scaffold.spi.ScaffoldGenerationContext.addAttribute()

      ScaffoldGenerationContext genCtx = (ScaffoldGenerationContext) attributeMap.get(ScaffoldGenerationContext.class);
      if (uiContext.getProvider().isGUI())
      {
         if (useCustomTemplate.getValue())
         {
            genCtx.addAttribute("pageTemplate", pageTemplate.getValue());
         }
      }
      else
      {
         genCtx.addAttribute("pageTemplate", pageTemplate.getValue());
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.