Examples of addAttributeListener()


Examples of org.gephi.data.attributes.api.AttributeModel.addAttributeListener()

            public void initialize(Workspace workspace) {
            }

            public void select(Workspace workspace) {
                AttributeModel attributeModel = workspace.getLookup().lookup(AttributeModel.class);
                attributeModel.addAttributeListener(RankingModelImpl.this);
            }

            public void unselect(Workspace workspace) {
                AttributeModel attributeModel = workspace.getLookup().lookup(AttributeModel.class);
                attributeModel.removeAttributeListener(RankingModelImpl.this);
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeModel.addAttributeListener()

                dynamicModel = null;
            }
        });
        if (pc.getCurrentWorkspace() != null) {
            AttributeModel attributeModel = pc.getCurrentWorkspace().getLookup().lookup(AttributeModel.class);
            attributeModel.addAttributeListener(RankingModelImpl.this);
        }
    }
    private Timer refreshTimer; //hack

    public void attributesChanged(AttributeEvent event) {
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeModel.addAttributeListener()

                }
                refreshPartitions = true;
                GraphModel gm = Lookup.getDefault().lookup(GraphController.class).getModel(workspace);
                trachViewChange(gm);
                AttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel(workspace);
                attributeModel.addAttributeListener(PartitionControllerImpl.this);
            }

            public void unselect(Workspace workspace) {
                GraphModel gm = Lookup.getDefault().lookup(GraphController.class).getModel(workspace);
                untrackViewChange(gm);
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeModel.addAttributeListener()

                pc.getCurrentWorkspace().add(model);
                GraphModel gm = Lookup.getDefault().lookup(GraphController.class).getModel(workspace);
                trachViewChange(gm);

                AttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel(workspace);
                attributeModel.addAttributeListener(PartitionControllerImpl.this);
            }
        }
    }
    private GraphListener graphListener;
View Full Code Here

Examples of org.gephi.data.attributes.model.IndexedAttributeModel.addAttributeListener()

    private int countElements = 0;

    @Test
    public void testEventsPerformance() {
        IndexedAttributeModel attModel = new IndexedAttributeModel();
        attModel.addAttributeListener(new AttributeListener() {

            public void attributesChanged(AttributeEvent event) {
                if(event.is(AttributeEvent.EventType.SET_VALUE)) {
                    countEvents++;
                    countElements+=event.getData().getTouchedValues().length;
View Full Code Here

Examples of org.gephi.data.attributes.model.IndexedAttributeModel.addAttributeListener()

    @Test
    public void testEvents() {
        IndexedAttributeModel attModel = new IndexedAttributeModel();
        EventCollector eventCollector = new EventCollector();
        attModel.addAttributeListener(eventCollector);

        //Add table
        AttributeTableImpl table = new AttributeTableImpl(attModel, "table");
        attModel.addTable(table);
View Full Code Here

Examples of org.gudy.azureus2.plugins.download.Download.addAttributeListener()

          setCategories( tf, dl );
        }
       
        final String tf_key = tf.getKey();
       
        dl.addAttributeListener(
          new DownloadAttributeListener()
          {
            public void
            attributeEventOccurred(
              Download       download,
View Full Code Here

Examples of org.gudy.azureus2.plugins.download.Download.addAttributeListener()

     
      download.setUserData( ud_key, acf );
     
      final AzureusContentFile f_acf = acf;
     
      download.addAttributeListener(
        new DownloadAttributeListener()
        {
          public void
          attributeEventOccurred(
            Download       download,
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.