Examples of areAllColumnsOfType()


Examples of org.gephi.data.attributes.api.AttributeUtils.areAllColumnsOfType()

        return NbBundle.getMessage(BooleanLogicOperations.class, "BooleanLogicOperations.description");
    }

    public boolean canExecute() {
        AttributeUtils attributeUtils=AttributeUtils.getDefault();
        return attributeUtils.areAllColumnsOfType(columns, AttributeType.BOOLEAN);
    }

    public ManipulatorUI getUI() {
        return new BooleanLogicOperationsUI();
    }
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeUtils.areAllColumnsOfType()

    }

    public AttributeColumn booleanLogicOperationsMerge(AttributeTable table, AttributeColumn[] columnsToMerge, BooleanOperations[] booleanOperations, String newColumnTitle) {
        AttributeUtils attributeUtils = AttributeUtils.getDefault();
        AttributeColumnsController ac = Lookup.getDefault().lookup(AttributeColumnsController.class);
        if (table == null || columnsToMerge == null || !attributeUtils.areAllColumnsOfType(columnsToMerge, AttributeType.BOOLEAN) || booleanOperations == null || booleanOperations.length != columnsToMerge.length - 1) {
            throw new IllegalArgumentException("All columns have to be boolean columns, table, columns or operations can't be null and operations length must be columns length -1");
        }

        AttributeColumn newColumn;
        newColumn = ac.addAttributeColumn(table, newColumnTitle, AttributeType.BOOLEAN);
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeUtils.areAllColumnsOfType()

    }

    public AttributeColumn booleanLogicOperationsMerge(AttributeTable table, AttributeColumn[] columnsToMerge, BooleanOperations[] booleanOperations, String newColumnTitle) {
        AttributeUtils attributeUtils = AttributeUtils.getDefault();
        AttributeColumnsController ac = Lookup.getDefault().lookup(AttributeColumnsController.class);
        if (table == null || columnsToMerge == null || !attributeUtils.areAllColumnsOfType(columnsToMerge, AttributeType.BOOLEAN) || booleanOperations == null || booleanOperations.length != columnsToMerge.length - 1) {
            throw new IllegalArgumentException("All columns have to be boolean columns, table, columns or operations can't be null and operations length must be columns length -1");
        }

        AttributeColumn newColumn;
        newColumn = ac.addAttributeColumn(table, newColumnTitle, AttributeType.BOOLEAN);
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeUtils.areAllColumnsOfType()

        return NbBundle.getMessage(BooleanLogicOperations.class, "BooleanLogicOperations.description");
    }

    public boolean canExecute() {
        AttributeUtils attributeUtils=AttributeUtils.getDefault();
        return attributeUtils.areAllColumnsOfType(columns, AttributeType.BOOLEAN);
    }

    public ManipulatorUI getUI() {
        return new BooleanLogicOperationsUI();
    }
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.