Package org.gephi.data.attributes.api

Examples of org.gephi.data.attributes.api.AttributeController


    /**
     * Setup the mode of column creation: nodes table or edges table.
     * @param mode Mode
     */
    public void setup(Mode mode) {
        AttributeController ac = Lookup.getDefault().lookup(AttributeController.class);
        //Set description text for the mode of column creation:
        switch (mode) {
            case NODES_TABLE:
                descriptionLabel.setText(NbBundle.getMessage(AddColumnUI.class, "AddColumnUI.descriptionLabel.text.nodes"));
                table = ac.getModel().getNodeTable();
                break;
            case EDGES_TABLE:
                descriptionLabel.setText(NbBundle.getMessage(AddColumnUI.class, "AddColumnUI.descriptionLabel.text.edges"));
                table = ac.getModel().getEdgeTable();
                break;
        }

        for (AttributeType type : AttributeType.values()) {
            typeComboBox.addItem(type);
View Full Code Here

TOP

Related Classes of org.gephi.data.attributes.api.AttributeController

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.