Examples of countValues()


Examples of org.gephi.data.attributes.api.AttributeRow.countValues()

        for (; rowIndex < nodes.length; rowIndex++) {
            if (!gec.isNodeInGraph(nodes[rowIndex])) {
                continue;//Make sure node is still in graph when continuing a search
            }
            row = (AttributeRow) nodes[rowIndex].getNodeData().getAttributes();
            for (; columnIndex < row.countValues(); columnIndex++) {
                if (searchAllColumns || columnsToSearch.contains(columnIndex)) {
                    value = row.getValue(columnIndex);
                    result = matchRegex(value, searchOptions, rowIndex, columnIndex);
                    if (result != null) {
                        result.setFoundNode(nodes[rowIndex]);
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeRow.countValues()

        for (; rowIndex < edges.length; rowIndex++) {
            if (!gec.isEdgeInGraph(edges[rowIndex])) {
                continue;//Make sure edge is still in graph when continuing a search
            }
            row = (AttributeRow) edges[rowIndex].getEdgeData().getAttributes();
            for (; columnIndex < row.countValues(); columnIndex++) {
                if (searchAllColumns || columnsToSearch.contains(columnIndex)) {
                    value = row.getValue(columnIndex);
                    result = matchRegex(value, searchOptions, rowIndex, columnIndex);
                    if (result != null) {
                        result.setFoundEdge(edges[rowIndex]);
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeRow.countValues()

                }

                if (newEdge != null) {//Edge may not be created if repeated
                    //Copy edge attributes:
                    AttributeRow row = (AttributeRow) edge.getAttributes();
                    for (int i = 0; i < row.countValues(); i++) {
                        if (row.getAttributeValueAt(i).getColumn().getIndex() != PropertiesColumn.EDGE_ID.getIndex()) {
                            newEdge.getAttributes().setValue(i, row.getValue(i));
                        }
                    }
                }
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeRow.countValues()

        copyData.setColor(nodeData.r(), nodeData.g(), nodeData.b());
        copyData.setAlpha(nodeData.alpha());

        //Copy attributes:
        AttributeRow row = (AttributeRow) nodeData.getAttributes();
        for (int i = 0; i < row.countValues(); i++) {
            if (row.getAttributeValueAt(i).getColumn().getIndex() != PropertiesColumn.NODE_ID.getIndex()) {
                copyData.getAttributes().setValue(i, row.getValue(i));
            }
        }
View Full Code Here

Examples of org.gephi.graph.api.Attributes.countValues()

  @Override
  public Object[] getAttributesValues(Node node, Interval interval, Estimator[] estimators) {
    checkEstimators(node, estimators);

    Attributes attributes = node.getNodeData().getAttributes();
    Object[]   values     = new Object[attributes.countValues()];

    for (int i = 0; i < attributes.countValues(); ++i) {
      values[i] = attributes.getValue(i);
      if (values[i] instanceof DynamicType)
        values[i] = ((DynamicType)values[i]).getValue(estimators[i]);
View Full Code Here

Examples of org.gephi.graph.api.Attributes.countValues()

    checkEstimators(node, estimators);

    Attributes attributes = node.getNodeData().getAttributes();
    Object[]   values     = new Object[attributes.countValues()];

    for (int i = 0; i < attributes.countValues(); ++i) {
      values[i] = attributes.getValue(i);
      if (values[i] instanceof DynamicType)
        values[i] = ((DynamicType)values[i]).getValue(estimators[i]);
    }
View Full Code Here

Examples of org.gephi.graph.api.Attributes.countValues()

  @Override
  public Object[] getAttributesValues(Edge edge, Interval interval, Estimator[] estimators) {
    checkEstimators(edge, estimators);

    Attributes attributes = edge.getEdgeData().getAttributes();
    Object[]   values     = new Object[attributes.countValues()];

    for (int i = 0; i < attributes.countValues(); ++i) {
      values[i] = attributes.getValue(i);
      if (values[i] instanceof DynamicType)
        values[i] = ((DynamicType)values[i]).getValue(estimators[i]);
View Full Code Here

Examples of org.gephi.graph.api.Attributes.countValues()

    checkEstimators(edge, estimators);

    Attributes attributes = edge.getEdgeData().getAttributes();
    Object[]   values     = new Object[attributes.countValues()];

    for (int i = 0; i < attributes.countValues(); ++i) {
      values[i] = attributes.getValue(i);
      if (values[i] instanceof DynamicType)
        values[i] = ((DynamicType)values[i]).getValue(estimators[i]);
    }
View Full Code Here

Examples of org.gephi.graph.api.Attributes.countValues()

        dest.getTextData().setSize(source.getTextData().getSize());
        dest.getTextData().setVisible(source.getTextData().isVisible());

        //Attributes
        Attributes sourceAttributes = source.getAttributes();
        for (int i = 0; i < sourceAttributes.countValues(); i++) {
            dest.getAttributes().setValue(i, sourceAttributes.getValue(i));
        }
    }

    private void duplicateEdgeData(EdgeDataImpl source, EdgeDataImpl dest) {
View Full Code Here

Examples of org.gephi.graph.api.Attributes.countValues()

        dest.getTextData().setSize(source.getTextData().getSize());
        dest.getTextData().setVisible(source.getTextData().isVisible());

        //Attributes
        Attributes sourceAttributes = source.getAttributes();
        for (int i = 0; i < sourceAttributes.countValues(); i++) {
            dest.getAttributes().setValue(i, sourceAttributes.getValue(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.