Package y.option

Examples of y.option.OptionHandler


    private IncrementalHierarchicLayoutModule createIncrementalHierarchicLayoutModule() {
        IncrementalHierarchicLayoutModule layoutModule = new IncrementalHierarchicLayoutModule();

        layoutModule.setBufferedMode(true);

        OptionHandler options = layoutModule.getOptionHandler();
        OptionItem item = options.getItem("GROUP_LAYERING_STRATEGY");
        item.setValue("RECURSIVE_LAYERING");
        item = options.getItem("SELECTED_ELEMENTS_INCREMENTALLY");
        item.setValue(true);

        return layoutModule;
    }
View Full Code Here


    private SmartOrganicLayoutModule createSmartOrganicLayoutModule() {
        SmartOrganicLayoutModule layoutModule = new SmartOrganicLayoutModule();

        layoutModule.setBufferedMode(true);

        OptionHandler options = layoutModule.getOptionHandler();
        OptionItem item = options.getItem("AVOID_NODE_EDGE_OVERLAPS");
        item.setValue(true);

        item = options.getItem("MINIMAL_NODE_DISTANCE");
        item.setValue(30d);

        item = options.getItem("SCOPE");
        item.setValue("MAINLY_SUBSET");

        item = options.getItem("ACTIVATE_DETERMINISTIC_MODE");
        item.setValue(true);

        return layoutModule;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void actionPerformed(ActionEvent arg0) {
        OptionHandler handler = fGraph.getLayoutModule().getOptionHandler();
        if (handler.showEditor()) {
            fGraph.updateLayoutModule(fGraph.getLayoutModule());
        }
    }
View Full Code Here

TOP

Related Classes of y.option.OptionHandler

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.