Examples of addLabel()


Examples of org.krysalis.jcharts.chartText.TextTagGroup.addLabel()

        {
          if( iDataSeries.getAxisLabel( i ) == null )
          {
            throw new ChartDataException( "None of the axis labels can be NULL." );
          }
          textTagGroup.addLabel( iDataSeries.getAxisLabel( i ) );
        }

        this.yAxis.setAxisLabelsGroup( textTagGroup );
      }
    }
View Full Code Here

Examples of org.libreplan.business.labels.entities.LabelType.addLabel()

    public final static LabelType toEntity(LabelTypeDTO labelTypeDTO) {
        LabelType labelType = LabelType.create(labelTypeDTO.code,
                labelTypeDTO.name);

        for (LabelDTO labelDTO : labelTypeDTO.labels) {
            labelType.addLabel(toEntity(labelDTO));
        }

        return labelType;

    }
View Full Code Here

Examples of org.libreplan.business.orders.entities.OrderElement.addLabel()

        orderElement.setDescription(orderElementDTO.description);

        if (configuration.isLabels()) {
            for (LabelReferenceDTO labelDTO : orderElementDTO.labels) {
                try {
                orderElement.addLabel(LabelReferenceConverter.toEntity(labelDTO));
                } catch (InstanceNotFoundException e) {
                    throw new ValidationException("Label " + labelDTO.code
                            + " not found.");
                }
            }
View Full Code Here

Examples of org.libreplan.business.orders.entities.OrderLine.addLabel()

    @Transactional
    public void testFindByLabels1() throws InstanceNotFoundException {
        Label label = givenStoredLabel();

        OrderLine orderLine1 = createValidOrderLine();
        orderLine1.addLabel(label);
        orderElementDAO.save(orderLine1);
        OrderLine orderLine2 = createValidOrderLine();
        orderElementDAO.save(orderLine2);
        OrderLine orderLine3 = createValidOrderLine();
        orderElementDAO.save(orderLine3);
View Full Code Here

Examples of org.libreplan.business.orders.entities.OrderLineGroup.addLabel()

    public void testFindByLabelsOnTree() throws InstanceNotFoundException {
        Label label1 = givenStoredLabel();
        Label label2 = givenStoredLabel();

        OrderLineGroup orderLineGroup = createValidOrderLineGroup();
        orderLineGroup.addLabel(label1);
        OrderElement child = orderLineGroup.getChildren().get(0);
        child.addLabel(label2);
        orderElementDAO.save(orderLineGroup);

        List<OrderElement> orderELements = orderElementDAO
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.DependencyGraph.addLabel()

      String[] items = tokens[i].split("\t");
      for (int j = 0; j < items.length; j++) {
        if (columns.hasNext()) {
          ColumnDescription column = columns.next();
          if (column.getCategory() == ColumnDescription.INPUT && node != null) {
            outputGraph.addLabel(node, column.getName(), items[j]);
          }
        }
      }
    }
    outputGraph.setDefaultRootEdgeLabel(outputGraph.getSymbolTables().getSymbolTable("DEPREL"), "ROOT");
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.DependencyStructure.addLabel()

      String[] items = tokens[i].split("\t");
      for (int j = 0; j < items.length; j++) {
        if (columns.hasNext()) {
          ColumnDescription column = columns.next();
          if (column.getCategory() == ColumnDescription.INPUT && node != null) {
            outputGraph.addLabel(node, column.getName(), items[j]);
          }
        }
      }
    }
    outputGraph.setDefaultRootEdgeLabel(outputGraph.getSymbolTables().getSymbolTable("DEPREL"), "ROOT");
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.edge.Edge.addLabel()

      if (snode.hasHead()) {
        Edge s = snode.getHeadEdge();
        Edge t = target.addDependencyEdge(s.getSource().getIndex(), s.getTarget().getIndex());
       
        for (SymbolTable table : s.getLabelTypes()) {
          t.addLabel(table, s.getLabelSymbol(table));
        }
      }
    }
  }
 
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.node.DependencyNode.addLabel()

    for (int index : source.getTokenIndices()) {
      DependencyNode snode = source.getTokenNode(index);
      DependencyNode tnode = target.getTokenNode(index);
      for (SymbolTable table : snode.getLabelTypes()) {
        if (!tnode.hasLabel(table)) {
          tnode.addLabel(table,snode.getLabelSymbol(table));
        }
      }
    }
  }
}
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.node.PhraseStructureNode.addLabel()

     
      for (int i = begin; i < index; i++) {
        if (input.charAt(i) == EDGELABEL_SEPARATOR || i == index - 1) {
          if (start == newbegin) {
            if (phraseLabelColumnsIterator.hasNext()) {
              nt.addLabel(phraseLabelColumns.get(phraseLabelColumnsIterator.next()).getSymbolTable(), (i == index - 1)?input.substring(start,index):input.substring(start, i));
            }
            start = i + 1;
          } else if (e != null) {
            if (edgeLabelsColumnsIterator.hasNext()) {
              e.addLabel(edgeLabelColumns.get(edgeLabelsColumnsIterator.next()).getSymbolTable(), (i == index - 1)?input.substring(start,index):input.substring(start, i));
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.