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);
}
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);
}
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;
}
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);
}
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);
}
Aggregations