use of com.att.aro.ui.view.statistics.DateTraceAppDetailPanel in project VideoOptimzer by attdevsupport.
the class AbstractBpDetailPanel method initialize.
public void initialize(String title) {
fullPanel = new JPanel(new BorderLayout());
fullPanel.setOpaque(false);
// setBorder(new RoundedBorder(new Insets(0, 0, 0, 0), Color.WHITE)); // bcn
// Create the header bar
header = new BpHeaderPanel(ResourceBundleHelper.getMessageString(title));
String desc = ResourceBundleHelper.getMessageString(title + "Description");
fullPanel.add(header, BorderLayout.NORTH);
// Create the data panel
JPanel dataPanel = new JPanel(new BorderLayout());
dataPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
dataPanel.setOpaque(false);
dateTraceAppDetailPanel = new DateTraceAppDetailPanel();
dataPanel.add(dateTraceAppDetailPanel, BorderLayout.NORTH);
// Create the group overview panel
JPanel textPanel = new JPanel(new BorderLayout(10, 10));
textPanel.setOpaque(false);
JScrollPane scroll = new JScrollPane(createJTextArea(desc, null));
// scroll.setBackground(Color.RED); // bcn
scroll.setBorder(BorderFactory.createEmptyBorder());
removeMouseWheelListeners(scroll);
textPanel.add(scroll, BorderLayout.CENTER);
JPanel separator = new ImagePanel(Images.DIVIDER.getImage(), true, Color.WHITE);
textPanel.add(separator, BorderLayout.SOUTH);
// Create the best practices detail panel
JPanel detailPanel = new JPanel(new GridBagLayout());
detailPanel.setOpaque(true);
detailPanel = new JPanel();
JPanel panel = new JPanel(new BorderLayout());
panel.setOpaque(false);
panel.add(textPanel, BorderLayout.NORTH);
panel.add(detailPanel, BorderLayout.CENTER);
dataPanel.add(panel);
fullPanel.add(dataPanel);
}
use of com.att.aro.ui.view.statistics.DateTraceAppDetailPanel in project VideoOptimzer by attdevsupport.
the class BestPracticesTab method buildTopGroup.
/**
*/
private JPanel buildTopGroup() {
JPanel topPanel;
topPanel = new JPanel(new GridBagLayout());
topPanel.setOpaque(false);
topPanel.setBorder(new RoundedBorder(new Insets(20, 20, 20, 20), Color.WHITE));
int section = 0;
// top summary
JPanel topLeftPanel;
topLeftPanel = new JPanel(new GridBagLayout());
topLeftPanel.setOpaque(false);
dateTraceAppDetailPanel = new DateTraceAppDetailPanel();
topLeftPanel.add(dateTraceAppDetailPanel, new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
bpObservable.registerObserver(dateTraceAppDetailPanel);
// BP Overall -aka- AROBpOverallResulsPanel
BpTestStatisticsPanel testStatisticsPanel = new BpTestStatisticsPanel();
topLeftPanel.add(testStatisticsPanel, new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
bpObservable.registerObserver(testStatisticsPanel);
MetadataPanel metadataPanel = new MetadataPanel(aroView);
metadataPanel.setMinimumSize(metadataPanel.getPreferredSize());
bpObservable.registerObserver(metadataPanel);
JSplitPane topSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, topLeftPanel, metadataPanel);
topSplitPane.setResizeWeight(0);
topSplitPane.setOpaque(false);
topPanel.add(topSplitPane, new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
// Separator
topPanel.add(UIComponent.getInstance().getSeparator(), new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 10, 0), 0, 0));
// BP Overall -aka- AROBpOverallResulsPanel
BpTestsConductedPanel bpTestsConductedPanel = new BpTestsConductedPanel(this);
topPanel.add(bpTestsConductedPanel, new GridBagConstraints(// int gridx, int gridy
0, // int gridx, int gridy
section++, // , int gridwidth, int gridheight
1, // , int gridwidth, int gridheight
1, // , double weightx, double weighty
0.0, // , double weightx, double weighty
0.0, // , int anchor
GridBagConstraints.CENTER, // , int fill
GridBagConstraints.HORIZONTAL, // , Insets insets
new Insets(0, 0, 0, 0), 0, // , int ipadx, int ipady
0));
bpObservable.registerObserver(bpTestsConductedPanel);
return topPanel;
}
Aggregations