use of com.att.aro.ui.view.statistics.statemachine.RRCStateMachineSimulationPanelLTE in project VideoOptimzer by attdevsupport.
the class StatisticsTab method layoutRrcStateMachineSimulator.
/**
* 3G, LTE, and WiFi render different attributes for the RRC sub-panel on the statics tab.
* This takes care of ensuring the right ones are used.
*
* @param rrcStateMachineType
*/
private void layoutRrcStateMachineSimulator(RrcStateMachineType rrcStateMachineType) {
switch(rrcStateMachineType) {
case Type3G:
rrcStateMachineSimulationPanel3G = new RRCStateMachineSimulationPanel3G();
if (rrcStateMachineSimulationPanelLTE != null) {
mainPanel.remove(rrcStateMachineSimulationPanelLTE);
}
if (rrcStateMachineSimulationPanelWiFi != null) {
mainPanel.remove(rrcStateMachineSimulationPanelWiFi);
}
rrcStateMachineSimulationPanelLTE = null;
rrcStateMachineSimulationPanelWiFi = null;
mainPanel.add(rrcStateMachineSimulationPanel3G, new GridBagConstraints(0, 9, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 10, 10), 0, 0));
break;
case LTE:
rrcStateMachineSimulationPanelLTE = new RRCStateMachineSimulationPanelLTE();
if (rrcStateMachineSimulationPanel3G != null) {
mainPanel.remove(rrcStateMachineSimulationPanel3G);
}
if (rrcStateMachineSimulationPanelWiFi != null) {
mainPanel.remove(rrcStateMachineSimulationPanelWiFi);
}
rrcStateMachineSimulationPanel3G = null;
rrcStateMachineSimulationPanelWiFi = null;
mainPanel.add(rrcStateMachineSimulationPanelLTE, new GridBagConstraints(0, 9, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 10, 10), 0, 0));
break;
case WiFi:
rrcStateMachineSimulationPanelWiFi = new RRCStateMachineSimulationPanelWiFi();
if (rrcStateMachineSimulationPanel3G != null) {
mainPanel.remove(rrcStateMachineSimulationPanel3G);
}
if (rrcStateMachineSimulationPanelLTE != null) {
mainPanel.remove(rrcStateMachineSimulationPanelLTE);
}
rrcStateMachineSimulationPanel3G = null;
rrcStateMachineSimulationPanelLTE = null;
mainPanel.add(rrcStateMachineSimulationPanelWiFi, new GridBagConstraints(0, 9, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 10, 10), 0, 0));
break;
default:
throw new AROUIPanelException("Energy render implementation not available.");
}
}
use of com.att.aro.ui.view.statistics.statemachine.RRCStateMachineSimulationPanelLTE in project VideoOptimzer by attdevsupport.
the class StatisticsTab method layoutDataPanel.
/**
* Adds the various Panels for the Statistics tab.
*
* @return the mainPanel The JPanel containing the entire screen.
*/
public JPanel layoutDataPanel() {
if (mainPanel == null) {
mainPanel = new JPanel(new GridBagLayout());
mainPanel.setBackground(UIManager.getColor(AROUIManager.PAGE_BACKGROUND_KEY));
Insets insets = new Insets(10, 10, 10, 10);
mainPanel.setOpaque(false);
mainPanel.setBorder(new RoundedBorder(new Insets(10, 10, 10, 10), Color.WHITE));
// load graphic header and Export button
String headerTitle = MessageFormat.format(ResourceBundleHelper.getMessageString("statistics.title"), ApplicationConfig.getInstance().getAppBrandName(), ApplicationConfig.getInstance().getAppShortName());
ImagePanel logoHeader = UIComponent.getInstance().getLogoHeader(headerTitle);
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new BorderLayout());
buttonPanel.setOpaque(false);
buttonPanel.add(getExportBtn(), BorderLayout.EAST);
// logoHeader.add(getJsonExportBtn(), BorderLayout.WEST);
logoHeader.add(buttonPanel, BorderLayout.EAST);
container.add(logoHeader, BorderLayout.NORTH);
int gridy = -1;
// top summary
dateTraceAppDetailPanel = new DateTraceAppDetailPanel();
mainPanel.add(dateTraceAppDetailPanel, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
layoutDivider(++gridy, insets);
// TCP(Session) Statistics
tcpSessionStatistics = new TCPSessionStatisticsPanel();
mainPanel.add(tcpSessionStatistics, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
layoutDivider(++gridy, insets);
attenuationConstantPanel = new AttenuationConstantPanel();
mainPanel.add(attenuationConstantPanel, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
layoutDivider(++gridy, insets);
++gridy;
// End Point Summary
endPointSummaryPanel = new EndPointSummaryPanel();
mainPanel.add(endPointSummaryPanel, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
layoutDivider(++gridy, insets);
// gridy 5
// Radio Resource Control State Machine Simulation (default to LTE)
rrcStateMachineSimulationPanelLTE = new RRCStateMachineSimulationPanelLTE();
mainPanel.add(rrcStateMachineSimulationPanelLTE, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
layoutDivider(++gridy, insets);
// gridy 7
// Burst Analysis
burstAnalysisPanel = new BurstAnalysisPanel();
mainPanel.add(burstAnalysisPanel, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
layoutDivider(++gridy, insets);
// gridy 9
// HTTP Cache Statistics
httpCacheStatistics = new HTTPCacheStatistics();
mainPanel.add(httpCacheStatistics, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
layoutDivider(++gridy, insets);
// gridy 11
// Energy Efficiency Simulation (default to LTE)
energyModelStatisticsLTEPanel = new EnergyModelStatisticsLTEPanel();
mainPanel.add(energyModelStatisticsLTEPanel, new GridBagConstraints(0, ++gridy, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
rrcStateMachineType = RrcStateMachineType.LTE;
}
return mainPanel;
}
Aggregations