public void setChart(int chartIdx)
        {
            ChartBase c = createSubChart(chartIdx);

            if (c != null)
            {
                mChartIdx = chartIdx;
                c.setSize(getW(), getH());
                setChart(c);
            }
        }
        public override void setSize(int w, int h)
        {
            base.setSize(w, h);
            if (mCurrentChart != null)
            {
                mCurrentChart.setPosition(0, 0);
                mCurrentChart.setSize(w, h);
                mCurrentChart.invalidate();
                int x, y;
                if (mSettingButton != null)
                {
                    mSettingButton.setPosition(0, (getH() - mSettingButton.getH()) - 1);
                }

                x = mSettingButton.getRight();
                y = mSettingButton.getY();

                if (mDrawGridButton != null)
                {
                    mDrawGridButton.setPosition(x, y);
                    x = mDrawGridButton.getRight();
                }
                if (mSecondChartButton != null)
                {
                    mSecondChartButton.setPosition(x, y);
                    x = mSecondChartButton.getRight();
                }
                if (mHelpButton != null)
                {
                    mHelpButton.setPosition(0, y - mHelpButton.getH());
                }
                //if (mRemoveButton != null)
                //{
                //mAddButton.setPosition(mSwitchButton.getRight(), mSwitchButton.getY());
                //mRemoveButton.setPosition(0, (getH() - mRemoveButton.getH()) - 1);
                //}
            }
        }
Exemple #3
0
        public void setSecondChart(ChartBase c)
        {
            c.setSize(this);

            mCharts[1] = c;
        }
Exemple #4
0
        public void setFirstChart(ChartBase c)
        {
            c.setSize(this);

            mCharts[0] = c;
        }