Search in sources :

Example 1 with AttenuationProfilePanel

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);
    }
}
Also used : GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) CollectOptions(com.att.aro.core.peripheral.pojo.CollectOptions) TraceDirectoryResult(com.att.aro.core.packetanalysis.pojo.TraceDirectoryResult) AttenuationProfilePanel(com.att.aro.ui.view.statistics.attenuation.AttenuationProfilePanel) AttenuationConstantPanel(com.att.aro.ui.view.statistics.attenuation.AttenuationConstantPanel)

Aggregations

TraceDirectoryResult (com.att.aro.core.packetanalysis.pojo.TraceDirectoryResult)1 CollectOptions (com.att.aro.core.peripheral.pojo.CollectOptions)1 AttenuationConstantPanel (com.att.aro.ui.view.statistics.attenuation.AttenuationConstantPanel)1 AttenuationProfilePanel (com.att.aro.ui.view.statistics.attenuation.AttenuationProfilePanel)1 GridBagConstraints (java.awt.GridBagConstraints)1 Insets (java.awt.Insets)1