Examples of JColorButton


Examples of org.gephi.ui.components.JColorButton

            }
        });
        add(centerOnZeroButton);

        //Reset colors
        final JColorButton resetColorButton = new JColorButton(color, true, false);
        resetColorButton.setToolTipText(NbBundle.getMessage(ActionsToolbar.class, "ActionsToolbar.resetColors"));
        resetColorButton.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent evt) {
                color = resetColorButton.getColor();
                GraphController gc = Lookup.getDefault().lookup(GraphController.class);
                Graph graph = gc.getModel().getGraphVisible();
                for (Node n : graph.getNodes().toArray()) {
                    n.getNodeData().setR(color.getRed() / 255f);
                    n.getNodeData().setG(color.getGreen() / 255f);
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        showEdgesCheckbox = new javax.swing.JCheckBox();
        labelEdgeColor = new javax.swing.JLabel();
        edgeColorButton = new JColorButton(Color.BLACK);
        sourceNodeColorCheckbox = new javax.swing.JCheckBox();
        selectionColorPanel = new javax.swing.JPanel();
        selectionColorCheckbox = new javax.swing.JCheckBox();
        edgeInSelectionColorChooser = new net.java.dev.colorchooser.ColorChooser();
        edgeOutSelectionColorChooser = new net.java.dev.colorchooser.ColorChooser();
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

         }
         });
         add(centerOnZeroButton);*/

        //Reset colors
        final JColorButton resetColorButton = new JColorButton(color, true, false);
        resetColorButton.setToolTipText(NbBundle.getMessage(ActionsToolbar.class, "ActionsToolbar.resetColors"));
        resetColorButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent evt) {
                color = resetColorButton.getColor();
                GraphController gc = Lookup.getDefault().lookup(GraphController.class);
                GraphModel gm = gc.getGraphModel();
                Graph graph = gm.getGraphVisible();
                for (Node n : graph.getNodes()) {
                    n.setR(color.getRed() / 255f);
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        showEdgesCheckbox = new javax.swing.JCheckBox();
        labelEdgeColor = new javax.swing.JLabel();
        edgeColorButton = new JColorButton(Color.BLACK, false, true);
        sourceNodeColorCheckbox = new javax.swing.JCheckBox();
        selectionColorPanel = new javax.swing.JPanel();
        selectionColorCheckbox = new javax.swing.JCheckBox();
        edgeInSelectionColorChooser = new net.java.dev.colorchooser.ColorChooser();
        edgeOutSelectionColorChooser = new net.java.dev.colorchooser.ColorChooser();
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        labelBackgroundColor = new javax.swing.JLabel();
        backgroundColorButton = new JColorButton(Color.BLACK);
        hightlightCheckBox = new javax.swing.JCheckBox();
        autoSelectNeigborCheckbox = new javax.swing.JCheckBox();
        zoomPanel = new javax.swing.JPanel();
        labelZoom = new javax.swing.JLabel();
        zoomSlider = new javax.swing.JSlider();
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

        previewPanel = new javax.swing.JPanel();
        sketchPanel = new javax.swing.JPanel();
        refreshPanel = new javax.swing.JPanel();
        busyLabel = new JXBusyLabel(new Dimension(20,20));
        southToolbar = new javax.swing.JToolBar();
        backgroundButton = new JColorButton(Color.WHITE);
        resetZoomButton = new javax.swing.JButton();
        minusButton = new javax.swing.JButton();
        plusButton = new javax.swing.JButton();

        setLayout(new java.awt.GridBagLayout());
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jXHeader1 = new org.jdesktop.swingx.JXHeader();
        colorButton = new JColorButton(Color.BLACK);
        customRadio = new javax.swing.JRadioButton();
        originalRadio = new javax.swing.JRadioButton();
        parentRadio = new javax.swing.JRadioButton();

        jXHeader1.setDescription(org.openide.util.NbBundle.getMessage(DependantOriginalColorPanel.class, "DependantOriginalColorPanel.jXHeader1.description")); // NOI18N
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        colorButton = new JColorButton(Color.BLACK);
        customRadio = new javax.swing.JRadioButton();
        parentRadio = new javax.swing.JRadioButton();
        jXHeader1 = new org.jdesktop.swingx.JXHeader();

        buttonGroup1.add(customRadio);
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

        originalRadio = new javax.swing.JRadioButton();
        mixedRadio = new javax.swing.JRadioButton();
        sourceRadio = new javax.swing.JRadioButton();
        targetRadio = new javax.swing.JRadioButton();
        customRadio = new javax.swing.JRadioButton();
        colorButton = new JColorButton(Color.BLACK);

        jXHeader1.setDescription(org.openide.util.NbBundle.getMessage(EdgeColorPanel.class, "EdgeColorPanel.jXHeader1.description")); // NOI18N
        jXHeader1.setTitle(org.openide.util.NbBundle.getMessage(EdgeColorPanel.class, "EdgeColorPanel.jXHeader1.title")); // NOI18N

        buttonGroup1.add(originalRadio);
View Full Code Here

Examples of org.gephi.ui.components.JColorButton

        antialisaingCombobox = new javax.swing.JComboBox();
        labelShow = new javax.swing.JLabel();
        fpsCheckbox = new javax.swing.JCheckBox();
        jXTitledSeparator3 = new org.jdesktop.swingx.JXTitledSeparator();
        labelAmbiant = new javax.swing.JLabel();
        ambientDiffuseColorButton = new JColorButton(Color.BLACK);
        ambientSpecularColorButton = new JColorButton(Color.BLACK);
        ambientAmbiantColorButton = new JColorButton(Color.BLACK);
        labelDirectional = new javax.swing.JLabel();
        light1AmbiantColorButton = new JColorButton(Color.BLACK);
        light1DiffuseColorButton = new JColorButton(Color.BLACK);
        light1SpecularColorButton = new JColorButton(Color.BLACK);
        light1Checkbox = new javax.swing.JCheckBox();
        light2Checkbox = new javax.swing.JCheckBox();
        light2AmbiantColorButton = new JColorButton(Color.BLACK);
        light2DiffuseColorButton = new JColorButton(Color.BLACK);
        light2SpecularColorButton = new JColorButton(Color.BLACK);
        light3Checkbox = new javax.swing.JCheckBox();
        light3AmbiantColorButton = new JColorButton(Color.BLACK);
        light3DiffuseColorButton = new JColorButton(Color.BLACK);
        light3SpecularColorButton = new JColorButton(Color.BLACK);
        light1XPosition = new javax.swing.JSpinner();
        jLabel1 = new javax.swing.JLabel();
        light1YPosition = new javax.swing.JSpinner();
        jLabel2 = new javax.swing.JLabel();
        light1ZPosition = new javax.swing.JSpinner();
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.