Package org.gephi.graph.api

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


    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

  @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

    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

        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

        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

    @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

        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

    @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

        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

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.