Search in sources :

Example 1 with VBox

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

the class PrefsAdvanced method initUI.

@Override
public void initUI() {
    super.initUI();
    VBox page = new VBox(true, true);
    JLabel line0 = new JLabel("This view allows textual editing of all of the propeties.");
    JLabel label = new JLabel("(No type checking is implemented here.)");
    line0.setFont(ital11);
    label.setFont(ital11);
    JButton adder = new JButton("+");
    // TODO
    adder.addActionListener(e -> {
        addNewRow();
    });
    // TODO
    adder.setEnabled(false);
    page.add(new HBox(line0));
    page.add(new HBox(true, true, label, Box.createHorizontalGlue(), adder));
    page.add(makeTableInScroller());
    add(page);
}
Also used : HBox(org.cytoscape.internal.prefs.lib.HBox) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) VBox(org.cytoscape.internal.prefs.lib.VBox)

Example 2 with VBox

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

the class PrefsColor method select.

private void select(JComponent box, String description) {
    for (String str : allVisPalettes.keySet()) {
        VBox v = allVisPalettes.get(str);
        v.setBorder((v == box) ? red4 : orange4);
    }
    setSchemeName(description);
    setCurrentPalette(description);
}
Also used : VBox(org.cytoscape.internal.prefs.lib.VBox)

Example 3 with VBox

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

the class PrefsTables method makeRightSide.

private Component makeRightSide() {
    Box right = Box.createVerticalBox();
    // right.add(makeCheckBoxLine("Close Tables Without Save", "", "", "If checked, tables will be disposed upon closing without asking you to save"));
    right.add(makeCheckBoxLine("Show Button Bar", "table.showButtonBar", "If checked, a tool bar is visible"));
    right.add(makeCheckBoxLine("Alternating Background", "table.stripedBackground", "If checked, a tool bar is visible"));
    // right.add(makeCheckBoxLine("Remember Column Names",  "", "If checked, a tool bar is visible"));
    // right.add(makeCheckBoxLine("Show as Heat Maps", "table.heatMaps", "If checked, all numerical columns in your table will be color coded based on normalized intensity"));
    right.add(makeLabeledField("Number Format String", "floatingPointColumnFormat", "%.2f", "The digit specifies the number of decimal places; use e for scientific notation, or f for floating point"));
    Box colorline = Box.createHorizontalBox();
    fGridLineColor = new ColorMenuButton();
    fGridLineColor.setText("Color");
    fGridLineColor.setToolTipText("Set the line color distinguishing cells in the table");
    components.put("table.gridlineColor", fGridLineColor);
    colorline.add(new HBox(Box.createRigidArea(new Dimension(12, 15)), new BoxComponent("Grid Color", fGridLineColor)));
    // 
    fGridFillColor = new ColorMenuButton();
    fGridFillColor.setText("Color");
    fGridFillColor.setToolTipText("Set the background color for alternate rows in the grid");
    components.put("table.gridFillColor", fGridLineColor);
    HBox colorline2 = new HBox(Box.createRigidArea(new Dimension(12, 15)), new BoxComponent("Fill Color:", fGridFillColor), Box.createHorizontalGlue());
    right.add(new VBox(true, colorline, colorline2));
    right.add(Box.createVerticalGlue());
    return right;
}
Also used : ColorMenuButton(org.cytoscape.internal.prefs.lib.ColorMenuButton) HBox(org.cytoscape.internal.prefs.lib.HBox) BoxComponent(org.cytoscape.internal.prefs.lib.BoxComponent) HBox(org.cytoscape.internal.prefs.lib.HBox) Box(javax.swing.Box) VBox(org.cytoscape.internal.prefs.lib.VBox) JCheckBox(javax.swing.JCheckBox) Dimension(java.awt.Dimension) VBox(org.cytoscape.internal.prefs.lib.VBox)

Example 4 with VBox

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

the class PrefsTables method initUI.

@Override
public void initUI() {
    super.initUI();
    Box page = Box.createHorizontalBox();
    Box col1 = Box.createVerticalBox();
    Box col2 = Box.createVerticalBox();
    col1.setMaximumSize(new Dimension(100, 10000));
    page.add(col1);
    page.add(Box.createRigidArea(new Dimension(10, 20)));
    page.add(col2);
    // col1.add(makeColumnList());
    col2.add(new VBox(true, true, makeRightSide()));
    // col2.add(new VBox( true, true, makeRightSide(), new JLabel("Import Profiles"), makeImportList()));
    setSizes(page, new Dimension(550, 350));
    JLabel line0 = new JLabel("This panel houses future preference settings to customize tables.");
    line0.setFont(ital11);
    add(new HBox(line0));
    add(page);
}
Also used : HBox(org.cytoscape.internal.prefs.lib.HBox) JLabel(javax.swing.JLabel) HBox(org.cytoscape.internal.prefs.lib.HBox) Box(javax.swing.Box) VBox(org.cytoscape.internal.prefs.lib.VBox) JCheckBox(javax.swing.JCheckBox) Dimension(java.awt.Dimension) VBox(org.cytoscape.internal.prefs.lib.VBox)

Example 5 with VBox

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

the class PrefsStyles method makeEdgeList.

private VBox makeEdgeList() {
    edgeAttributes = new CheckList(edge);
    components.put("defaultVisualProperties.edge", edgeAttributes);
    JScrollPane container = new JScrollPane(edgeAttributes, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    return new VBox(false, true, new HBox(true, true, new JLabel("Edge")), 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