Examples of addLabel()


Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGScoreBar.addLabel()

  private double addBarChart(SVGPlot svgp, Element parent, double ypos, String label, double maxValue, double value) {
    SVGScoreBar barchart = new SVGScoreBar();
    barchart.setFill(value, maxValue);
    barchart.showValues(FormatUtil.NF4);
    barchart.addLabel(label);
    parent.appendChild(barchart.build(svgp, 0.0, ypos, BARLENGTH, BARHEIGHT));
    ypos += 1;
    return ypos;
  }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass.addLabel()

     
      IClass dst = target.createClass(src.getName());
   
      // copy superficial stuff
      for(String lbl: src.getLabels())
        dst.addLabel(lbl);
      for(String com: src.getComments())
        dst.addComment(com);
      if(src.getVersion() != null)
        dst.addVersion(src.getVersion());
   
View Full Code Here

Examples of edu.pitt.ontology.IClass.addLabel()

    labels.add(c.getName());
    Collections.addAll(labels,c.getSynonyms());
   
    // add synonyms
    for(String s: labels){
      cls.addLabel(s);
    }
    // add definitions
    for(Definition d: c.getDefinitions()){
      cls.addComment(d.getDefinition());
    }
View Full Code Here

Examples of evolaris.framework.blog.business.BlogManager.addLabel()

    Label label = blogMgr.getLabel(gameBlog, article.getTitle());
    if (label == null) {
      // do some self healing magic ...
      label = new Label();
      label.setLabel(article.getTitle());
      blogMgr.addLabel(gameBlog, label);
    }
    Collection<Article> gameArticles = blogMgr.getArchivedArticles(gameBlog, label);
    for (Article gameArticle : gameArticles) {
      DisplayableArticle entry = new DisplayableArticle(gameArticle);
      gameList.add(entry);
View Full Code Here

Examples of jimm.datavision.gui.EditFieldLayout.addLabel()

protected void buildWindow(String dbName) {
    getContentPane().setLayout(new BorderLayout());

    EditFieldLayout efl = new EditFieldLayout();
    efl.addLabel(I18N.get("DbPasswordDialog.database"), dbName);
    efl.setBorder(20);
    usernameField = efl.addTextField(I18N.get("DbPasswordDialog.user_name"),
             username, FIELD_COLUMNS);
    passwordField = efl.addPasswordField(I18N.get("DbPasswordDialog.password"),
           FIELD_COLUMNS);
View Full Code Here

Examples of jminusminus.CLEmitter.addLabel()

        e.addNoArgInstruction(ILOAD_1);
        e.addNoArgInstruction(ICONST_1);
        e.addBranchInstruction(IF_ICMPGT, "Label1");
        e.addNoArgInstruction(ILOAD_1);
        e.addNoArgInstruction(IRETURN);
        e.addLabel("Label1");
        e.addNoArgInstruction(ILOAD_1);
        e.addNoArgInstruction(ALOAD_0);
        e.addNoArgInstruction(ILOAD_1);
        e.addNoArgInstruction(ICONST_1);
        e.addNoArgInstruction(ISUB);
View Full Code Here

Examples of net.sf.farrago.fennel.calc.CalcProgramBuilder.addLabel()

            // store time func result in local reg
            instruction.add(progBuilder, regList);

            // dangling label on whatever comes next
            progBuilder.addLabel(notZeroLabel);

            return timeReg;
        }
    }
}
View Full Code Here

Examples of org.apache.hadoop.hbase.rest.model.ScannerModel.addLabel()

    final int BATCH_SIZE = 5;
    // new scanner
    ScannerModel model = new ScannerModel();
    model.setBatch(BATCH_SIZE);
    model.addColumn(Bytes.toBytes(COLUMN_1));
    model.addLabel(PUBLIC);
    StringWriter writer = new StringWriter();
    marshaller.marshal(model, writer);
    byte[] body = Bytes.toBytes(writer.toString());
    // recall previous put operation with read-only off
    conf.set("hbase.rest.readonly", "false");
View Full Code Here

Examples of org.apache.lenya.cms.publication.DefaultSiteTree.addLabel()

  // name should not be done by removing the label and readding
  // it. Instead the node should probably have a setLabel method
  // which could be invoked by the Label.setLabel() method.
        tree.removeLabel(documentid, label);
        label.setLabel(labelName);
        tree.addLabel(documentid, label);
        tree.save();
    }

    /** (non-Javadoc)
     * @see org.apache.tools.ant.Task#execute()
View Full Code Here

Examples of org.apache.lenya.cms.publication.SiteTree.addLabel()

        SiteTree tree = null;
        Label label = null;
        try {
            tree = getPublication().getTree(area);
            label = new Label(labelName, language);
            tree.addLabel(documentid, label);
            tree.save();
        } catch (Exception e) {
            throw new SiteTreeException(
                "Cannot insert label "
                    + label
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.