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