Search in sources :

Example 6 with VBox

use of org.cytoscape.internal.prefs.lib.VBox in project cytoscape-impl by cytoscape.

the class PrefsText method getExampleTextPanel.

// SElement fElement;
private AntiAliasedPanel getExampleTextPanel() {
    VBox examplePanel = new VBox("Sample Text", true, true);
    examplePanel.setBackground(Color.white);
    AntiAliasedPanel.setSizes(examplePanel, new Dimension(540, 120));
    fSamplePane = new JEditorPane();
    fSamplePane.setBackground(Color.white);
    AntiAliasedPanel.setSizes(fSamplePane, new Dimension(520, 100));
    fSamplePane.setText("Lazy evaluation showed excessive use of Cytoscape will make her just be quicker in graphs.");
    examplePanel.add(fSamplePane);
    examplePanel.add(Box.createVerticalGlue());
    // fSamplePane.setAlignmentX(Component.CENTER_ALIGNMENT);
    return examplePanel;
}
Also used : JEditorPane(javax.swing.JEditorPane) Dimension(java.awt.Dimension) VBox(org.cytoscape.internal.prefs.lib.VBox)

Example 7 with VBox

use of org.cytoscape.internal.prefs.lib.VBox in project cytoscape-impl by cytoscape.

the class PrefsText method getFunctionPanel.

private AntiAliasedPanel getFunctionPanel() {
    if (fFunctionPanel == null) {
        VBox p = new VBox("Components", true, false);
        AntiAliasedPanel.setSizes(p, new Dimension(240, 220));
        for (int currTrait = 0; currTrait < kNumTextTraits; currTrait++) {
            fRadioButtons[currTrait] = new JRadioButton(kTraitNames[currTrait]);
            fRadioButtons[currTrait].setToolTipText(kTraitTooltips[currTrait]);
            final int trait = currTrait;
            fRadioButtons[currTrait].addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent e) {
                    changeCurrentTarget(trait);
                }
            });
            // fRadioButtons[currTrait].setFont(panelFont);
            btnGroup.add(fRadioButtons[currTrait]);
            p.add(new HBox(true, true, fRadioButtons[currTrait]));
        }
        fRadioButtons[0].setSelected(true);
        fBtnSetAllTT = new JButton("Use For All");
        fBtnSetAllTT.setToolTipText("Assign the current font information to nodes, edges, annotations, and legends");
        fBtnSetAllTT.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                updateAllTraits();
            }
        });
        // fBtnSetAllTT.setFont(panelFont);
        p.addSpacer();
        p.add(fBtnSetAllTT);
        p.addSpacer();
        p.add(Box.createVerticalGlue());
        p.addSpacer();
        fFunctionPanel = p;
    }
    return fFunctionPanel;
}
Also used : HBox(org.cytoscape.internal.prefs.lib.HBox) JRadioButton(javax.swing.JRadioButton) ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton) Dimension(java.awt.Dimension) VBox(org.cytoscape.internal.prefs.lib.VBox)

Example 8 with VBox

use of org.cytoscape.internal.prefs.lib.VBox in project cytoscape-impl by cytoscape.

the class PrefsLinks method initUI.

@Override
public void initUI() {
    super.initUI();
    VBox page = new VBox();
    JLabel line0 = new JLabel("[Links:  This needs a Tree View of links by source.]");
    line0.setFont(ital11);
    JLabel line1 = new JLabel("[It might require a change in the format of the properties file.]");
    line1.setFont(ital11);
    page.add(new HBox(line0));
    page.add(new HBox(line1));
    page.add(makeTable());
    add(page);
    TableColumn col = table.getColumnModel().getColumn(2);
    col.setPreferredWidth(260);
}
Also used : HBox(org.cytoscape.internal.prefs.lib.HBox) JLabel(javax.swing.JLabel) VBox(org.cytoscape.internal.prefs.lib.VBox) TableColumn(javax.swing.table.TableColumn)

Example 9 with VBox

use of org.cytoscape.internal.prefs.lib.VBox in project cytoscape-impl by cytoscape.

the class PrefsStyles method makeNodeList.

private VBox makeNodeList() {
    nodeAttributes = new CheckList(node);
    components.put("defaultVisualProperties.node", nodeAttributes);
    JScrollPane container = new JScrollPane(nodeAttributes, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    return new VBox(false, true, new HBox(true, true, new JLabel("Node")), container);
}
Also used : JScrollPane(javax.swing.JScrollPane) HBox(org.cytoscape.internal.prefs.lib.HBox) CheckList(org.cytoscape.internal.prefs.lib.CheckList) JLabel(javax.swing.JLabel) VBox(org.cytoscape.internal.prefs.lib.VBox)

Example 10 with VBox

use of org.cytoscape.internal.prefs.lib.VBox in project cytoscape-impl by cytoscape.

the class PrefsStyles method makeNetworkList.

private VBox makeNetworkList() {
    networkAttributes = new CheckList(network);
    components.put("defaultVisualProperties.network", networkAttributes);
    JScrollPane container = new JScrollPane(networkAttributes, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    return new VBox(false, true, new HBox(true, true, new JLabel("Network")), container);
}
Also used : JScrollPane(javax.swing.JScrollPane) HBox(org.cytoscape.internal.prefs.lib.HBox) CheckList(org.cytoscape.internal.prefs.lib.CheckList) JLabel(javax.swing.JLabel) VBox(org.cytoscape.internal.prefs.lib.VBox)

Aggregations

VBox (org.cytoscape.internal.prefs.lib.VBox)14 HBox (org.cytoscape.internal.prefs.lib.HBox)11 JLabel (javax.swing.JLabel)8 Dimension (java.awt.Dimension)7 Box (javax.swing.Box)3 JCheckBox (javax.swing.JCheckBox)3 JScrollPane (javax.swing.JScrollPane)3 CheckList (org.cytoscape.internal.prefs.lib.CheckList)3 ActionEvent (java.awt.event.ActionEvent)2 ActionListener (java.awt.event.ActionListener)2 JButton (javax.swing.JButton)2 JRadioButton (javax.swing.JRadioButton)2 ColorMenuButton (org.cytoscape.internal.prefs.lib.ColorMenuButton)2 Color (java.awt.Color)1 Insets (java.awt.Insets)1 MouseAdapter (java.awt.event.MouseAdapter)1 MouseEvent (java.awt.event.MouseEvent)1 JEditorPane (javax.swing.JEditorPane)1 JTextArea (javax.swing.JTextArea)1 TableColumn (javax.swing.table.TableColumn)1