Package org.gephi.data.attributes.type

Examples of org.gephi.data.attributes.type.Interval


                            if (type != null) {
                                List<Interval> intervals = type.getIntervals(model.getCustomMin(), model.getCustomMax());
                                Number[] xs = new Number[intervals.size() * 2];
                                Number[] ys = new Number[intervals.size() * 2];
                                int i = 0;
                                Interval interval;
                                for (int j = 0; j < intervals.size(); j++) {
                                    interval = intervals.get(j);
                                    Number x = (Double) interval.getLow();
                                    Number y = (Number) interval.getValue();
                                    xs[i] = x;
                                    ys[i] = y;
                                    i++;
                                    if (j != intervals.size() - 1 && intervals.get(j + 1).getLow() < interval.getHigh()) {
                                        xs[i] = (Double) intervals.get(j + 1).getLow();
                                    } else {
                                        xs[i] = (Double) interval.getHigh();
                                    }
                                    ys[i] = y;
                                    i++;
                                }
                                if (xs.length > 0) {
View Full Code Here


        int newColumnIndex = newColumn.getIndex();
       
        Object value;
        for (int i = 0; i < rows.length; i++) {
            if (oldValues[i] != null) {
                Interval interval = new Interval(low, high, lopen, ropen, oldValues[i]);
                value = newType.createDynamicObject(Arrays.asList(new Interval[]{interval}));
            } else {
                value = null;
            }
           
View Full Code Here

    }

    @Override
    public Object[] getAttributesValues(Node node, double low, double high) {
        checkLowHigh(low, high);
        return getAttributesValues(node, new Interval(low, high));
    }
View Full Code Here

    }

    @Override
    public Object[] getAttributesValues(Node node, double low, double high, Estimator[] estimators) {
        checkLowHigh(low, high);
        return getAttributesValues(node, new Interval(low, high), estimators);
    }
View Full Code Here

    }

    @Override
    public Object[] getAttributesValues(Edge edge, double low, double high) {
        checkLowHigh(low, high);
        return getAttributesValues(edge, new Interval(low, high));
    }
View Full Code Here

    }

    @Override
    public Object[] getAttributesValues(Edge edge, double low, double high, Estimator[] estimators) {
        checkLowHigh(low, high);
        return getAttributesValues(edge, new Interval(low, high), estimators);
    }
View Full Code Here

    }

    @Override
    public Graph getSnapshotGraph(double low, double high, Estimator estimator) {
        checkLowHigh(low, high);
        return getSnapshotGraph(new Interval(low, high), Estimator.FIRST);
    }
View Full Code Here

    }

    @Override
    public Graph getStrongSnapshotGraph(double low, double high) {
        checkLowHigh(low, high);
        return getStrongSnapshotGraph(new Interval(low, high));
    }
View Full Code Here

TOP

Related Classes of org.gephi.data.attributes.type.Interval

Copyright © 2018 www.massapicom. 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.