Examples of BottomComponent


Examples of org.gephi.desktop.perspective.spi.BottomComponent

            @Override
            public void run() {
                JFrame frame = (JFrame) WindowManager.getDefault().getMainWindow();

                //Get the bottom component
                BottomComponent bottomComponentImpl = Lookup.getDefault().lookup(BottomComponent.class);
                JComponent bottomComponent = bottomComponentImpl != null ? bottomComponentImpl.getComponent() : null;

                //Replace the content pane with our creation
                JComponent statusLinePanel = null;
                for (Component cpnt : frame.getContentPane().getComponents()) {
                    if (cpnt.getName() != null && cpnt.getName().equals("statusLine")) {
View Full Code Here

Examples of org.gephi.desktop.perspective.spi.BottomComponent

        OPEN = NbBundle.getMessage(DynamicRangePanel.class, "DynamicRangePanel.timelineButton.text");
        CLOSE = NbBundle.getMessage(DynamicRangePanel.class, "DynamicRangePanel.timelineButton.closetext");
    }

    public void setup(final DynamicRangeFilter filter) {
        final BottomComponent bottomComponent = Lookup.getDefault().lookup(BottomComponent.class);
        timelineButton.setText(bottomComponent.isVisible() ? CLOSE : OPEN);
        timelineButton.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {

                if (!bottomComponent.isVisible()) {
                    bottomComponent.setVisible(true);
                    timelineButton.setText(CLOSE);
                } else {
                    bottomComponent.setVisible(false);
                    timelineButton.setText(OPEN);
                }
            }
        });
        keepEmptyCheckbox.setSelected(filter.isKeepNull());
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.