use of com.att.aro.ui.view.statistics.attenuation.AttenuationProfilePanel in project VideoOptimzer by attdevsupport.
the class StatisticsTab method layoutAttenuation.
// hard coded the location of the panel
private void layoutAttenuation(AROTraceData model) {
TraceDirectoryResult traceResult = (TraceDirectoryResult) model.getAnalyzerResult().getTraceresult();
CollectOptions collectOptions = traceResult.getCollectOptions();
if (collectOptions.isAttnrProfile()) {
if (attenuationProfilePanel == null) {
attenuationProfilePanel = new AttenuationProfilePanel();
}
if (attenuationConstantPanel != null) {
mainPanel.remove(attenuationConstantPanel);
}
attenuationConstantPanel = null;
mainPanel.add(attenuationProfilePanel, new GridBagConstraints(0, 4, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 10, 10), 0, 0));
attenuationProfilePanel.refresh(model);
} else {
if (attenuationConstantPanel == null) {
attenuationConstantPanel = new AttenuationConstantPanel();
}
if (attenuationProfilePanel != null) {
mainPanel.remove(attenuationProfilePanel);
}
attenuationProfilePanel = null;
mainPanel.add(attenuationConstantPanel, new GridBagConstraints(0, 4, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(10, 10, 10, 10), 0, 0));
attenuationConstantPanel.refresh(model);
}
}
Aggregations