Package org.gephi.data.attributes.event

Examples of org.gephi.data.attributes.event.ValueEvent


        AttributeValueImpl oldValue = this.values[index];

        this.values[index] = value;

        if (!((oldValue == null && value == null) || (oldValue != null && oldValue.equals(value)))) {
            attributeTable.model.fireAttributeEvent(new ValueEvent(EventType.SET_VALUE, attributeTable, object, value));
        }
    }
View Full Code Here


        this.values[index] = value;

        if (!(oldValue != null && oldValue.equals(value))
                && index > 0 && !value.getColumn().getOrigin().equals(AttributeOrigin.COMPUTED)) {    //0 is the index of node id and edge id cols, not useful to send these events
            if (oldValue != null) {
                attributeTable.model.fireAttributeEvent(new ValueEvent(EventType.UNSET_VALUE, attributeTable, object, oldValue));
            }
            attributeTable.model.fireAttributeEvent(new ValueEvent(EventType.SET_VALUE, attributeTable, object, value));
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.data.attributes.event.ValueEvent

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.