Package org.gephi.ranking.api

Examples of org.gephi.ranking.api.RankingController


    public boolean isAutoTransformer(Transformer transformer) {
        return model.getAutoTransformerRanking(transformer) != null;
    }

    public void setAutoTransformer(Transformer transformer, boolean enable) {
        RankingController rankingController = Lookup.getDefault().lookup(RankingController.class);
        if (enable) {
            rankingController.startAutoTransform(getCurrentRanking(), transformer);
            firePropertyChangeEvent(START_AUTO_TRANSFORMER, null, transformer);
        } else {
            rankingController.stopAutoTransform(transformer);
            firePropertyChangeEvent(STOP_AUTO_TRANSFORMER, null, transformer);
        }
    }
View Full Code Here


                popupMenu.show(colorSwatchToolbar, -popupMenu.getPreferredSize().width, 0);
            }
        });

        //Listen to apply button to add recent palettes
        RankingController rankingController = Lookup.getDefault().lookup(RankingController.class);
        RankingModel rankingModel = rankingController.getModel();
        rankingModel.addRankingListener(new RankingListener() {

            public void rankingChanged(RankingEvent event) {
                if (event.is(RankingEvent.EventType.APPLY_TRANSFORMER)) {
                    if (transformer == event.getTransformer()) {
View Full Code Here

TOP

Related Classes of org.gephi.ranking.api.RankingController

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.