Package org.gephi.io.importer.api

Examples of org.gephi.io.importer.api.ColumnDraft


        return false;
    }

    @Override
    public Object getValue(String key) {
        ColumnDraft column = container.getEdgeColumn(key);
        if (column != null) {
            return getAttributeValue(((ColumnDraftImpl) column).getIndex());
        }
        return null;
    }
View Full Code Here


        this.color = color;
    }

    @Override
    public Object getValue(String key) {
        ColumnDraft column = getColumn(key);
        if (column != null) {
            return getAttributeValue(((ColumnDraftImpl) column).getIndex());
        }
        return null;
    }
View Full Code Here

        setLabelColor(Color.getColor(color));
    }

    @Override
    public void setValue(String key, Object value) {
        ColumnDraft column = getColumn(key, value.getClass());
        setAttributeValue(((ColumnDraftImpl) column).getIndex(), value);
    }
View Full Code Here

        setValue(key, value, AttributeUtils.parseDateTime(dateTime));
    }

    @Override
    public void setValue(String key, Object value, double timestamp) {
        ColumnDraft column = getColumn(key, value.getClass());
        setAttributeValue(((ColumnDraftImpl) column).getIndex(), value, timestamp);
    }
View Full Code Here

        setAttributeValue(((ColumnDraftImpl) column).getIndex(), value, timestamp);
    }

    @Override
    public void parseAndSetValue(String key, String value) {
        ColumnDraft column = getColumn(key);
        Object val = AttributeUtils.parse(value, column.getTypeClass());
        setAttributeValue(((ColumnDraftImpl) column).getIndex(), val);
    }
View Full Code Here

        parseAndSetValue(key, value, AttributeUtils.parseDateTime(dateTime));
    }

    @Override
    public void parseAndSetValue(String key, String value, double timestamp) {
        ColumnDraft column = getColumn(key);
        Object val = AttributeUtils.parse(value, column.getTypeClass());
        setAttributeValue(((ColumnDraftImpl) column).getIndex(), val, timestamp);
    }
View Full Code Here

        return timeStamps;
    }

    @Override
    public double[] getTimestamps(String key) {
        ColumnDraft col = getColumn(key);
        if (col != null) {
            Double2ObjectMap m = getDynamicAttributeValue(((ColumnDraftImpl) col).getIndex());
            if (m != null) {
                return m.keySet().toDoubleArray();
            }
View Full Code Here

        return null;
    }

    @Override
    public Object getValue(String key, double timestamp) {
        ColumnDraft col = getColumn(key);
        if (col != null) {
            Double2ObjectMap m = getDynamicAttributeValue(((ColumnDraftImpl) col).getIndex());
            if (m != null) {
                return m.get(timestamp);
            }
View Full Code Here

TOP

Related Classes of org.gephi.io.importer.api.ColumnDraft

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.