Search in sources :

Example 1 with StartupDelayDialog

use of com.att.aro.ui.view.diagnostictab.StartupDelayDialog in project VideoOptimzer by attdevsupport.

the class SegmentTablePanel method launchStartUpDelayDialog.

public void launchStartUpDelayDialog() {
    GoogleAnalyticsUtil.getGoogleAnalyticsInstance().sendViews("StartupDelayDialog");
    IVideoPlayer player = aroView.getVideoPlayer();
    double maxDuration = player.getDuration();
    List<UserEvent> userEventList = analyzerResult.getAnalyzerResult().getTraceresult().getUserEvents();
    if (maxDuration >= 0) {
        selectVideoStreamWithRefresh(videoStream);
        try {
            dialog = new StartupDelayDialog(aroView.getGraphPanel(), maxDuration, videoStream, userEventList, this, viewIndex);
            dialog.pack();
            dialog.setSize(dialog.getPreferredSize());
            dialog.validate();
            dialog.setModalityType(ModalityType.APPLICATION_MODAL);
            dialog.setVisible(true);
        } catch (Exception e) {
            LOG.error("Exception in StartupDelayDialog:", e);
            new MessageDialogFactory().showErrorDialog(null, ResourceBundleHelper.getMessageString("startupdelay.error.message"));
        }
    }
}
Also used : IVideoPlayer(com.att.aro.ui.view.video.IVideoPlayer) MessageDialogFactory(com.att.aro.ui.commonui.MessageDialogFactory) StartupDelayDialog(com.att.aro.ui.view.diagnostictab.StartupDelayDialog) UserEvent(com.att.aro.core.peripheral.pojo.UserEvent)

Aggregations

UserEvent (com.att.aro.core.peripheral.pojo.UserEvent)1 MessageDialogFactory (com.att.aro.ui.commonui.MessageDialogFactory)1 StartupDelayDialog (com.att.aro.ui.view.diagnostictab.StartupDelayDialog)1 IVideoPlayer (com.att.aro.ui.view.video.IVideoPlayer)1