package com.iailab.module.data.video.dahua.frame;
|
|
import com.iailab.netsdk.common.BorderEx;
|
import com.iailab.netsdk.common.Res;
|
|
import javax.swing.*;
|
import javax.swing.border.EmptyBorder;
|
import java.awt.*;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年04月15日
|
*/
|
public class DHCapturePictureFrame extends JFrame {
|
private static final long serialVersionUID = 1L;
|
|
public DHCapturePictureFrame(Panel realPlayWindow) {
|
setTitle(Res.string().getCapturePicture());
|
setLayout(new BorderLayout());
|
pack();
|
setSize(800, 560);
|
setResizable(false);
|
setLocationRelativeTo(null);
|
|
this.realPlayWindow = realPlayWindow;
|
realPanel = new RealPanel();
|
this.realPlayWindow.setEnabled(true);
|
|
add(realPanel, BorderLayout.CENTER);
|
}
|
|
/*
|
* realplay show and control panel
|
*/
|
private class RealPanel extends JPanel {
|
private static final long serialVersionUID = 1L;
|
|
public RealPanel() {
|
BorderEx.set(this, Res.string().getRealplay(), 2);
|
setLayout(new BorderLayout());
|
|
realplayPanel = new JPanel();
|
add(realplayPanel, BorderLayout.CENTER);
|
|
/************ realplay panel **************/
|
realplayPanel.setLayout(new BorderLayout());
|
realplayPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
|
//realPlayWindow = new Panel();
|
realPlayWindow.setBackground(Color.GRAY);
|
realplayPanel.add(realPlayWindow, BorderLayout.CENTER);
|
|
realPlayWindow.setEnabled(false);
|
|
}
|
}
|
|
private RealPanel realPanel;
|
private JPanel realplayPanel;
|
private Panel realPlayWindow;
|
}
|