Exemple #1
0
        /// <summary>
        /// 调整图表大小
        /// </summary>
        private void ArrangeMonitors()
        {
            //去空
            if (m_WaveformMonitor == null || m_CodeMonitor == null)
            {
                return;
            }

            int chartWidth  = 460;
            int chartHeight = 540;

            m_WaveformMonitor.SetBounds(0, 0, chartWidth, chartHeight * 2 / 3);
            m_CodeMonitor.SetBounds(0, chartHeight * 2 / 3, chartWidth, chartHeight / 3);
        }
Exemple #2
0
        /// <summary>
        /// 调整图表大小
        /// </summary>
        private void ArrangeMonitors()
        {
            //去空
            if (m_aSpectrograms2D_source == null ||
                m_aSpectrograms2D_signal == null ||
                m_aWaveformMonitors == null)
            {
                return;
            }

            int chartWidth  = 460;
            int chartHeight = 540;

            m_aWaveformMonitors.SetBounds(0, 0, chartWidth, chartHeight);

            m_aSpectrograms2D_source.SetBounds(chartWidth + 5, 0, chartWidth, chartHeight / 4);
            m_AreaSpectrum_souce.SetBounds(chartWidth + 5, chartHeight / 4, chartWidth, chartHeight / 4);
            m_aSpectrograms2D_signal.SetBounds(chartWidth + 5, chartHeight / 2, chartWidth, chartHeight / 4);
            m_AreaSpectrum_signal.SetBounds(chartWidth + 5, chartHeight * 3 / 4, chartWidth, chartHeight / 4);
        }